Bootstrap

按键精灵获取窗口句柄的几个方法代码

//获取窗口句柄
//根据姓名(标题)或家族(类名)查一个:
Hwnd = Plugin.Window.Find(0, "无标题 - 记事本")
HwndEx = Plugin.Window.FindEx(Hwnd, 0, "Button", "表情")

//根据姓名(标题)或家族(类名)查所有:
HwndEx = Plugin.Window.Search("记事本")
HwndEx = Plugin.Window.SearchEx(0,"记事本",0)

//当面查:
Hwnd = Plugin.Window.MousePoint()
Hwnd = Plugin.Window.Foreground()
;