Created
December 30, 2018 15:52
-
-
Save OKsign/04645a2b581d9f0f043c5b2312e0d8e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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