Scriptlets

 

The following section of ASPECT code is provided free of charge as a reference tool.

DISCLAIMER: THE INFORMATION PROVIDED HEREIN AND ANY SOFTWARE ACCESSED OR OBTAINED BY ANY PARTY FROM THIS LIBRARY ARE PROVIDED BY DATARAVE.NET “AS IS”, AND ARE WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED. DATARAVE.NET OR ITS PRINCIPALS SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING OUT OF THE USE OF SUCH INFORMATION OR SOFTWARE.


TITLE: DISABLE USER INPUT WHILE PROCOMM PLUS ASPECT SCRIPT PROCESSES 

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