Apply the coordinates discovered above to the Click command. The following example clicks the left mouse button: To move the mouse without clicking, use MouseMove. To activate a window (make it foremost), use WinActivate. The following example illustrates these commands: To detect whether a window exists, use IfWinExist or WinWait. The above example first searches for any existing window whose title starts with "Untitled - Notepad" (case sensitive). If such a window is found, it is activated. Otherwise, Notepad is launched and the script waits for the Untitled window to appear, at which time it is activated.
0 Comments
Leave a Reply. |