SendKey

This function sends the hexadecimal value that is equivalent to the physical keyboard or virtual-key code to the server as if it came from the physical or virtual keyboard. The server will process it if it has special meaning. For example, sending an F key will get processed in the Form_OnFkey event if it is programmed to do so. It is similar to the VB ‘SendKeys’ command.

Note: To assign a function to a Fkey see the topic Configuring Sidebar Menus and Function Keys.

Group: Application-Based Extension

Syntax: App.SendKey(vkKeyCode)

   
vkKey Code Constants Description of Key / Function
vkClear Clear key
vkRefresh Refresh the screen/data key
vkExit Exit the application key
vkTab Tab (to next prompt) key
vkBackTab Tab Backwards (to prior prompt) key
vkDelete Delete key
vkInsert Insert key
vkUp Up arrow key
vkDown Down arrow key
vkRight Right arrow key
vkLeft Left arrow key
vkPageUp PAGEUP key
vkPageDown PAGEDOWN key
vkHome Home Key
vkEnd End Key
   
vkF1 vkF13
vkF2 vkF14
vkF3 vkF15
vkF4 vkF16
vkF5 vkF17
vkF6 vkF18
vkF7 vkF19
vkF8 vkF20
vkF9 vkF21
vkF10 vkF22
vkF11 vkF23
vkF12 vkF24
   

Example:

App.SendKey(vkClear) ' this sends the Clear key

 

Version Supported:      RFgen 4.0, 4.1, 5.0, 5.1, 5.2 and newer.