Jump to content

Shedunn

Active Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Shedunn's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. My first thought would be to make each case set a variable to a certain number and exit the loop, then use an if, else if loop to look at the variable and if its this number use this file...and so on...the only issue I can see with that is that I would have to use a nested if...and autoit doesn't seem to like those.
  2. Func _updateSIRENpanel() ;updates SIREN panel if called out by updateControlPanel function ControlClick($diagnosticsWin, "", "[NAME:cmbCentralPort]", "primary", 1) Send('{DOWN} {ENTER}');selects SIREN _oneClickUp(199, 198) If GUICtrlRead($latestFw) <> 1 Then WinWait($selectFWfile) $SIRENpanelMessage = GUICreate("SIREN port panel", 549, 258, 266, 124) $SIRENportLable = GUICtrlCreateLabel("Which control panel type is plugged into the SIREN port?", 80, 40, 377, 18) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENconsRotary = GUICtrlCreateButton("Console ROTARY", 120, 112, 131, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENconsPush = GUICtrlCreateButton("Console PUSH", 312, 112, 131, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENremPush = GUICtrlCreateButton("Remote PUSH", 24, 176, 123, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENremRotary = GUICtrlCreateButton("Remote ROTARY", 208, 176, 123, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENhandheld = GUICtrlCreateButton("HandHeld", 392, 176, 123, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") GUISetState() $handle = WinGetHandle( "SIREN port panel") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE ExitLoop Case $SIRENconsRotary _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $SIRENpanelStatus = $status ExitLoop Case $SIRENconsPush _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $SIRENpanelStatus = $status ExitLoop Case $SIRENremPush _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $SIRENpanelStatus = $status ExitLoop Case $SIRENremRotary _findFwFile('control_panels\', "CP_SO_RR_v01_*.enc") $SIRENpanelStatus = $status ExitLoop Case $SIRENhandheld _findFwFile('control_panels\', "CP_SO_HH_v02_*.enc") $SIRENpanelStatus = $status ExitLoop EndSwitch WEnd GUIDelete($handle) EndIf EndFunc Above is the code after I added the ExitLoop and it goes back to the main chunk of code again when its run, YAY! Thank you! My only other issue now is that I would like to have the child gui go away as soon as a button is selected. Any ideas on how to get that to work?
  3. I was using GUIDelete to close the child Gui. I just assumed that would exit that loop and return to the original. I will try ExitLoop. Where should I put ExitLoop? should it be within each of the Child gui's cases? Before/After GUIDelete?
  4. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <Array.au3> #include <Misc.au3> #include <File.au3> #include <Date.au3> #include <StaticConstants.au3> AutoItSetOption('MouseCoordMode' , 0) Opt("WinTitleMatchMode", 2) Opt("PixelCoordMode", 0) HotKeySet("{SPACE}", "Pause") HotKeySet("{ESC}", "EscapeApplication") #Region ### START Koda GUI section ### Form=c:\users\sdunn\desktop\autoit stuff\firmwareupdaterform.kxf Global $firmwareUpdater = GUICreate("BP3 Firmware Updater", 631, 502, 266, 124) GUISetBkColor(0x696969) Global $Group1 = GUICtrlCreateGroup("Choose the devices you would like to update", 32, 96, 329, 297) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") GUICtrlSetColor(-1, 0x000000) Global $centralController = GUICtrlCreateCheckbox("Central Controller", 64, 128, 193, 17) GUICtrlSetColor(-1, 0xFFFFFF) Global $remote1 = GUICtrlCreateCheckbox("Remote Node #1", 64, 149, 137, 17) Global $remote2 = GUICtrlCreateCheckbox("Remote Node #2", 64, 170, 137, 17) Global $remote3 = GUICtrlCreateCheckbox("Remote Node #3", 64, 190, 137, 17) Global $remote4 = GUICtrlCreateCheckbox("Remote Node #4", 64, 211, 137, 17) Global $remote5 = GUICtrlCreateCheckbox("Remote Node #5", 64, 232, 137, 17) Global $inputNode = GUICtrlCreateCheckbox("Input Node", 64, 253, 137, 17) Global $RA200 = GUICtrlCreateCheckbox("200R Siren A", 64, 274, 137, 17) Global $RB200 = GUICtrlCreateCheckbox("200R Siren B", 64, 294, 137, 17) Global $Amp480 = GUICtrlCreateCheckbox("480 Amplifier", 64, 315, 137, 17) Global $controlPanel = GUICtrlCreateCheckbox("Control Panel", 64, 336, 137, 17) Global $CPport = GUICtrlCreateRadio("CP port", 88, 357, 73, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $SirenPort = GUICtrlCreateRadio("SIREN port", 171, 357, 97, 17) Global $Both = GUICtrlCreateRadio("Both", 285, 357, 57, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $updateSelected = GUICtrlCreateButton("Update Selected", 400, 166, 185, 33) GUICtrlSetFont(-1, 11, 800, 0, "Verdana") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) Global $updateAll = GUICtrlCreateButton("Update ALL Devices", 400, 238, 185, 33) GUICtrlSetFont(-1, 11, 800, 0, "Verdana") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) Global $openBP3 = GUICtrlCreateButton("Open bluePrint3", 208, 42, 185, 33) GUICtrlSetFont(-1, 11, 800, 0, "Verdana") GUICtrlSetBkColor(-1, 0x0066CC) Global $Exit = GUICtrlCreateButton("Exit", 208, 418, 185, 33) GUICtrlSetFont(-1, 11, 800, 0, "Verdana") GUICtrlSetBkColor(-1, 0x800000) Global $latestFw = GUICtrlCreateCheckbox("Use Latest FW", 472, 120, 145, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ;##################################################### Global variables ########################################################################################## Global $PageTitle = 'bluePRINT 3 - Version 3.' Global $diagnosticsWin = 'bluePRINT Diagnostics' Global $sameFWpopup = 'Same Firmware' Global $sameFWtext = "The current firmware version on the device is the same as the firmware file version." Global $youSurePopup = "One Click Update" Global $youSureText = "This operation will erase the device and update firmware." Global $fwUpdateCompPopup = "Firmware Update" Global $fwUpdateCompText = "Firmware update is complete" Global $notRecognizedCPpopup = "Control Panel Firmware" Global $notRecognizedCPtext = "Control Panel type is not recognized on selected central port." Global $fwUpdateCompPopup2 = "Update Firmware Result" Global $fwUpdateCompText2 = "Update successful." Global $centralNotConnectedPop = "Firmware Update" Global $centralNotConnectedText = "No USB connection to controller detected." Global $cpUpdateCompPopup = "Control Panel Update" Global $cpUpdateCompText = "Control panel update successful!" Global $useLatestCheckBoxText = "Use Latest" Global $selectFWfile = "Please select the firmware update file for the device being updated:" Global $centralStatus = "Not Attempted" Global $r1Status = "Not Attamepted" Global $r2Status = "Not Attempted" Global $r3Status = "Not Attempted" Global $r4Status = "Not Attempted" Global $r5Status = "Not Attempted" Global $inputNodeStatus = "Not Attempted" Global $RA200Status = "Not Attempted" Global $RB200Status = "Not Attempted" Global $amp480Status = "Not Attempted" Global $CPpanelStatus = "Not Attempted" Global $SIRENpanelStatus = "Not Attempted" Global $x = 0 Global $status = "" Global $checkedYN = "" ;##################################################### Program order of events ############################################################################# While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Exit Exit Case $openBP3 _bluePRINT3() Case $updateSelected _goToDiagnosticsFWtab() ;if central is selected update it If GUICtrlRead($centralController) = 1 Then _updateCentral() EndIf ;if remotnode 1 is selected update it If GUICtrlRead($remote1) = 1 Then _updateRemote1() EndIf ;if remotenode 2 is selected update it If GUICtrlRead($remote2) = 1 Then _updateRemote2() EndIf ;if remotenode 3 is selected update it If GUICtrlRead($remote3) = 1 Then _updateRemote3() EndIf ;if remotenode 4 is selected update it If GUICtrlRead($remote4) = 1 Then _updateRemote4() EndIf ;if remotenode 5 is selected update it If GUICtrlRead($remote5) = 1 Then _updateRemote5() EndIf ;if input node is selected update it If GUICtrlRead($inputNode) = 1 Then _updateInputNode() EndIf ;if 200R siren A is selected update it If GUICtrlRead($RA200) = 1 Then _update200Ra() EndIf ;if 200R siren B is selected update it If GUICtrlRead($RB200) = 1 Then _update200Rb() EndIf ;if 480 Amplifier is selected update it If GUICtrlRead($Amp480) = 1 Then _update480Amp() EndIf ;if control panel is selected update it If GUICtrlRead($controlPanel) = 1 Then _updateControlPanel() EndIf _updateStatusReportAll() Case $updateAll _goToDiagnosticsFWtab() _updateCentral() ;_updateRemote1() ;_updateRemote2() ;_updateRemote3() ;_updateRemote4() ;_updateRemote5() ;_updateInputNode() ;_update200Ra() ;_update200Rb() ;_update480Amp() ;GUICtrlSetState($Both, $GUI_CHECKED) ;_updateControlPanel() EndSwitch WEnd ;##################################################### HotKey Functions ########################################################################################### Func Pause() While _IsPressed(20) WEnd EndFunc Func EscapeApplication() Exit EndFunc ;################################################### Functions #################################################################################################### Func _bluePRINT3() ;opens bp3 app Local $aBluePRINT3 = _FileListToArrayRec(@LocalAppDataDir & "\Apps\2.0", "bluePRINT3.exe", 1, 1, 1, 2) ;creates an array with 1st entry being path, second being file If @error Then Exit MsgBox(16, "bluePRINT3", "Unable to find bluePRINT3.exe files under " & @LocalAppDataDir & "\Apps\2.0") ;if the bp3.exe file can't be found it gives error Local $aBP3Version[$aBluePRINT3[0]][2] ;creates a new array that takes each entry in the first array and gives it a version/time For $i = 1 To $aBluePRINT3[0] $aBP3Version[$i-1][0] = $aBluePRINT3[$i] $aBP3Version[$i-1][1] = FileGetTime($aBluePRINT3[$i], 1, 1) ; Organizes by the time the BP3.exe file was created, FileGetVersion($aBluePRINT3[$i]) Next _ArraySort($aBP3Version, 1, 0, 0, 1) ; Sorts array so that the file created most recently is shown first [0][0] descending order Run($aBP3Version[0][0]) ;runs the most recently created bp3.exe file WinWait($PageTitle) WinActivate($PageTitle) EndFunc Func _findFwFile($folder, $name) ;finds the correct firmware file for each device ;Path to all FW files J:\PD\Development\Products\Control_Systems\EV_Control_System\03-Software\firmware_images_for_Autotest\ ;Newest RemRot FW file: CP_SO_RR_v01_09.enc ;Newest Remote Push FW File: CP_SO_RE_v02_17.enc ;Newest Handheld FW file: CP_SO_HH_v02_17.enc ;Newest Console FW file: CP_SO_CN_v02_06.enc $FWfolderPath = 'J:\PD\Development\Products\Control_Systems\EV_Control_System\03-Software\firmware_images_for_Autotest\' & $folder Local $aFWFileList = _FileListToArray($FWfolderPath, $name, 1) If @error = 1 Then MsgBox($MB_SYSTEMMODAL, "", "Path was invalid.") Break EndIf If @error = 4 Then MsgBox($MB_SYSTEMMODAL, "", "No file(s) were found.") Break EndIf ; _ArrayDisplay($aFWFileList, "$aFWFileList") ;Line used to test the array $aFWFileList _ArrayReverse($aFWFileList) ;Reverses the order of the array so it can find the very last element which is the newest version ;_ArrayDisplay($aFWFileList, "$aFWFileList") ;Line used to test the array $aFWFileList $FWfile = $aFWFileList[0] ;Saves name of file into a variable ;MsgBox(0, "FW File", $fwFile) ;Line used to test the array $aFWFileList WinWait($selectFWfile) WinActivate($selectFWfile) ControlClick ($selectFWfile, "", "[CLASS:Edit; INSTANCE:1]", 'primary', 1, 149, 12) Sleep(200) Send($FWfolderpath) Send($FWfile) Send ("{ENTER}") ControlClick($selectFWfile, "&Open", "[CLASS:Button; INSTANCE:1]", "primary", 1,313, 12) _popUps() EndFunc Func _goToDiagnosticsFWtab() ;opens the diagnostics window and goes to firmware update tab WinActivate($pageTitle) MouseClick('primary',351, 47, 1, 0) WinWait($diagnosticsWin) WinActivate($diagnosticsWin) MouseClick('primary', 125, 40, 1, 0) EndFunc Func _FWdeviceSelect() ;Clicks the device drop down box in firmware update tab WinActivate($diagnosticsWin) ControlClick($diagnosticsWin, "", "[NAME:cB_FW_Module]", 'primary', 1, 57, 13 ) EndFunc Func _oneClickUp($w, $t) ;clicks the OneClickUpdate button in the firmware update tab WinActivate($diagnosticsWin) _isUseLatestChecked($w, $t) ControlClick($diagnosticsWin,"One-Click Update","[NAME:b_OneFWUpdate]","primary", 1) If GUICtrlRead($latestFw) = 1 Then _popUps() EndIf EndFunc Func _popUps() ;handles popups during install and makes the app wait until the firmware is done installing to move to the next device $x = 1 ;this variable will only change if the fw update complete popup appears OR if there is an error message While $x = 1 If WinActive("CP port panel") Then GUIDelete(WinGetHandle("CP port panel")) EndIf If WinActive("SIREN port panel") Then GUIDelete(WinGetHandle("SIREN port panel")) EndIf If WinActive($sameFWpopup, $sameFWtext) Then ControlClick("Same Firmware", "&Yes", 6,'primary', 1) EndIf If WinActive($youSurePopup, $youSureText) Then ControlClick($youSurePopup, "&Yes", 6, 'primary', 1) EndIf If WinActive($centralNotConnectedPop, $centralNotConnectedText) Then ControlClick($centralNotConnectedPop, "OK", 2, 'primary', 1) $x = 3 $status = "FAILED - Central Not Connected" EndIf If WinActive($notRecognizedCPpopup, $notRecognizedCPtext) Then ControlClick($notRecognizedCPpopup, "OK", 2, 'primary', 1) $x = 3 $status = "FAILED - Device Not Detected/Recognized" EndIf If WinActive($fwUpdateCompPopup, $fwUpdateCompText) Then ControlClick($fwUpdateCompPopup, "OK", 2, 'primary', 1) $x = 2 $status = "SUCCESSFUL" EndIf If WinActive($fwUpdateCompPopup2, $fwUpdateCompText2) Then ControlClick($fwUpdateCompPopup2, "OK", 2, 'primary', 1) $x = 2 $status = "SUCCESSFUL" EndIf If WinActive($cpUpdateCompPopup, $cpUpdateCompText) Then ControlClick($cpUpdateCompPopup, "OK", 2, 'primary', 1) $x=2 $status = "SUCCESSFUL" EndIf WEnd EndFunc Func _updateStatusReportAll() ;Produces a report that displays whether each device was attempted, succeeded, or failed the update MsgBox(1, "Firmware Update Results", "Central: " & $centralStatus & @LF & "Remote Node 1: " & $r1Status & @LF & "Remote Node 2: " & $r2Status & @LF & "Remote Node 3: " & $r3Status & @LF & "Remote Node 4: " & $r4Status & @LF & "Remote Node 5: " & $r5Status & @LF & "Input Node: " & $inputNodeStatus & @LF & "200R Siren A: " & $RA200Status & @LF & "200R Siren B: " & $RB200Status & @LF & "480 Amplifier: " & $amp480Status & @LF & "CP Control Panel: " & $CPpanelStatus & @LF & "SIREN Control Panel: " & $SIRENpanelStatus) EndFunc Func _isUseLatestChecked($w, $t) ;checks to see if the used latest box is checked on the fw update tab ;coords (203,161) detect checkmark in regular box location ;coords (199, 198) detect checkmark when box is moved after control panel is selected If $w = 203 Then $color = "6476A5" Else $color = "475C94" EndIf WinActivate($diagnosticsWin) $checked1 = PixelGetColor($w, $t) $checked2 = Hex($checked1, 6) $checkedYN = "" ;MsgBox(0, "color of checkmark", $checked2) ;used to test pixelcolor If $checked2 = $color Then $checkedYN = "Yes" Else $checkedYN = "No" EndIf ; MsgBox(0, "Is use latest checked?", "Is use Latest checked? " & $checkedYN) ;used to test if box is checked or not If GUICtrlRead($latestFw) = 1 And $checkedYN = "No" Then ControlClick($diagnosticsWin, "Use Latest", "[NAME:chkUseLatestFirmware]", "primary", 1) ;MsgBox(0, "first if statement", "checked in test gui, not checked in bp3") ;used to make sure loop is executed properly ElseIf GUICtrlRead($latestFW) <> 1 And $checkedYN = "Yes" Then ControlClick($diagnosticsWin, "Use Latest", "[NAME:chkUseLatestFirmware]", "primary", 1) ;MsgBox(0, "second if statement", "not checked in test gui, checked in bp3") ;used to make sure loop is executed properly EndIf EndFunc Func _updateCentral() ;runs through updating the central _FWdeviceSelect() Send ('{UP 10}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) = 1 Then Else _findFwFile("central\", "CPDU_APP_v3_*.enc") EndIf $centralStatus = $status Sleep(2000) EndFunc Func _updateRemote1() ;runs through updating remote node 1 _FWdeviceSelect() Send ('{UP 10}{DOWN 1}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('remote\', "RPDU_APP_v01_*.enc") EndIf $r1Status = $status EndFunc Func _updateRemote2() ;runs through updating remote node 2 _FWdeviceSelect() Send ('{UP 10}{DOWN 2}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('remote\', "RPDU_APP_v01_*.enc") EndIf $r2Status = $status EndFunc Func _updateRemote3() ;runs through updating remote node 3 _FWdeviceSelect() Send ('{UP 10}{DOWN 3}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('remote\', "RPDU_APP_v01_*.enc") EndIf $r3Status = $status EndFunc Func _updateRemote4() ;runs through updating remote node 4 _FWdeviceSelect() Send ('{UP 10}{DOWN 4}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('remote\', "RPDU_APP_v01_*.enc") EndIf $r4Status = $status EndFunc Func _updateRemote5() ;runs through updating remote node 5 _FWdeviceSelect() Send ('{UP 10}{DOWN 5}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('remote\', "RPDU_APP_v01_*.enc") EndIf $r5Status = $status EndFunc Func _updateInputNode() ;runs through updating the input node _FWdeviceSelect() Send ('{UP 10}{DOWN 6}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('input_node\', "INPUT_NODE_APP_v01_*.enc") EndIf $inputNodeStatus = $status EndFunc Func _update200Ra() ;runs through updating the 200R siren A _FWdeviceSelect() Send ('{UP 10}{DOWN 7}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('200R\', "200R_APP_v01_*.enc") EndIf $RA200Status = $status EndFunc Func _update200Rb() ;runs through updating the 200R siren B _FWdeviceSelect() Send ('{UP 10}{DOWN 8}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('200R\', "200R_APP_v01_*.enc") EndIf $RB200Status = $status EndFunc Func _update480Amp() ;runs through updating the 480Amplifier _FWdeviceSelect() Send ('{UP 10}{DOWN 9}{ENTER}') _oneClickUp(203,161) If GUICtrlRead($latestFw) <> 1 Then _findFwFile('480R\', "480_Amp_SO_2W_v01_*.enc") EndIf $amp480Status = $status EndFunc Func _updateControlPanel() ;runs through updating the control panels whether in CP port, Siren port, or both calls on updateCPpanel and updateSIRENpanel functions _FWdeviceSelect() Send ('{UP 10}{DOWN 10}{ENTER}') If GUICtrlRead($CPport)= 1 Then _updateCPpanel() ElseIf GUICtrlRead($SIRENport)= 1 Then _updateSIRENpanel() ElseIf GUICtrlRead($Both)= 1 Then _updateCPpanel() _updateSIRENpanel() EndIf $controlPanelStatus = $status EndFunc Func _updateCPpanel() ;updates CP panel if called out by updateControlPanel function ControlClick($diagnosticsWin, "", "[NAME:cmbCentralPort]", "primary", 1) Send('{UP}{ENTER}');selects CP _oneClickUp(199, 198) If GUICtrlRead($latestFw) <> 1 Then WinWait($selectFWfile) $CPpanelMessage = GUICreate("CP port panel", 501, 154, 266, 124) $CPportLabel = GUICtrlCreateLabel("Which control panel type is plugged into the CP port?", 64, 16, 353, 18) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $CPpush = GUICtrlCreateButton("RemotePUSH", 41, 88, 123, 25) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $CProtary = GUICtrlCreateButton("RemoteROTARY", 193, 88, 139, 25) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $CPhandheld = GUICtrlCreateButton("HandHeld", 361, 88, 99, 25) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") GUISetState() $handle = WinGetHandle( "CP port panel") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE GUIDelete($handle) Case $CPpush _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $CPpanelStatus = $status GUIDelete($handle) Case $CProtary _findFwFile('control_panels\', "CP_SO_RR_v01_*.enc") $CPpanelStatus = $status GUIDelete($handle) Case $CPhandheld _findFwFile('control_panels\', "CP_SO_HH_v02_*.enc") $CPpanelStatus = $status GUIDelete($handle) EndSwitch WEnd EndIf EndFunc Func _updateSIRENpanel() ;updates SIREN panel if called out by updateControlPanel function ControlClick($diagnosticsWin, "", "[NAME:cmbCentralPort]", "primary", 1) Send('{DOWN} {ENTER}');selects SIREN _oneClickUp(199, 198) If GUICtrlRead($latestFw) <> 1 Then WinWait($selectFWfile) $SIRENpanelMessage = GUICreate("SIREN port panel", 549, 258, 266, 124) $SIRENportLable = GUICtrlCreateLabel("Which control panel type is plugged into the SIREN port?", 80, 40, 377, 18) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENconsRotary = GUICtrlCreateButton("Console ROTARY", 120, 112, 131, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENconsPush = GUICtrlCreateButton("Console PUSH", 312, 112, 131, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENremPush = GUICtrlCreateButton("Remote PUSH", 24, 176, 123, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENremRotary = GUICtrlCreateButton("Remote ROTARY", 208, 176, 123, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") $SIRENhandheld = GUICtrlCreateButton("HandHeld", 392, 176, 123, 33) GUICtrlSetFont(-1, 9, 800, 0, "Verdana") GUISetState() $handle = WinGetHandle( "SIREN port panel") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE GUIDelete($handle) Case $SIRENconsRotary _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $SIRENpanelStatus = $status GUIDelete($handle) Case $SIRENconsPush _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $SIRENpanelStatus = $status GUIDelete($handle) Case $SIRENremPush _findFwFile('control_panels\', "CP_SO_RE_v02_*.enc") $SIRENpanelStatus = $status GUIDelete($handle) Case $SIRENremRotary _findFwFile('control_panels\', "CP_SO_RR_v01_*.enc") $SIRENpanelStatus = $status GUIDelete($handle) Case $SIRENhandheld _findFwFile('control_panels\', "CP_SO_HH_v02_*.enc") $SIRENpanelStatus = $status GUIDelete($handle) EndSwitch WEnd EndIf EndFunc Above is my code. The two functions involved with the "child" gui (I'm not sure if that's right or not) are _updateCPpanel and _updateSIRENpanel . What I want to happen is if I go to update a CP or SIREN panel from a file a little gui asks what type of control panel is plugged in, user clicks the relevant button, child gui goes away, it selects the correct file based on what button was pressed in child gui, and continues in the main chunk of code where it left off. Right now I click a button on the child gui and it finds the file and updates the panel....then the child gui goes away BUT the main chunk of code doesn't continue where it left off.
  5. I just realized the macros existed after reading another post and I tried this $FileName = 'QuickConfig_' & @MDAY & '-' & @MON & '-' & @YEAR & '_' & @HOUR & @MIN Works! Thank you
  6. I've been looking through some different functions(not sure if that's the right word) to get the Date and time and I can't find one that doesn't include "/ " or ":" in what is returned. I'm trying to create a file name with this format "QuickConfig_MMDDYYYY_HHMM" (doesn't matter if 24 or 12hr format) #include <Date.au3> Func _SaveConfig MouseClick('primary',155, 46, 1, 0) ;clicks save as WinWait('Save bluePRINT Configuration As...','', 4) MouseClick('primary',632, 47, 1, 0) ;clicks the file path bar $Documents = @MyDocumentsDir $FilePath = $Documents & '\BP3 Configs' Send($FilePath) Send('{ENTER}') MouseClick('primary',166, 580, 1, 0) ;clicks file name bar $FileName = 'QuickConfig_' & _NowDate & '_' & _NowTime Send($FileName) Send('{ENTER}') EndFunc I'm wondering if there is a function somewhere to do this?
  7. That is exactly what I was wanting it to do. I was hoping there was a shortcut I could use that needed less lines. But it is what it is and it works. Thank you
  8. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=y #AutoIt3Wrapper_Run_Au3Stripper=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <Array.au3> #include <File.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <ButtonConstants.au3> #include <WindowsConstants.au3> AutoItSetOption('MouseCoordMode' , 0) Opt("WinTitleMatchMode", 2) #Region ### START Koda GUI section ### Form=c:\users\sdunn\desktop\shelbysbp3tool.kxf Global $ShelbysBP3Tool = GUICreate("Shelby's BP3 Tool", 738, 414, -1, -1) GUISetFont(10, 800, 0, "Sitka Display") GUISetBkColor(0x6D6D6D) Global $StartBP3 = GUICtrlCreateButton("StartBP3", 223, 8, 115, 33) GUICtrlSetFont(-1, 14, 800, 0, "Sitka Display") GUICtrlSetColor(-1, 0x000000) GUICtrlSetBkColor(-1, 0x3399FF) Global $SelectSirenSysOuts = GUICtrlCreateButton("SelectSirenSysOuts", 536, 176, 163, 33) GUICtrlSetColor(-1, 0x000000) Global $SirenRelayOuts = GUICtrlCreateButton("SirenRelayOuts", 536, 224, 163, 33) GUICtrlSetColor(-1, 0x000000) Global $SetNames = GUICtrlCreateButton("SetNames", 32, 304, 107, 25) GUICtrlSetColor(-1, 0x000000) Global $EXIT = GUICtrlCreateButton("EXIT", 331, 328, 75, 33) GUICtrlSetFont(-1, 14, 800, 0, "Sitka Display") GUICtrlSetColor(-1, 0x000000) GUICtrlSetBkColor(-1, 0x800000) Global $InstallBP3 = GUICtrlCreateButton("InstallBP3", 391, 8, 123, 33) GUICtrlSetFont(-1, 14, 800, 0, "Sitka Display") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) Global $Group1 = GUICtrlCreateGroup("", 16, 40, 185, 113) Global $RemotePush1 = GUICtrlCreateRadio("RemotePush", 32, 80, 129, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $RemoteRotary1 = GUICtrlCreateRadio("RemoteRotary", 32, 96, 137, 17) Global $Handheld1 = GUICtrlCreateRadio("Handheld", 32, 112, 113, 17) Global $SetupCPpanel = GUICtrlCreateButton("SetupCPpanel", 24, 56, 115, 25) Global $NotUsed1 = GUICtrlCreateRadio("Not Used", 32, 128, 113, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group2 = GUICtrlCreateGroup("", 16, 152, 169, 145) Global $RemoteRotary2 = GUICtrlCreateRadio("RemoteRotary", 32, 208, 113, 17) Global $ConsolePush = GUICtrlCreateRadio("ConsolePush", 32, 224, 113, 17) Global $ConsoleRotary = GUICtrlCreateRadio("ConsoleRotary", 32, 240, 113, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $Handheld2 = GUICtrlCreateRadio("Handheld", 32, 256, 113, 17) Global $RemotePush2 = GUICtrlCreateRadio("RemotePush", 32, 192, 113, 17) Global $SetupSIRENpanel = GUICtrlCreateButton("SetupSIRENpanel", 24, 168, 155, 25) Global $NotUsed2 = GUICtrlCreateRadio("Not Used", 32, 272, 113, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group4 = GUICtrlCreateGroup("", 216, 176, 297, 121) Global $SelectLBouts = GUICtrlCreateButton("SelectLBouts", 224, 192, 107, 25) Global $LBfront = GUICtrlCreateCheckbox("FrontMods", 232, 240, 81, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBrear = GUICtrlCreateCheckbox("RearMods", 232, 264, 81, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBstt = GUICtrlCreateCheckbox("STT", 408, 240, 49, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBalleys = GUICtrlCreateCheckbox("Alleys", 232, 216, 65, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBTD = GUICtrlCreateCheckbox("TD", 328, 240, 57, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBscene = GUICtrlCreateCheckbox("Scene", 328, 264, 65, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowL = GUICtrlCreateCheckbox("Arrow L", 328, 216, 73, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowR = GUICtrlCreateCheckbox("Arrow R", 408, 216, 97, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBcruise = GUICtrlCreateCheckbox("Cruise", 408, 264, 81, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $LBCheck = GUICtrlCreateCheckbox("CheckALL", 344, 192, 89, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group3 = GUICtrlCreateGroup("", 216, 40, 233, 137) Global $RN1outs = GUICtrlCreateCheckbox("RN1outs", 232, 88, 81, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $SelectRNouts = GUICtrlCreateButton("SelectRNouts", 224, 56, 107, 25) Global $RN2outs = GUICtrlCreateCheckbox("RN2outs", 232, 104, 81, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN3outs = GUICtrlCreateCheckbox("RN3outs", 232, 120, 89, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN4outs = GUICtrlCreateCheckbox("RN4outs", 232, 136, 89, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN5outs = GUICtrlCreateCheckbox("RN5outs", 232, 152, 89, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RNCheck = GUICtrlCreateCheckbox("CheckALL", 344, 64, 81, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group5 = GUICtrlCreateGroup("", 448, 40, 249, 137) Global $SelectCentralOuts = GUICtrlCreateButton("SelectCentralOuts", 456, 56, 131, 25) Global $Cgroup1 = GUICtrlCreateCheckbox("Group1", 464, 88, 65, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $CGroup2 = GUICtrlCreateCheckbox("Group2", 464, 104, 65, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $CGroup3 = GUICtrlCreateCheckbox("Group3", 464, 120, 65, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $CGroup4 = GUICtrlCreateCheckbox("Group4", 464, 136, 65, 17) GUICtrlSetState(-1, $GUI_CHECKED) Global $CentralCheck = GUICtrlCreateCheckbox("CheckALL", 600, 64, 89, 17) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) Global $PageTitle = 'bluePRINT 3 - Version 3.' Global $NameBox = 'Assign I/O' While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $EXIT Exit Case $StartBP3 _bluePRINT3() Case $InstallBP3 ;_InstallBP3internal Case $SetupCPpanel WinActivate($PageTitle) ;MouseClick('primary', 339,204, 1, 0) ;MouseClick('primary', 615,116, 1, 0) MouseClick('primary', 122,106, 1, 0) sleep( 1000) MouseClick('primary', 130, 131, 1, 0) Sleep( 1000) MouseClick('primary', 732, 182, 1, 0) If GUICtrlRead( $RemotePush1) = 1 Then Send('{UP 3}{DOWN 2}{ENTER}') EndIf If GUICtrlRead( $RemoteRotary1) = 1 Then Send('{UP 3}{DOWN 1}{ENTER}') EndIf If GUICtrlRead( $Handheld1) = 1 Then Send('{UP 3}{DOWN 3}{ENTER}') EndIf If GUICtrlRead($NotUsed1) = 1 Then Send('{UP 3}{ENTER}') EndIf Sleep( 2000) MouseClick('primary', 45, 104, 1, 0) ;Clicks I/O Mapping tab Case $SetupSIRENpanel WinActivate($PageTitle) MouseClick('primary', 122,106, 1, 0) sleep( 1000) MouseClick('primary', 130, 131, 1, 0) Sleep( 1000) MouseClick('primary', 1471, 181,1,0) If GUICtrlRead( $ConsoleRotary) = 1 Then Send('{UP 5}{DOWN 1}{ENTER}') EndIf If GUICtrlRead( $ConsolePush) = 1 Then Send('{UP 5}{DOWN 2}{ENTER}') EndIf If GUICtrlRead( $RemoteRotary2) = 1 Then Send('{UP 5}{DOWN 3}{ENTER}') EndIf If GUICtrlRead( $Handheld2) = 1 Then Send('{UP 5}{DOWN 5}{ENTER}') EndIf If GUICtrlRead($NotUsed2) = 1 Then Send('{UP 5}{ENTER}') EndIf Sleep( 2000) MouseClick('primary', 45, 104, 1, 0) Case $RNCheck If GUICtrlRead( $RNCheck) =1 Then GUICtrlSetState( $RN1outs, 1) GUICtrlSetState( $RN2outs, 1) GUICtrlSetState( $RN3outs, 1) GUICtrlSetState( $RN4outs, 1) GUICtrlSetState( $RN5outs, 1);Set RNode Outputs 1-5 to 1(Checked) EndIf Case $SelectRNouts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 874, 169, 1, 0);Needs to click on I/O Mapping and Remote Node outputs tab sleep(1000) If GUICtrlRead( $RN1outs) = 1 Then MouseClick('primary', 758, 221, 1, 0);Needs to select Remote node 1 _RemoteNodeOutputs() EndIf If GUICtrlRead( $RN2outs) = 1 Then MouseClick('primary', 758, 253, 1, 0);Needs to select Remote node 2 _RemoteNodeOutputs() EndIf If GUICtrlRead( $RN3outs) = 1 Then MouseClick('primary', 758, 285, 1, 0);Needs to select Remote node 3 _RemoteNodeOutputs() EndIf If GUICtrlRead( $RN4outs) = 1 Then MouseClick('primary', 758, 318, 1, 0);Needs to select Remote node 4 _RemoteNodeOutputs() EndIf If GUICtrlRead( $RN5outs) = 1 Then MouseClick('primary', 758, 350, 1, 0);Needs to select Remote node 5 _RemoteNodeOutputs() EndIf Case $SelectLBouts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 755, 169, 1,0) sleep(1000) If GUICtrlRead($LBalleys)= 1 Then MouseClick('primary', 789, 313, 1, 0) ;alley driver MouseClick('primary', 916, 313, 1, 0) ;alley pass EndIf If GUICtrlRead($LBfront)= 1 Then MouseClick('primary', 796, 431, 1, 0) ; FInb1 MouseClick('primary', 796, 461, 1, 0) ;FInb2 MouseClick('primary', 796, 491, 1, 0) ;FInb3 MouseClick('primary', 796, 520, 1, 0) ;FInb4 MouseClick('primary', 796, 550, 1, 0) ;FInb5 MouseClick('primary', 796, 230, 1, 0) ;FCorners EndIf If GUICtrlRead($LBrear) = 1 Then MouseClick('primary', 922, 431, 1, 0) ; RInb1 MouseClick('primary', 922, 461, 1, 0) ;RInb2 MouseClick('primary', 922, 491, 1, 0) ;RInb3 MouseClick('primary', 922, 520, 1, 0) ;RInb4 MouseClick('primary', 922, 550, 1, 0) ;RInb5 MouseClick('primary', 796, 260, 1, 0) ;RCorners EndIf If GuiCtrlRead($LBarrowL) = 1 Then MouseClick('primary', 1054, 230, 1, 0) EndIf If GUICtrlRead($LBarrowR) = 1 Then MouseClick('primary', 1267, 230, 1, 0) EndIf If GUICtrlRead($LBTD) = 1 Then MouseClick('primary', 1058, 434, 1,0) EndIf If GUICtrlRead($LBstt) = 1 Then MouseClick('primary', 1510, 232, 1, 0) EndIf If GUICtrlRead($LBscene) = 1 Then MouseClick('primary', 1056, 463, 1, 0) EndIf If GUICtrlRead($LBcruise) = 1 Then MouseClick('primary', 1386, 353, 1, 0) EndIf ;If GUICtrlRead($LBCheck) = 1 Then ;MouseClick('primary', Case $SelectCentralOuts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 979, 168, 1,0) sleep(1000) If GUICtrlRead($Cgroup1) = 1 Then MouseClick('primary', 825, 260, 1, 0) ;#1 MouseClick('primary', 825, 295, 1, 0) ;#2 MouseClick('primary', 825, 330, 1, 0) ;#3 MouseClick('primary', 825, 364, 1, 0) ;#4 MouseClick('primary', 825, 399, 1, 0) ;#5 EndIf If GUICtrlRead($Cgroup2) = 1 Then MouseClick('primary', 825, 490, 1, 0) ;#6 MouseClick('primary', 825, 524, 1, 0) ;#7 MouseClick('primary', 825, 559, 1, 0) ;#8 MouseClick('primary', 825, 595, 1, 0) ;#9 MouseClick('primary', 825, 630, 1, 0) ;#10 EndIf If GUICtrlRead($Cgroup3) = 1 Then MouseClick('primary', 1299, 259, 1, 0) ;#15 MouseClick('primary', 1299, 295, 1, 0) ;#16 MouseClick('primary', 1299, 331, 1, 0) ;#17 MouseClick('primary', 1299, 365, 1, 0) ;#18 MouseClick('primary', 1299, 400, 1, 0) ;#19 EndIf If GUICtrlRead($Cgroup4) = 1 Then MouseClick('primary', 1299, 490, 1, 0) ;#20 MouseClick('primary', 1299, 523, 1, 0) ;#21 MouseClick('primary', 1299, 560, 1, 0) ;#22 MouseClick('primary', 1299, 595, 1, 0) ;#23 MouseClick('primary', 1299, 630, 1, 0) ;#24 EndIf Case $SetNames WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) $NameBox = 'Assign I/O' _RN1ONames() _RN2ONames() _RN3ONames() _RN4ONames() _RN5ONames() sleep(1000) _CentralOutNames() Case $SelectSirenSysOuts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 1519, 547, 1, 0) ;Siren System tab _SirenSystemFeatures _SirenSystemCP _SirenSystemSirenfeatures _SirenSystemOverride _SirenSystemArrow Case $SirenRelayOuts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary',1843, 438, 1, 0) ;Siren Relays tab EndSwitch WEnd ;######################################### End GUI STUFF ########################################### Func _bluePRINT3() ;Run(@ScriptDir & '\bluePRINT3.exe', '', @SW_MAXIMIZE) Local $aBluePRINT3 = _FileListToArrayRec(@LocalAppDataDir & "\Apps\2.0", "bluePRINT3.exe", 1, 1, 1, 2) If @error Then Exit MsgBox(16, "bluePRINT3", "Unable to find bluePRINT3.exe files under " & @LocalAppDataDir & "\Apps\2.0") Local $aBP3Version[$aBluePRINT3[0]][2] For $i = 1 To $aBluePRINT3[0] $aBP3Version[$i-1][0] = $aBluePRINT3[$i] $aBP3Version[$i-1][1] = FileGetVersion($aBluePRINT3[$i]) Next _ArraySort($aBP3Version, 1, 0, 0, 1) Run($aBP3Version[1][0]) WinWait($PageTitle) WinActivate($PageTitle) EndFunc Func _SirenSystemFeatures() MouseClick('primary',1244, 618, 1, 0) ;Cruise MouseClick('primary',1254, 655, 1, 0) ;Cruise2 MouseClick('primary',1238, 687, 1, 0) ;LP1 MouseClick('primary',1246, 720, 1, 0) ;LP2 EndFunc Func _SirenSystemCP() MouseClick('primary',1453, 617, 1, 0) ;Rem Beep MouseClick('primary',1453, 651, 1, 0) ;Backlight MouseClick('primary',1454, 685, 1, 0) ;BL Int1 MouseClick('primary',1456, 721, 1, 0) ;BL Int2 MouseClick('primary',1453, 753, 1, 0) ;Security Trigger EndFunc Func _SirenSystemSirenfeatures() MouseClick('primary',1241, 790, 1, 0) ;Park Kill Trigger MouseClick('primary',1238, 826, 1, 0) ;Horn Ring Trigger MouseClick('primary',1243, 860, 1, 0) ;Horn Ring Enable MouseClick('primary',1241, 895, 1, 0) ;OEM horn cut EndFunc Func _SirenSystemOverride() MouseClick('primary',1457, 826, 1, 0) ;Wail MouseClick('primary',1459, 859, 1, 0) ;Yelp MouseClick('primary',1456, 893, 1, 0) ;Tone MouseClick('primary',1456, 928, 1, 0) ;Manual MouseClick('primary',1456, 962, 1, 0) ;Airhorn MouseClick('primary',1456, 995, 1, 0) ;PA MouseClick('primary',1457, 1033, 1, 0) ;RR MouseClick('primary',1455, 1063, 1, 0) ;Aux Input Tone EndFunc Func _SirenSystemArrow() MouseClick('primary',1242, 959, 1, 0) ;Left Group1 MouseClick('primary',1239, 995, 1, 0) ;Right Group 1 MouseClick('primary',1236, 1029, 1, 0) ;Left Group 2 MouseClick('primary',1242, 1062, 1, 0) ;Right Group 2 EndFunc Func _CentralOutNames() WinActivate($PageTitle) $NameBox = 'Enter Output Name' MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 979, 168, 1,0) sleep(1000) MouseClick('Secondary', 825, 260, 1, 0) ;#1 WinWait($NameBox) WinActivate($NameBox) Send('COut1') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 295, 1, 0) ;#2 WinWait($NameBox) WinActivate($NameBox) Send('COut2') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 330, 1, 0) ;#3 WinWait($NameBox) WinActivate($NameBox) Send('COut3') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 364, 1, 0) ;#4 WinWait($NameBox) WinActivate($NameBox) Send('COut4') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 399, 1, 0) ;#5 WinWait($NameBox) WinActivate($NameBox) Send('COut5') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 490, 1, 0) ;#6 WinWait($NameBox) WinActivate($NameBox) Send('COut6') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 524, 1, 0) ;#7 WinWait($NameBox) WinActivate($NameBox) Send('COut7') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 825, 559, 1, 0) ;#8 WinWait($NameBox) WinActivate($NameBox) Send('COut8') Send('{ENTER}') WinActivate($PageTitle) MouseClick('Secondary', 825, 595, 1, 0) ;#9 WinWait($NameBox) WinActivate($NameBox) Send('COut9') Send('{ENTER}') WinActivate($PageTitle) MouseClick('Secondary', 825, 630, 1, 0) ;#10 WinWait($NameBox) WinActivate($NameBox) Send('COut10') Send('{ENTER}') WinActivate($PageTitle) MouseClick('Secondary', 1299, 259, 1, 0) ;#15 WinWait($NameBox) WinActivate($NameBox) Send('COut15') Send('{ENTER}') WinActivate($PageTitle) MouseClick('Secondary', 1299, 295, 1, 0) ;#16 WinWait($NameBox) WinActivate($NameBox) Send('COut16') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 331, 1, 0) ;#17 WinWait($NameBox) WinActivate($NameBox) Send('COut17') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 365, 1, 0) ;#18 WinWait($NameBox) WinActivate($NameBox) Send('COut18') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 400, 1, 0) ;#19 WinWait($NameBox) WinActivate($NameBox) Send('COut19') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 490, 1, 0) ;#20 WinWait($NameBox) WinActivate($NameBox) Send('COut20') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 523, 1, 0) ;#21 WinWait($NameBox) WinActivate($NameBox) Send('COut21') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 560, 1, 0) ;#22 WinWait($NameBox) WinActivate($NameBox) Send('COut22') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 595, 1, 0) ;#23 WinWait($NameBox) WinActivate($NameBox) Send('COut23') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1299, 630, 1, 0) ;#24 WinWait($NameBox) WinActivate($NameBox) Send('COut24') Send('{ENTER}') WinActivate($PageTitle) sleep(1000) EndFunc Func _RemoteNodeOutputs() Sleep(1000) ;gives time for tab to refresh MouseClick('primary', 1126, 260, 1, 0);RN1output1 MouseClick('primary', 1123, 292, 1, 0);RN1output2 MouseClick('primary', 1120, 326, 1, 0);RN1output3 MouseClick('primary', 1121, 361, 1, 0);RN1output4 MouseClick('primary', 1121, 392, 1, 0);RN1output5 MouseClick('primary', 1121, 479, 1, 0);RN1output6 MouseClick('primary', 1121, 513, 1, 0);RN1output7 MouseClick('primary', 1121, 546, 1, 0);RN1output8 MouseClick('primary', 1121, 577, 1, 0);RN1output9 MouseClick('primary', 1121, 611, 1, 0);RN1output10 EndFunc Func _RN1ONames() MouseClick('primary', 874, 169, 1, 0);Remote Node outputs tab sleep(1000) MouseClick('primary', 758, 221, 1, 0) ;Rnode1 MouseClick('secondary', 1126, 260, 1, 0);RN1output1 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out1') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1123, 292, 1, 0);RN1output2 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out2') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1120, 326, 1, 0);RN1output3 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out3') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 361, 1, 0);RN1output4 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out4') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 392, 1, 0);RN1output5 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out5') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 479, 1, 0);RN1output6 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out6') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 513, 1, 0);RN1output7 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out7') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 546, 1, 0);RN1output8 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out8') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 577, 1, 0);RN1output9 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out9') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 611, 1, 0);RN1output10 WinWait($NameBox) WinActivate($NameBox) Send('RN1Out10') Send('{ENTER}') WinActivate($PageTitle) EndFunc Func _RN2ONames() MouseClick('primary', 874, 169, 1, 0);Remote Node outputs tab sleep(1000) MouseClick('primary', 758, 253, 1, 0) ;Rnode2 MouseClick('secondary', 1126, 260, 1, 0);RN1output1 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out1') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1123, 292, 1, 0);RN1output2 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out2') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1120, 326, 1, 0);RN1output3 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out3') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 361, 1, 0);RN1output4 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out4') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 392, 1, 0);RN1output5 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out5') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 479, 1, 0);RN1output6 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out6') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 513, 1, 0);RN1output7 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out7') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 546, 1, 0);RN1output8 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out8') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 577, 1, 0);RN1output9 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out9') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 611, 1, 0);RN1output10 WinWait($NameBox) WinActivate($NameBox) Send('RN2Out10') Send('{ENTER}') WinActivate($PageTitle) EndFunc Func _RN3ONames() MouseClick('primary', 874, 169, 1, 0);Remote Node outputs tab sleep(1000) MouseClick('primary', 758, 285, 1, 0) ;Rnode3 MouseClick('secondary', 1126, 260, 1, 0);RN1output1 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out1') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1123, 292, 1, 0);RN1output2 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out2') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1120, 326, 1, 0);RN1output3 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out3') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 361, 1, 0);RN1output4 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out4') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 392, 1, 0);RN1output5 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out5') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 479, 1, 0);RN1output6 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out6') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 513, 1, 0);RN1output7 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out7') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 546, 1, 0);RN1output8 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out8') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 577, 1, 0);RN1output9 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out9') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 611, 1, 0);RN1output10 WinWait($NameBox) WinActivate($NameBox) Send('RN3Out10') Send('{ENTER}') WinActivate($PageTitle) EndFunc Func _RN4ONames() MouseClick('primary', 874, 169, 1, 0);Remote Node outputs tab sleep(1000) MouseClick('primary', 758, 318, 1, 0) ;Rnode4 MouseClick('secondary', 1126, 260, 1, 0);RN1output1 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out1') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1123, 292, 1, 0);RN1output2 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out2') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1120, 326, 1, 0);RN1output3 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out3') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 361, 1, 0);RN1output4 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out4') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 392, 1, 0);RN1output5 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out5') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 479, 1, 0);RN1output6 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out6') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 513, 1, 0);RN1output7 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out7') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 546, 1, 0);RN1output8 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out8') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 577, 1, 0);RN1output9 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out9') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 611, 1, 0);RN1output10 WinWait($NameBox) WinActivate($NameBox) Send('RN4Out10') Send('{ENTER}') WinActivate($PageTitle) EndFunc Func _RN5ONames() MouseClick('primary', 874, 169, 1, 0);Remote Node outputs tab sleep(1000) MouseClick('primary', 758, 350, 1, 0) ;Rnode5 MouseClick('secondary', 1126, 260, 1, 0);RN1output1 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out1') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1123, 292, 1, 0);RN1output2 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out2') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1120, 326, 1, 0);RN1output3 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out3') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 361, 1, 0);RN1output4 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out4') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 392, 1, 0);RN1output5 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out5') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 479, 1, 0);RN1output6 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out6') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 513, 1, 0);RN1output7 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out7') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 546, 1, 0);RN1output8 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out8') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 577, 1, 0);RN1output9 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out9') Send('{ENTER}') WinActivate($PageTitle) MouseClick('secondary', 1121, 611, 1, 0);RN1output10 WinWait($NameBox) WinActivate($NameBox) Send('RN5Out10') Send('{ENTER}') WinActivate($PageTitle) EndFunc I didn't post the WHOLE thing before because I figured it would just be more confusing. The tidbit I posted before has all the buttons I'm referring to for the group with remote nodes in it.
  9. Case $RNCheck If GUICtrlRead( $RNCheck) =1 Then GUICtrlSetState( $RN1outs, 1) GUICtrlSetState( $RN2outs, 1) GUICtrlSetState( $RN3outs, 1) GUICtrlSetState( $RN4outs, 1) GUICtrlSetState( $RN5outs, 1);Set RNode Outputs 1-5 to 1(Checked) EndIf In my Gui I have groups of check boxes with a separate one that says "Check ALL" that checks all of them within its group. What I was wondering is if there is a way to make it so that if Any of the other checkboxes in the group are unchecked it unchecks the "Check ALL" box?
  10. I can't edit the exclusion list either. Looks like I'm going to have to get the IT department at work involved. Darn it all
  11. I'm not sure how or if I can turn off the antivirus software on my work computer. They use Bitdefender Endpoint Security tools. If I try to open the program I can't access the options to turn off the service. Not sure if there is some kind of work around or not
  12. I haven't tried that but I will
  13. Also, I have none of these issues on my home computer, which has win10. My work computer has win7
  14. I recently installed AutoIT(the most recent version) on my work computer and everytime I try to use Koda to generate code for a GUI Koda freezes....nothing can be clicked on and I have to use task manager to end the task. It doesn't seem to matter if I open a file or if I try with a fresh design. It also freezes if I try to change any settings within Koda I've tried uninstalling everything AutoIT related and reinstalling and restarting the computer. No matter what it still does it Is there a setting somewhere that could be causing this?
×
×
  • Create New...