Hello, I was wondering if there was a way to wait for certain keys to be pressed while the macro is running. For example, while the macro is running, is it possible to wait for a key to be pressed, so i could exit macro, mid-run? Also, i would like to know if i can wait for two different keys at once, i have tried something, but it didnt work as well as i wanted, this is what i tried
While (K <> " " and K <> "`") K = Sess0.Screen.WaitForKeys() If (K <> " " and K <> "`") Then 'nothing goes here, but this way of testing only works if i put in this if statement End If WEnd MsgBox F
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.