The ESLCHAR library will allow ESL to respond to virtual keys while a dialog box or region currently has the focus in the form of a stimulus response.
This library sends two messages for each key pressed. The first corresponds to the Windows "key down" message and the second corresponds to the Windows "key up" message. This is a comment in ESLCHAR.C that indicates how you should change this code if you want to receive only one message (on either the "key down" or "key up" message).
call NotifyForThisKey(VK_NUMPAD5,FALSE)
if you do NOT want the "5" to be entered in your entry field
call NotifyForThisKey(VK_NUMPAD5,TRUE)
if you do
The Stimulus response will pass the following as parameters:
eventnum - The Keycode that was hit
eventparam - The HWND of the object being sent the key message
In this example the following are set:
call NotifyForThisKey(VK_F1,TRUE)
call NotifyForThisKey(VK_F2,FALSE)
call NotifyForThisKey(VK_F3,TRUE)
call NotifyForThisKey(VK_NUMPAD5,FALSE)
call NotifyForThisKey(VK_NUMPAD6,TRUE)
call NotifyForThisKey(VK_F4,TRUE)
call NotifyForThisKey(VK_PAGEUP,FALSE)
call NotifyForThisKey(VK_LEFT,TRUE)