VB.net 2010 Execute Code line for line(Sendkeys, Wait/Sleep, Me, Close) -
I am struggling with a very simple line of code and it seems that VB.net does not execute it correctly Does.
Very Simple Example:
SendKuss Send ("Test") SendCanc. Send ("Test 2") Sendkeys.Send {"{ENTER}") Me.Close () When I start the program, it does not write Test and Test 2 So, it immediately closes the program!
Even after adding this: <("Test 2") system. threading. the shed. Sleep (100) Sendkies. Send {{{{{ENTER}). System threading. Thread Sleep (100) m Closed ()
It also does not work! Without applying SENDKEYS it waits in the beginning!
What is this job:
SendCax. Send ("Test") Sendkeys.Send ("Test2") Sendkeys. Send {{{ENTER}} Whenever I do not use the wait / sleep function or the me.close function, vb.net executes the sendkeys very well Does it!
Q: How can I add a sleep / wait function which completely waits and keeps the line for the line?
Comments
Post a Comment