Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ctrl-break to exit waitfor

Status
Not open for further replies.

kxboy

Technical User
Nov 6, 2002
152
US
I have a script that uses the waitfor command to look for a response before sending the next string of data. However, sometimes I want to break out of the waitfor, and then select another option from the script dialog box.

The aspect help info on the waitfor command says it will report a failure if <ctrl><break> is entered.

However, I can't get this to work. I have aspect ctrlbreak set to on. But, the <ctrl><break> key sequence is not detected, and the waitfor will continue to wait until it receives the data, or it times out.

Any suggestions oh how to stop a "waitfor"

Thanks
 
Can you post your script? I was able to use Ctrl-Break successfully to exit out of the waitfor command with the below script:

proc main
waitfor "wegojweogjwe"
if failure
usermsg "foo"
endif
endproc

 
Thanks for your example, it works fine.

I was then able to get my script to work. Since I had a dialog box up on the screen, the "ctrl-break" was not getting to the terminal. All I had to do was to click on the terminal screen, then enter "ctrl-break" and it worked.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top