课程:
怎样在游戏中准确读出人物的坐标
人物的坐标一般都在屏幕正中间,固定不变的.试几次就能试出来.
游戏怎么找人物屏幕相对坐标
你在玩游戏是,电脑屏幕左上角有个雷达,上面有标注你所在的位置,那些白点是你队友的位置
这是录制程序 求高人改成后台的 希望可以教我如何查找游戏窗口的相对坐标
刚刚写的 你用用试试 看看有没有什么不对的地方
//得到当前可以发送按键消息的窗口
Plugin Hwnd = Window.GetKeyFocusWnd()
//得到窗口句柄的客户区大小
Plugin Rect = Window.GetClientRect(Hwnd)
//MessageBox "得到窗口句柄的客户区大小为:"Rect
//定义变量
VBS dim MyArray
MyArray = Split(Rect,"|")
//窗口左上角横坐标
Ux = CLng(MyArray(0))
//窗口左上角纵坐标
Uy = CLng(MyArray(1))
//将原脚本屏幕坐标改为窗口相对坐标 并且实现后台发送鼠标信息
Plugin Bkgnd.Moveto(Hwnd, 680-Ux,400-Uy)
Delay 29
Plugin Bkgnd.LeftClick(Hwnd, 680-Ux,400-Uy)
Delay 10
Plugin Bkgnd.Moveto(Hwnd, 680-Ux, 399-Uy)
Delay 24
Plugin Bkgnd.Moveto(Hwnd, 674-Ux, 393-Uy)
Delay 8
Plugin Bkgnd.Moveto(Hwnd, 660-Ux, 381-Uy)
Delay 23
Plugin Bkgnd.Moveto(Hwnd, 646-Ux, 372-Uy)
Delay 9
Plugin Bkgnd.Moveto(Hwnd, 640-Ux, 369-Uy)
Delay 1
Plugin Bkgnd.Moveto(Hwnd, 635-Ux, 367-Uy)
Delay 22
Plugin Bkgnd.Moveto(Hwnd, 627-Ux, 365-Uy)
Delay 9
Plugin Bkgnd.Moveto(Hwnd, 625-Ux, 364-Uy)
Delay 1
Plugin Bkgnd.Moveto(Hwnd, 624-Ux, 364-Uy)
Delay 10
Plugin Bkgnd.Moveto(Hwnd, 623-Ux, 364-Uy)
Delay 26
Plugin Bkgnd.Moveto(Hwnd, 621-Ux, 363-Uy)
Delay 20
Plugin Bkgnd.LeftClick(Hwnd,621-Ux, 363-Uy)
Delay 10
Plugin Bkgnd.Moveto(Hwnd, 622-Ux, 363-Uy)
Delay 27
Plugin Bkgnd.Moveto(Hwnd, 623-Ux, 364-Uy)
Delay 32
Plugin Bkgnd.Moveto(Hwnd, 624-Ux, 365-Uy)
Delay 4
Plugin Bkgnd.Moveto(Hwnd, 624-Ux, 366-Uy)
Plugin Bkgnd.Moveto(Hwnd, 625-Ux, 366-Uy)
Delay 31
Plugin Bkgnd.Moveto(Hwnd, 626-Ux, 367-Uy)