I need to continually check up on the keyboard input to in order to control the program using the keyboard. My program runs through a process, looping, and I would like to poll to see if for example ctrl+Q was hit to exit the program. How?
You would need to use set aspect keys on for your script to take over key processing from Procomm itself, then use the keyget command to actually get the key's value. However, since you are using a dialog I am not certain this will work due to this note in the discussion of the keyget command:
Keys can only be retrieved by the script when Procomm Plus’s main window has the input focus.
I am not using a dialog in this program. I am using the termmsg to display all my data, so I want to be able to have the user press ctrl Q at any time, then at some point my program will check if ctrl Q was pressed and quit. Similiar to DOS programs. So what you said should work, thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.