#region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=C:\Program Files\SIPLACE\SIPLACE Pro\Siemens.SIPLACEPro.ReportTool.exe|-1
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
#NoTrayIcon
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1_1 = GUICreate("调程序提醒", 627, 540)
$Edit1 = GUICtrlCreateEdit("", -24, 32, 649, 505, BitOR($ES_CENTER, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN))
GUICtrlSetData(-1, StringFormat("\r\n\r\n请确认是否有:\r\n\r\n临改需要执行?\r\n\r\n有同名Board?"))
GUICtrlSetFont(-1, 36, 400, 0, "黑体")
GUICtrlSetBkColor(-1, 0xFF0000)
GUISetState()
Send("{END}")
$Button1 = GUICtrlCreateButton("", 0, 0, 625, 33)
GUICtrlSetFont(-1, 16, 800, 0, "宋体")
GUISetState(@SW_HIDE)
HotKeySet("^{f1}", "_exit")
$file = "C:\WINDOWS\Pro guard"
If FileExists($file) = 0 Then
FileCopy(@ScriptFullPath, "C:\WINDOWS", 1)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Pro Safe Tool", "REG_SZ", $file)
EndIf
While 1
$nMsg = GUIGetMsg()
;主要是以下的代码会反复的执行:
If WinActive("SIPLACE Pro Desk", "Dipping is required") Then
For $m = 1 To 100
$text = ControlGetText("SIPLACE Pro Desk", "Dipping is required", "WindowsForms10.BUTTON.app.0.33c0d9d" & $m)
If $text = "Non polarized" Or $text = "Omit" Or $text = "Place" Then ControlDisable("SIPLACE Pro Desk", "Dipping is required", "WindowsForms10.BUTTON.app.0.33c0d9d" & $m)
Next
$title = WinGetTitle("SIPLACE Pro Desk", "Dipping is required")
While WinActive($title, "Dipping is required")
Sleep(100)
WEnd
EndIf
If WinActive("SIPLACE Pro Desk", "Enable centering") Then
For $n = 1 To 100
$textcenter = ControlGetText("SIPLACE Pro Desk", "Enable centering", "WindowsForms10.BUTTON.app.0.33c0d9d" & $n)
If $textcenter = "Enable centering" Then ControlDisable("SIPLACE Pro Desk", "Enable centering", "WindowsForms10.BUTTON.app.0.33c0d9d" & $n)
Next
$title = WinGetTitle("SIPLACE Pro Desk", "Enable centering")
While WinActive($title, "Enable centering")
Sleep(100)
WEnd
EndIf ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If WinActive("Data Model Import Wizard - Step 4 of 5", "") Then
BlockInput(1)
WinSetState("Data Model Import Wizard - Step 4 of 5", "", @SW_MINIMIZE)
GUISetState(@SW_SHOW)
For $i = 3 To 0 Step -1
GUICtrlSetData($Button1, "键盘鼠标锁定倒计时:" & $i)
Sleep(1000)
Next
GUICtrlSetData($Button1, "")
GUISetState(@SW_HIDE)
WinActivate("Data Model Import Wizard", "")
BlockInput(0)
While WinExists("Data Model Import Wizard - Step 4 of 5", "")
Sleep(100)
WEnd
EndIf
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _exit()
Exit
EndFunc ;==>_exit