Sometimes, you can only tell when an AUT operation has ended by checking the windows mouse cursor – is it an hourglass, or a simple arrow. The following code allows your to get the integer code of the mouse icon: ‘These come once, in the top of the script extern.Declare micLong,”GetForegroundWindow”,”user32.dll”,”GetForegroundWindow” extern.Declare micLong,”AttachThreadInput”,”user32.dll”,”AttachThreadInput”, micLong, …
Category Archive: Keyboard and Mouse
Apr 01 2008
Send Keys to Active Window
The Keyboard.SendKeys Method sends one or more keystrokes to the active window, as if typed on the keyboard. Syntax: object.SendKeys( keys, wait ) Parameters : keys – A String that defines the keys to send. wait – Optional. A Boolean that specifies whether or not to wait for keystrokes to get processed before the application …
Apr 01 2008
Keyboard Status
The Devices.Keyboard class Provides properties for accessing the current state of the keyboard, such as what keys are currently pressed, and provides a method to send keystrokes to the active window. How can we know if CAPS-LOCK already pressed? Before we use the numpad keys we want to verify that if NUM-LOCK already pressed. The …


Recent Comments