汗~写清楚了啊.不过自己找到解决方法了,附上源码,供其他新手参考;Run("cmd")
WinWait("[CLASS:ConsoleWindowClass]")
WinActivate("[CLASS:ConsoleWindowClass]")
Send("dir{ENTER}")
$array=WinGetPos ("[CLASS:ConsoleWindowClass]")
$hx="X坐标:"&$array[0]&@CRLF&"Y 坐标:"&$array[1]&@CRLF&"宽度"&$array[2]&@CRLF&"高度"&$array[3]
MouseMove($array[0]+7,$array[1]+25)
MouseClick("right")
Send("k")
MouseClickDrag("left",$array[0]+7,$array[1]+25,$array[0]-25+$array[2],$array[1]-10+$array[3])
;MouseMove($array[0]-30+$array[2],$array[1]-10+$array[3])
MouseClick("right")
MsgBox(0,"X坐标",$hx)
$xx=ClipGet()
MsgBox(0,"X坐标",$xx)
WinActivate("[CLASS:ConsoleWindowClass]")
Send("exit{ENTER}")
|