Environment
Reflection for UNIX and OpenVMS version 13.0 through 14.x
Situation
This technical note describes how to turn off Num Lock while in a Reflection session, and how to use events to set Num Lock to the off state when Reflection starts.
Resolution
Changing the Keyboard State on Laptop Computers
By default, Reflection will follow the operating system's default Num Lock state. Because most laptop or notebook computers have 10-key keypads embedded in the alphanumeric keyboard, most laptop users prefer to have Num Lock in the off state. To toggle the keyboard state while in a Reflection session, press Shift+Num Lock.
Using Events to Disable Num Lock on Laptop Computers
You can use Reflection Events to set the Num Lock state to off every time a user starts Reflection. Follow these steps to enable an event:
- Start Reflection, but do not log on.
- Click Setup > Events.
- In the Event Setup dialog box, click New.
- Under Event type, select "When Reflection starts."
- Select the Enabled check box.
- In the Run this Event group box, select Every time.
- In the Action group box, select Commands.
- Under Command Type, select Visual Basic.
- In the Command line, type:
numlock=false
- Click OK.
- Click OK again to close the Event Setup dialog box.
- Click File > Save to save your settings file.