While Mouse Down Event (Mouse Button + Periodic)

While Mouse Down triggers a procedure or calls a script when a user clicks the left mouse button and holds it down. The action is not invoked when the user clicks the button but is invoked every Time period thereafter until the user releases the key. :

Note: This event also occurs while a user holds Enter down on the keyboard.
Field Description
A Time period Number of milliseconds, seconds, minutes or hours between the time the event's procedure ends and the time it is re-triggered.
B Time Type Select one of the following.
  • Ms (milliseconds)
  • Sec (seconds)
  • Min (minutes)
  • Hour (hours)
C Action Contains a drop-down list of existing procedures and scripts. Use either of the following.
Procedure        
Script        
D Parameter Can be used if the event invokes a script directly or through a procedure. The default code begins as follows. Sub OnWhile Mouse Down(x As Long, y As Long, flags As Long) Where parameters are:
x          
y          
         
flags          
         
         
         
E Debounce event Check          
Clear          
Note: When debouncing is enabled, the event/action queue is always processed one action at a time; the current action must be completed before the next action can start.
This makes the queue's event/action sequencing predictable and avoids situations where many events could trigger actions and consume unacceptable levels of CPU and memory.