作者: majkinetor 最近更新时间: 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="")
关于函数的参数和返回值, 请参阅其源码.
This module is part of the Forms Framework package.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=53317
此函数(集)是基于 GNU GPL 许可的开源项目. 想了解许可详情, 请参见 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