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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable keyboard while script is running?

Status
Not open for further replies.

hawk1996

Technical User
Mar 1, 2004
15
0
0
US
Is there a way to disable the keyboard while a script is running, so a user cannot enter any information unitl the scripts is done running.
 
Code:
main proc
   ; disable stop script option
   ; NOTE: this also stops a user from exiting Procomm
   set aspect control on

   ; instruct procomm to intercept all keyboard input
   ; NOTE: this requires any keyboard input to be
   ; handled by the script itself
   set aspect keys on


   ; your script code


   ; clear the key input buffer before returning keyboard
   ; processing to normal
   keyflush

   ; instruct procomm to continue processing keyboard input
   ; normally
   set aspect keys off

   ; enable stop script option
   ; NOTE: this allows users to exit procomm
   set aspect control off
endproc
 
Thanks x11tech that worked great, just what I was looking for.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top