B
Boki
Hi All,
I am trying to create a auto login program.
Below is the part of code, my issue is - the target form ( handle /
window ) usually didn't perform the key I sent from my C# program
correctly.
I think it should be timing issue, I add a delay there, but it seems
incorrect.
Could you please advice ?
Thanks a lot!
/* CODE BEGIN */
SetForegroundWindow(ieHandle);
SendKeys.Send("%d");
SendKeys.Send("http://www.Yahoo_some_where_.com~");
// System.Threading.Thread.Sleep(2000);
SendKeys.Send("{TAB}");
SendKeys.Send("{TAB}");
SendKeys.Send("{TAB}");
SendKeys.Send("ms21.hinet.net~");
/* CODE END */
Best regards,
Boki.
I am trying to create a auto login program.
Below is the part of code, my issue is - the target form ( handle /
window ) usually didn't perform the key I sent from my C# program
correctly.
I think it should be timing issue, I add a delay there, but it seems
incorrect.
Could you please advice ?
Thanks a lot!
/* CODE BEGIN */
SetForegroundWindow(ieHandle);
SendKeys.Send("%d");
SendKeys.Send("http://www.Yahoo_some_where_.com~");
// System.Threading.Thread.Sleep(2000);
SendKeys.Send("{TAB}");
SendKeys.Send("{TAB}");
SendKeys.Send("{TAB}");
SendKeys.Send("ms21.hinet.net~");
/* CODE END */
Best regards,
Boki.