Click here to Skip to main content
15,878,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i use instead of Sleep() method? Pin
sugarpasa8-Feb-16 11:48
sugarpasa8-Feb-16 11:48 
GeneralRe: How can i use instead of Sleep() method? Pin
Richard Andrew x648-Feb-16 11:50
professionalRichard Andrew x648-Feb-16 11:50 
GeneralRe: How can i use instead of Sleep() method? Pin
sugarpasa8-Feb-16 12:41
sugarpasa8-Feb-16 12:41 
GeneralRe: How can i use instead of Sleep() method? Pin
Richard Andrew x648-Feb-16 12:15
professionalRichard Andrew x648-Feb-16 12:15 
GeneralRe: How can i use instead of Sleep() method? Pin
sugarpasa8-Feb-16 12:44
sugarpasa8-Feb-16 12:44 
GeneralRe: How can i use instead of Sleep() method? Pin
Richard Andrew x648-Feb-16 12:49
professionalRichard Andrew x648-Feb-16 12:49 
GeneralRe: How can i use instead of Sleep() method? Pin
sugarpasa9-Feb-16 6:12
sugarpasa9-Feb-16 6:12 
GeneralRe: How can i use instead of Sleep() method? Pin
Richard Andrew x649-Feb-16 6:19
professionalRichard Andrew x649-Feb-16 6:19 
After the program waits for WAITFOR, then take the main window handle of the process and enumerate all child windows until you find the Login window.

You could do it asynchronously by using a .NET Timer class: After waiting for WAITFOR, set the timer for a few seconds, then when the timer elapses, you can enumerate the child windows. I don't see that there is any way your program can know exactly when the Login window is shown.

If you need help with the Timer class, I'm sure people would be glad to help with specific questions.



The difficult we do right away...
...the impossible takes slightly longer.

QuestionScanning QR code Pin
Member 123142768-Feb-16 7:13
Member 123142768-Feb-16 7:13 
AnswerRe: Scanning QR code Pin
OriginalGriff8-Feb-16 8:09
mveOriginalGriff8-Feb-16 8:09 
AnswerRe: Scanning QR code Pin
Sascha Lefèvre8-Feb-16 8:15
professionalSascha Lefèvre8-Feb-16 8:15 
QuestionC# iTexSharp How to put PDF page number during creation PDF File Pin
Zefir18-Feb-16 2:38
Zefir18-Feb-16 2:38 
AnswerRe: C# iTexSharp How to put PDF page number during creation PDF File Pin
Richard MacCutchan8-Feb-16 3:17
mveRichard MacCutchan8-Feb-16 3:17 
GeneralRe: C# iTexSharp How to put PDF page number during creation PDF File Pin
Zefir18-Feb-16 3:27
Zefir18-Feb-16 3:27 
GeneralRe: C# iTexSharp How to put PDF page number during creation PDF File Pin
Richard MacCutchan8-Feb-16 3:50
mveRichard MacCutchan8-Feb-16 3:50 
QuestionIs this serial port class and how I use it thred safe? Pin
Member 120616007-Feb-16 21:07
Member 120616007-Feb-16 21:07 
AnswerRe: Is this serial port class and how I use it thred safe? Pin
Daniel Pfeffer7-Feb-16 21:29
professionalDaniel Pfeffer7-Feb-16 21:29 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Member 120616007-Feb-16 21:41
Member 120616007-Feb-16 21:41 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Daniel Pfeffer7-Feb-16 22:10
professionalDaniel Pfeffer7-Feb-16 22:10 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Member 120616007-Feb-16 22:13
Member 120616007-Feb-16 22:13 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Member 120616008-Feb-16 0:11
Member 120616008-Feb-16 0:11 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Daniel Pfeffer8-Feb-16 2:07
professionalDaniel Pfeffer8-Feb-16 2:07 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Member 120616008-Feb-16 2:10
Member 120616008-Feb-16 2:10 
AnswerRe: Is this serial port class and how I use it thred safe? Pin
Jochen Arndt7-Feb-16 21:47
professionalJochen Arndt7-Feb-16 21:47 
GeneralRe: Is this serial port class and how I use it thred safe? Pin
Member 120616007-Feb-16 21:52
Member 120616007-Feb-16 21:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.