Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Include <WinAPI.au3>
$activeApp = _WinAPI_GetClassName(WinGetHandle("[ACTIVE]"))
$activeWindow = WinGetTitle("[ACTIVE]")
; -------------------------------------------------------------------
; Example 1 - based on active app:
;
; If $activeApp = "WordPadClass" Then
; WinMove("", "", 1326, 60, 518, 962)
; sleep(1990)
; EndIf
;
; Example 2 - based on title of active window:
;
; If $activeWindow = "gt - WordPad" Then
; WinMove("", "", 1326, 60, 518, 962)
; sleep(1990)
; EndIf
;
; Example 3 - move and resize active window:
;
; WinMove("", "", 1326, 60, 518, 962)
; sleep(1990)
;
; -------------------------------------------------------------------
; YOUR CODE BELOW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment