Macro Scheduler 15

ObjectSendKeys


 

ObjectSendKeys>handle,keystroke_list

 

Sends keystrokes directly to the given control.  keystroke_list is a comma delimited list of characters or virtual key codes.  Virtual key codes should be decimal values preceded by "VK".

 

For a list of virtual key codes see: http://www.mjtnet.com/vkcodes.htm

 

Use the Send Keys to Object Wizard to help create code that uses ObjectSendKeys.

 

Unlike the SendText command ObjectSendKeys sends directly to the control and does not require that the object has focus.

 

See also: ObjectSendText, FindObject, SendText

 

Example:

 

//Created by Send Keys to Object Wizard - sends Ctrl+Home, Shift+Ctrl+End, Delete to Notepad's editor

GetWindowHandle>Untitled - Notepad,hWndParent

FindObject>hWndParent,Edit,,1,hWnd,X1,Y1,X2,Y2,result

ObjectSendKeys>hWnd,CTRL_DN,VK36,CTRL_UP,SHIFT_DN,CTRL_DN,VK35,SHIFT_UP,CTRL_UP,VK46