Search found 2 matches

by daiaji
14 Aug 2022, 09:07
Forum: Ask for Help (v2)
Topic: The documentation for the GUI's button control seems to be wrong.
Replies: 1
Views: 528

The documentation for the GUI's button control seems to be wrong.

https://www.autohotkey.com/docs/commands/GuiControls.htm#Button #Requires AutoHotkey v2.0-beta #n:: { MyGui := Gui() MyBtn := MyGui.Add("Button", "Default w80", "OK") MyBtn.OnEvent("Click", MyBtn_Click()) ; 当点击时调用 MyBtn_Click. } MyBtn_Click() { Msgbox "OK" } I wrote these codes and run. But when I p...
by daiaji
29 May 2017, 19:22
Forum: 请求帮助
Topic: 这个AHK脚本是用来给Win10PE修复显示桌面用的
Replies: 0
Views: 2002

这个AHK脚本是用来给Win10PE修复显示桌面用的

;#NoTrayIcon ;隐藏图标 if not A_IsAdmin ;查询是否具有管理员权限 { Run *RunAs "%A_AhkPath%" ; 需要 v1.0.92.01+ ExitApp } Loop ;循环 { IfWinExist, ahk_class Shell_TrayWnd ;判断是否存在ahk_class为Shell_TrayWnd的任务栏窗口 { SendMessage, 1466, , , , ahk_class Shell_TrayWnd ;什么用不知道但是用SendMessage向ahk_class为Shell_TrayWnd的任务栏窗口发送1466的Msg...

Go to advanced search