Using Advanced Configuration
You can only run scripts in the Velocity Client as a session connects or while a session is connected. If the connection is terminated, the event handlers from scripts are discarded. When switching between sessions, only the active session will receive scan data or keypresses, and so event handlers for the active session are the only ones that will fire.
For information about scripting for Velocity, see the Velocity Scripting Guide.