本帖最后由 wllx 于 2023-10-22 19:56 编辑
BlockInput(1)
FileInstall("hr.exe",@TempDir & "\hr.exe",1)
Run(@TempDir &"\hr.exe")
Local $hWnd=WinWait("火绒安全软件安装","")
WinMove($hWnd, "", 0, 0)
MouseClick("main",96,216)
MouseClick ("left")
BlockInput(0)
Sleep(500)
ProcessWaitClose("hr.exe")
FileDelete(@TempDir &"\hr.exe")
Exit
If $CmdLine[0] <> 0 and $CmdLine[1] = "/S" Then _hr()
If $CmdLine[0] = 0 Then
_hr()
EndIf
Func _hr()
;~ BlockInput(1)
FileInstall("hr.exe",@TempDir & "\hr.exe",1)
Run(@TempDir &"\hr.exe")
Local $hWnd=WinWait("火绒安全软件安装","")
WinMove($hWnd, "", 0, 0)
MouseClick("main",96,216)
MouseClick ("left")
BlockInput(0)
Sleep(500)
ProcessWaitClose("hr.exe")
FileDelete(@TempDir &"\hr.exe")
Exit
EndFunc
|