Author: majkinetor Last Modified: nonexistent
Set of window functions. It can animate windows, get data, show and hide, set the icon, change the parent window and a lot more functions.
Win_Animate(Hwnd, Type="", Time=100)
Win_FromPoint(X="mouse", Y="")
Win_Get(hwnd, "CIT", class, pid, text)
Win_GetChildren(Hwnd)
Win_GetClassNN(HCtrl, HRoot="")
Win_GetRect(hwnd, "xw", x, w)
Win_Is(Hwnd, pQ="win")
Win_Move(Hwnd, X="", Y="", W="", H="", Flags="")
Win_MoveDelta( Hwnd, Xd="", Yd="", Wd="", Hd="", Flags="" )
Win_Recall(">")
Win_Redraw( Hwnd=0, Option="" )
Win_SetCaption(Hwnd, Flag="^")
Win_SetIcon(Hwnd, Icon="", Flag=1)
Win_SetMenu(Hwnd, hMenu=0)
Win_SetOwner(Hwnd, hOwner)
Win_SetParent(Hwnd, HParent=0, bFixStyle=false)
Win_SetToolWindow(Hwnd, Flag="^")
Win_Show(Hwnd, bShow=true)
Win_ShowSysMenu(Hwnd, X="mouse", Y="")
Win_Subclass(Hwnd, Fun, Opt="", ByRef $WndProc="")
For the functions's parameters and return value, please see it's source code.
This module is part of the Forms Framework package.
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=53317
The functions is an open source item under the GNU GPL license.
For details, please see gpl-2.0.txt
; #Include Win.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Gui, Add, Text, vh1, hello Gui, Add, Text, vh2, majkinetor Gui, Add, Text, vh3, thx Msgbox,, %A_ScriptName%, Close Gui with a 2.5 second blend effect and exit Gui, Show Gui, +LastFound hwnd := WinExist("A") Sleep, 1500 Win_Animate(hwnd, "hide blend", 2500) ExitApp