许多小伙伴还不清楚AutoHotkey获取窗体控件的操作步骤,而下面就分享了AutoHotkey获取窗体控件的操作方法,希望感兴趣的朋友都来共同学习哦。
方法1:用autohotkey自带的window spy,右击autohotkey的托盘图标-》window spy

但window spy对某些窗体的控件检测不到。

.通常获取不了的控件都是用颜色或图像来判断位置所在。(颜色也可以通过window spy查看)

方法2:自己编代码检测窗体控件。
#PersistentSetTimer, WatchActiveWindow, 200returnWatchActiveWindow:WinGet, ControlList, ControlList, AToolTip, %ControlList%return

该代码与window spy检测的是一样的。

ps:按钮、滚动条、输入框等就是控件。

上面就是小编为大家带来的AutoHotkey获取窗体控件的操作步骤,希望对大家能够有所帮助哦。