自己写了一个简单的脚本程序如下,句柄是抓出来的,抓出来后没有关过窗口,但是一直不能实现后台功能,游戏在当前界面的话可以正常运行,一切出去就停止运行了,求问是什么原因。
Hwnd=00722470
For 16959
For 3
Call Plugin.Bkgnd.KeyPress(Hwnd, 120)
Call Plugin.Bkgnd.KeyPress(Hwnd, 121)
Next
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Next
Hwnd=00722470
For 16959
For 3
Call Plugin.Bkgnd.KeyPress(Hwnd, 120)
Call Plugin.Bkgnd.KeyPress(Hwnd, 121)
Next
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Call Plugin.Bkgnd.KeyPress(Hwnd, 123)
Next