試圖使用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