1.Դ?源码뾫???̨
2.求按键精灵后台运行脚本
Դ?뾫???̨
//指定点后台点击的例子------------------------
点击 = WaitClick()//等待点击
Delay
//得到鼠标指向的窗口句柄
Hwnd = Plugin.Window.MousePoint()
GetCursorPos x, y//保存当前坐标
//下面这句是得到窗口句柄的客户区大小
sRect = Plugin.Window.GetClientRect(Hwnd)
//MsgBox "得到窗口句柄:"& hwnd //显示句柄
//下面这句用于分割字符串,将横坐标和纵坐标分成两个字符串
//dim MyArray
MyArray = Split(sRect, "|")
//下面这句将字符串转换成数值
L = Clng(MyArray(0)): T = Clng(MyArray(1))
R = Clng(MyArray(2)): B = Clng(MyArray(3))
Do//循环开始
for
Delay //等待2秒
next
Call Plugin.Bkgnd.LeftClick(Hwnd, x-l, y-t)//(变量为前台坐标系)
Loop//循环结点
求按键精灵后台运行脚本
//下面是源码,启动脚本之前,精灵梦想链源码先将鼠标放到你需要使用的后台洪越源码网那窗口上面。
hwnd = Plugin.Window.MousePoint()
Delay
While 1
Call Plugin.Bkgnd.KeyDown(hwnd,源码骑牛相马源码)
Delay
Call Plugin.Bkgnd.KeyDown(hwnd,)
Delay
Call Plugin.Bkgnd.KeyUp(hwnd,)
Delay
Call Plugin.Bkgnd.KeyPress(hwnd,)
Delay
Wend
参考:/question/.html