Skip to content

Instantly share code, notes, and snippets.

@OKsign
Created December 30, 2018 15:52
Show Gist options
  • Save OKsign/04645a2b581d9f0f043c5b2312e0d8e8 to your computer and use it in GitHub Desktop.
Save OKsign/04645a2b581d9f0f043c5b2312e0d8e8 to your computer and use it in GitHub Desktop.
; Move and Resize Active Window to Predefined Value - if activeApp or if activeWindow
#include <MsgBoxConstants.au3>
#Include <WinAPI.au3>
$activeApp = _WinAPI_GetClassName(WinGetHandle("[ACTIVE]"))
$activeWindow = WinGetTitle("[ACTIVE]")
If $activeApp = "" Then
; start - copy
ElseIf $activeWindow = "Untitled - Notepad" Then
WinMove("", "", 484, 32, 565, 353)
; end - copy
; paste below.
Else
MsgBox($MB_SYSTEMMODAL, "Script 1 for AutoIt","Edit Script to Move and Resize This Window.")
EndIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment