参考一下,找到窗口后,要激活->最小化->还原,就会得到想要的窗口了
以下是获取wow窗口
Delay 1000
Rem TOSTART
Import window.dll
VBS hwnd=obj.FindWindow("","魔兽世界")
VBS hwnd1=obj.FindWindow("","World of Warcraft")
VBS hwnd2=obj.FindWindow("","魔兽世界")
If hwnd or hwnd1 or hwnd2
If hwnd
Plugin Window.Active(hwnd)
Plugin Window.Min(hwnd)
Plugin Window.Restore(hwnd)
Goto TOSTART1
EndIf
If hwnd1
Plugin Window.Active(hwnd1)
Plugin Window.Min(hwnd1)
Plugin Window.Restore(hwnd1)
Goto TOSTART1
EndIf
If hwnd2
Plugin Window.Active(hwnd2)
Plugin Window.Min(hwnd2)
Plugin Window.Restore(hwnd2)
Goto TOSTART1
EndIf
Else
MessageBox 请先进入wow游戏,并设置为窗口模式
Goto TOquit
EndIf
///以下是获得当前窗口(刚激活的那个)大小
VBSBegin
Dim win,client,qx,qy,zx,zy
win=Window.Foreground()
client=Window.GetClientRect(win)
s=split(client,"|")
qx=s(0)
qy=s(1)
zx=s(2)
zy=s(3)
VBSEnd
呵呵,是不是开外.挂啊。我喜欢这样的外.挂。一边挂着游戏,一边做别的