Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Last active December 20, 2015 01:39
Show Gist options
  • Save TLMcode/6050967 to your computer and use it in GitHub Desktop.
Save TLMcode/6050967 to your computer and use it in GitHub Desktop.
Global GUIHwnd
OnMessage(0x201,"GuiMove")
Gui, -border hwndGUIHwnd ; feel free to change this but LEAVE hwndGUIHwnd!
; INSERT CODE BELOW
Gui, Add, Text, , Move GUI
Gui, Show
; INSERT CODE ABOVE
Return
GuiMove() {
PostMessage, 0xA1, 2,,, % "ahk_id" GUIHwnd
}
GuiClose:
ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment