谁能帮我做一个按键精灵脚本。后台运行一直按1.2.3.4.5.6.7.8.9键,锁定一个窗口。

2024-11-15 13:25:50
推荐回答(3个)
回答1:

建议去百度或GOOGLE搜索一下,看看有没有相关信息或资料可以帮你。

回答2:

每次按键之间有间隔吗?

回答3:

// 确定窗口为鼠标指向窗口
Hwnd = Plugin.Window.MousePoint()
//循环开始
Do
//在刚才的窗口中按小键盘的“1”
Call Plugin.Bkgnd.KeyPress(Hwnd, 97)
//”2“
Call Plugin.Bkgnd.KeyPress(Hwnd, 98)
//”3“
Call Plugin.Bkgnd.KeyPress(Hwnd, 99)
//”4“
Call Plugin.Bkgnd.KeyPress(Hwnd, 100)
//”5“
Call Plugin.Bkgnd.KeyPress(Hwnd, 101)
//”6“
Call Plugin.Bkgnd.KeyPress(Hwnd, 102)
//”7“
Call Plugin.Bkgnd.KeyPress(Hwnd, 103)
//”8“
Call Plugin.Bkgnd.KeyPress(Hwnd, 104)
//”9“
Call Plugin.Bkgnd.KeyPress(Hwnd, 105)
Loop