只是尝试使用 ControlSend 但程序仍然不情愿。现在我找到了主句柄,但我仍然不知道如何正确编写它。有助于获得赞赏。
; Process: System.Diagnostics.Process (javaw)
; Process ID: 4752
; Handle Count: 430
; Responding: Yes
; Title: ?ok???O?
; <= Looks stange but this is the title.
; ?
; Main Handle: 1115426
$mainHanlde = ""
While 1
ControlClick("", "", $mainHanlde,"{Down}")
Sleep(900)
ControlClick("", "", $mainHanlde,"{Down}")
Sleep(900)
ControlClick("", "", $mainHanlde,"{Down}")
Sleep(900)
ControlClick("", "", $mainHanlde,"a")
Sleep(Random(750, 2000, 1))
ControlClick("", "", $mainHanlde,"a")
Sleep(Random(750, 2000, 1))
ControlClick("", "", $mainHanlde,"a")
Sleep(Random(750, 2000, 1))
ControlClick("", "", $mainHanlde,"a")
Sleep(3000)
WEnd