回复 5# fybhwsx
Local $e = WinGetHandle ("[CLASS:#32770]")
;MsgBox($MB_SYSTEMMODAL, "", $e)
WinWait("[CLASS:#32770]","",10)
If WinExists("Confirm Uninstall", "OK") Then
MsgBox($MB_SYSTEMMODAL, "", "Window exists")
Else
MsgBox($MB_SYSTEMMODAL, "", "Window does not exist")
EndIf
Local $button = ControlGetHandle ($e, "OK", "[CLASS:Button;INSTANCE:1]")
MsgBox($MB_SYSTEMMODAL, "", $button)
Local $position = ControlGetPos($e, "OK", "[CLASS:Button;INSTANCE:1]")
MsgBox($MB_SYSTEMMODAL, "", "Position: " & $position[0] & ", " & $position[1] & @CRLF & "Size: " & $position[2] & ", " & $position[3])
Local $R = ControlClick ("Confirm Uninstall", "OK", "[CLASS:Button;INSTANCE:1]", "left", 2, $position[3]-60, 10)
MsgBox($MB_SYSTEMMODAL, "", $R)
controlclick返回值也是1, 请教一下,怎么知道click在哪里呢?感谢 |