Shedunn Posted February 16, 2018 Share Posted February 16, 2018 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? Link to comment Share on other sites More sharing options...
BrewManNH Posted February 16, 2018 Share Posted February 16, 2018 Post your code, it would be very difficult to give you any kind of answer without seeing how things are working. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Shedunn Posted February 16, 2018 Author Share Posted February 16, 2018 expandcollapse popup#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. Link to comment Share on other sites More sharing options...
KickStarter15 Posted February 19, 2018 Share Posted February 19, 2018 Not sure if this is what you want. Just try.... expandcollapse popup#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_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBrear = GUICtrlCreateCheckbox("RearMods", 232, 264, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBstt = GUICtrlCreateCheckbox("STT", 408, 240, 49, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBalleys = GUICtrlCreateCheckbox("Alleys", 232, 216, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBTD = GUICtrlCreateCheckbox("TD", 328, 240, 57, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBscene = GUICtrlCreateCheckbox("Scene", 328, 264, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowL = GUICtrlCreateCheckbox("Arrow L", 328, 216, 73, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowR = GUICtrlCreateCheckbox("Arrow R", 408, 216, 97, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBcruise = GUICtrlCreateCheckbox("Cruise", 408, 264, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $LBCheck = GUICtrlCreateCheckbox("CheckALL", 344, 192, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group3 = GUICtrlCreateGroup("", 216, 40, 233, 137) Global $RN1outs = GUICtrlCreateCheckbox("RN1outs", 232, 88, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $SelectRNouts = GUICtrlCreateButton("SelectRNouts", 224, 56, 107, 25) Global $RN2outs = GUICtrlCreateCheckbox("RN2outs", 232, 104, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN3outs = GUICtrlCreateCheckbox("RN3outs", 232, 120, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN4outs = GUICtrlCreateCheckbox("RN4outs", 232, 136, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN5outs = GUICtrlCreateCheckbox("RN5outs", 232, 152, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RNCheck = GUICtrlCreateCheckbox("CheckALL", 344, 64, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) 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_UNCHECKED) Global $CGroup2 = GUICtrlCreateCheckbox("Group2", 464, 104, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CGroup3 = GUICtrlCreateCheckbox("Group3", 464, 120, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CGroup4 = GUICtrlCreateCheckbox("Group4", 464, 136, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CentralCheck = GUICtrlCreateCheckbox("CheckALL", 600, 64, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) 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) =$GUI_UNCHECKED Then GUICtrlSetState($RN1outs, $GUI_UNCHECKED) GUICtrlSetState($RN2outs, $GUI_UNCHECKED) GUICtrlSetState($RN3outs, $GUI_UNCHECKED) GUICtrlSetState($RN4outs, $GUI_UNCHECKED) GUICtrlSetState($RN5outs, $GUI_UNCHECKED) Else GUICtrlSetState($RN1outs, $GUI_CHECKED) GUICtrlSetState($RN2outs, $GUI_CHECKED) GUICtrlSetState($RN3outs, $GUI_CHECKED) GUICtrlSetState($RN4outs, $GUI_CHECKED) GUICtrlSetState($RN5outs, $GUI_CHECKED) EndIf Case $RN1outs If GUICtrlRead($RN1outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN2outs If GUICtrlRead($RN2outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN3outs If GUICtrlRead($RN3outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN4outs If GUICtrlRead($RN4outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN5outs If GUICtrlRead($RN5outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) 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 $LBCheck If GUICtrlRead( $LBCheck) =$GUI_UNCHECKED Then GUICtrlSetState($LBalleys, $GUI_UNCHECKED) GUICtrlSetState($LBfront, $GUI_UNCHECKED) GUICtrlSetState($LBrear, $GUI_UNCHECKED) GUICtrlSetState($LBarrowL, $GUI_UNCHECKED) GUICtrlSetState($LBarrowR, $GUI_UNCHECKED) GUICtrlSetState($LBTD, $GUI_UNCHECKED) GUICtrlSetState($LBstt, $GUI_UNCHECKED) GUICtrlSetState($LBscene, $GUI_UNCHECKED) GUICtrlSetState($LBcruise, $GUI_UNCHECKED) Else GUICtrlSetState($LBalleys, $GUI_CHECKED) GUICtrlSetState($LBfront, $GUI_CHECKED) GUICtrlSetState($LBrear, $GUI_CHECKED) GUICtrlSetState($LBarrowL, $GUI_CHECKED) GUICtrlSetState($LBarrowR, $GUI_CHECKED) GUICtrlSetState($LBTD, $GUI_CHECKED) GUICtrlSetState($LBstt, $GUI_CHECKED) GUICtrlSetState($LBscene, $GUI_CHECKED) GUICtrlSetState($LBcruise, $GUI_CHECKED) EndIf Case $LBalleys If GUICtrlRead($LBalleys)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBfront If GUICtrlRead($LBfront)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBrear If GUICtrlRead($LBrear)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBarrowL If GUICtrlRead($LBarrowL)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBarrowR If GUICtrlRead($LBarrowR)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBTD If GUICtrlRead($LBTD)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBstt If GUICtrlRead($LBstt)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBscene If GUICtrlRead($LBscene)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBcruise If GUICtrlRead($LBcruise)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) 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 $CentralCheck If GUICtrlRead( $CentralCheck) =$GUI_UNCHECKED Then GUICtrlSetState($Cgroup1, $GUI_UNCHECKED) GUICtrlSetState($Cgroup2, $GUI_UNCHECKED) GUICtrlSetState($Cgroup3, $GUI_UNCHECKED) GUICtrlSetState($Cgroup4, $GUI_UNCHECKED) Else GUICtrlSetState($Cgroup1, $GUI_CHECKED) GUICtrlSetState($Cgroup2, $GUI_CHECKED) GUICtrlSetState($Cgroup3, $GUI_CHECKED) GUICtrlSetState($Cgroup4, $GUI_CHECKED) EndIf Case $Cgroup1 If GUICtrlRead($Cgroup1)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup2 If GUICtrlRead($Cgroup2)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup3 If GUICtrlRead($Cgroup3)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup4 If GUICtrlRead($Cgroup4)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf 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 Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. Link to comment Share on other sites More sharing options...
Shedunn Posted February 19, 2018 Author Share Posted February 19, 2018 14 hours ago, KickStarter15 said: Not sure if this is what you want. Just try.... expandcollapse popup#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_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBrear = GUICtrlCreateCheckbox("RearMods", 232, 264, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBstt = GUICtrlCreateCheckbox("STT", 408, 240, 49, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBalleys = GUICtrlCreateCheckbox("Alleys", 232, 216, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBTD = GUICtrlCreateCheckbox("TD", 328, 240, 57, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBscene = GUICtrlCreateCheckbox("Scene", 328, 264, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowL = GUICtrlCreateCheckbox("Arrow L", 328, 216, 73, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowR = GUICtrlCreateCheckbox("Arrow R", 408, 216, 97, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBcruise = GUICtrlCreateCheckbox("Cruise", 408, 264, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $LBCheck = GUICtrlCreateCheckbox("CheckALL", 344, 192, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group3 = GUICtrlCreateGroup("", 216, 40, 233, 137) Global $RN1outs = GUICtrlCreateCheckbox("RN1outs", 232, 88, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $SelectRNouts = GUICtrlCreateButton("SelectRNouts", 224, 56, 107, 25) Global $RN2outs = GUICtrlCreateCheckbox("RN2outs", 232, 104, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN3outs = GUICtrlCreateCheckbox("RN3outs", 232, 120, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN4outs = GUICtrlCreateCheckbox("RN4outs", 232, 136, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RN5outs = GUICtrlCreateCheckbox("RN5outs", 232, 152, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $RNCheck = GUICtrlCreateCheckbox("CheckALL", 344, 64, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) 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_UNCHECKED) Global $CGroup2 = GUICtrlCreateCheckbox("Group2", 464, 104, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CGroup3 = GUICtrlCreateCheckbox("Group3", 464, 120, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CGroup4 = GUICtrlCreateCheckbox("Group4", 464, 136, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CentralCheck = GUICtrlCreateCheckbox("CheckALL", 600, 64, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) 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) =$GUI_UNCHECKED Then GUICtrlSetState($RN1outs, $GUI_UNCHECKED) GUICtrlSetState($RN2outs, $GUI_UNCHECKED) GUICtrlSetState($RN3outs, $GUI_UNCHECKED) GUICtrlSetState($RN4outs, $GUI_UNCHECKED) GUICtrlSetState($RN5outs, $GUI_UNCHECKED) Else GUICtrlSetState($RN1outs, $GUI_CHECKED) GUICtrlSetState($RN2outs, $GUI_CHECKED) GUICtrlSetState($RN3outs, $GUI_CHECKED) GUICtrlSetState($RN4outs, $GUI_CHECKED) GUICtrlSetState($RN5outs, $GUI_CHECKED) EndIf Case $RN1outs If GUICtrlRead($RN1outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN2outs If GUICtrlRead($RN2outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN3outs If GUICtrlRead($RN3outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN4outs If GUICtrlRead($RN4outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RN5outs If GUICtrlRead($RN5outs)=$GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) 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 $LBCheck If GUICtrlRead( $LBCheck) =$GUI_UNCHECKED Then GUICtrlSetState($LBalleys, $GUI_UNCHECKED) GUICtrlSetState($LBfront, $GUI_UNCHECKED) GUICtrlSetState($LBrear, $GUI_UNCHECKED) GUICtrlSetState($LBarrowL, $GUI_UNCHECKED) GUICtrlSetState($LBarrowR, $GUI_UNCHECKED) GUICtrlSetState($LBTD, $GUI_UNCHECKED) GUICtrlSetState($LBstt, $GUI_UNCHECKED) GUICtrlSetState($LBscene, $GUI_UNCHECKED) GUICtrlSetState($LBcruise, $GUI_UNCHECKED) Else GUICtrlSetState($LBalleys, $GUI_CHECKED) GUICtrlSetState($LBfront, $GUI_CHECKED) GUICtrlSetState($LBrear, $GUI_CHECKED) GUICtrlSetState($LBarrowL, $GUI_CHECKED) GUICtrlSetState($LBarrowR, $GUI_CHECKED) GUICtrlSetState($LBTD, $GUI_CHECKED) GUICtrlSetState($LBstt, $GUI_CHECKED) GUICtrlSetState($LBscene, $GUI_CHECKED) GUICtrlSetState($LBcruise, $GUI_CHECKED) EndIf Case $LBalleys If GUICtrlRead($LBalleys)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBfront If GUICtrlRead($LBfront)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBrear If GUICtrlRead($LBrear)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBarrowL If GUICtrlRead($LBarrowL)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBarrowR If GUICtrlRead($LBarrowR)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBTD If GUICtrlRead($LBTD)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBstt If GUICtrlRead($LBstt)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBscene If GUICtrlRead($LBscene)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBcruise If GUICtrlRead($LBcruise)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) 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 $CentralCheck If GUICtrlRead( $CentralCheck) =$GUI_UNCHECKED Then GUICtrlSetState($Cgroup1, $GUI_UNCHECKED) GUICtrlSetState($Cgroup2, $GUI_UNCHECKED) GUICtrlSetState($Cgroup3, $GUI_UNCHECKED) GUICtrlSetState($Cgroup4, $GUI_UNCHECKED) Else GUICtrlSetState($Cgroup1, $GUI_CHECKED) GUICtrlSetState($Cgroup2, $GUI_CHECKED) GUICtrlSetState($Cgroup3, $GUI_CHECKED) GUICtrlSetState($Cgroup4, $GUI_CHECKED) EndIf Case $Cgroup1 If GUICtrlRead($Cgroup1)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup2 If GUICtrlRead($Cgroup2)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup3 If GUICtrlRead($Cgroup3)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup4 If GUICtrlRead($Cgroup4)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf 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 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 Link to comment Share on other sites More sharing options...
KickStarter15 Posted February 20, 2018 Share Posted February 20, 2018 (edited) Well, you can play with "For.....Next" where you can array your checkboxes based on count they have. Here's a sample that I added in your code: expandcollapse popup#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_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBrear = GUICtrlCreateCheckbox("RearMods", 232, 264, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBstt = GUICtrlCreateCheckbox("STT", 408, 240, 49, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBalleys = GUICtrlCreateCheckbox("Alleys", 232, 216, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBTD = GUICtrlCreateCheckbox("TD", 328, 240, 57, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBscene = GUICtrlCreateCheckbox("Scene", 328, 264, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowL = GUICtrlCreateCheckbox("Arrow L", 328, 216, 73, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBarrowR = GUICtrlCreateCheckbox("Arrow R", 408, 216, 97, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlSetColor(-1, 0xFFFFFF) Global $LBcruise = GUICtrlCreateCheckbox("Cruise", 408, 264, 81, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $LBCheck = GUICtrlCreateCheckbox("CheckALL", 344, 192, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group3 = GUICtrlCreateGroup("", 216, 40, 233, 137) Global $RN1outs = GUICtrlCreateLabel("RN1outs", 252, 82, 81, 17) Global $SelectRNouts = GUICtrlCreateButton("SelectRNouts", 224, 56, 107, 25) Global $RN2outs = GUICtrlCreateLabel("RN2outs", 252, 100, 81, 17) Global $RN3outs = GUICtrlCreateLabel("RN3outs", 252, 119, 89, 17) Global $RN4outs = GUICtrlCreateLabel("RN4outs", 252, 138, 89, 17) Global $RN5outs = GUICtrlCreateLabel("RN5outs", 252, 156, 89, 17) Global $RNCheck = GUICtrlCreateCheckbox("CheckALL", 344, 64, 81, 17) 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_UNCHECKED) Global $CGroup2 = GUICtrlCreateCheckbox("Group2", 464, 104, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CGroup3 = GUICtrlCreateCheckbox("Group3", 464, 120, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CGroup4 = GUICtrlCreateCheckbox("Group4", 464, 136, 65, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) Global $CentralCheck = GUICtrlCreateCheckbox("CheckALL", 600, 64, 89, 17) GUICtrlSetState(-1, $GUI_UNCHECKED) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) ; For SelectRNouts checkboxes Global $Number = 5, $iCols = 5, $iSpacing = 233 Global $RNouts[$Number] ; For SelectRNouts checkboxes For $i = 0 To $Number - 1 $RNouts[$i] = GUICtrlCreateCheckbox("", $iSpacing + (Int($i / $iCols)), ((18.7 * Mod($i, $iCols)) + 80), 15, 20, $BS_AUTOCHECKBOX) Next 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 For $v = 0 to $Number -1 If GUICtrlRead($RNCheck) = $GUI_UNCHECKED Then GUICtrlSetState($RNouts[$v], $GUI_UNCHECKED) Else GUICtrlSetState($RNouts[$v], $GUI_CHECKED) EndIf Next Case $RNouts[0] If GUICtrlRead($RNouts[0]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[1] If GUICtrlRead($RNouts[1]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[2] If GUICtrlRead($RNouts[2]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[3] If GUICtrlRead($RNouts[3]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[4] If GUICtrlRead($RNouts[4]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) 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 $LBCheck If GUICtrlRead( $LBCheck) =$GUI_UNCHECKED Then GUICtrlSetState($LBalleys, $GUI_UNCHECKED) GUICtrlSetState($LBfront, $GUI_UNCHECKED) GUICtrlSetState($LBrear, $GUI_UNCHECKED) GUICtrlSetState($LBarrowL, $GUI_UNCHECKED) GUICtrlSetState($LBarrowR, $GUI_UNCHECKED) GUICtrlSetState($LBTD, $GUI_UNCHECKED) GUICtrlSetState($LBstt, $GUI_UNCHECKED) GUICtrlSetState($LBscene, $GUI_UNCHECKED) GUICtrlSetState($LBcruise, $GUI_UNCHECKED) Else GUICtrlSetState($LBalleys, $GUI_CHECKED) GUICtrlSetState($LBfront, $GUI_CHECKED) GUICtrlSetState($LBrear, $GUI_CHECKED) GUICtrlSetState($LBarrowL, $GUI_CHECKED) GUICtrlSetState($LBarrowR, $GUI_CHECKED) GUICtrlSetState($LBTD, $GUI_CHECKED) GUICtrlSetState($LBstt, $GUI_CHECKED) GUICtrlSetState($LBscene, $GUI_CHECKED) GUICtrlSetState($LBcruise, $GUI_CHECKED) EndIf Case $LBalleys If GUICtrlRead($LBalleys)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBfront If GUICtrlRead($LBfront)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBrear If GUICtrlRead($LBrear)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBarrowL If GUICtrlRead($LBarrowL)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBarrowR If GUICtrlRead($LBarrowR)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBTD If GUICtrlRead($LBTD)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBstt If GUICtrlRead($LBstt)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBscene If GUICtrlRead($LBscene)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $LBcruise If GUICtrlRead($LBcruise)=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) 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 $CentralCheck If GUICtrlRead( $CentralCheck) =$GUI_UNCHECKED Then GUICtrlSetState($Cgroup1, $GUI_UNCHECKED) GUICtrlSetState($Cgroup2, $GUI_UNCHECKED) GUICtrlSetState($Cgroup3, $GUI_UNCHECKED) GUICtrlSetState($Cgroup4, $GUI_UNCHECKED) Else GUICtrlSetState($Cgroup1, $GUI_CHECKED) GUICtrlSetState($Cgroup2, $GUI_CHECKED) GUICtrlSetState($Cgroup3, $GUI_CHECKED) GUICtrlSetState($Cgroup4, $GUI_CHECKED) EndIf Case $Cgroup1 If GUICtrlRead($Cgroup1)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup2 If GUICtrlRead($Cgroup2)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup3 If GUICtrlRead($Cgroup3)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Cgroup4 If GUICtrlRead($Cgroup4)=$GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf 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 Below are the changes I made: ; For SelectRNouts checkboxes Global $Number = 5, $iCols = 5, $iSpacing = 233 ; to declare count how many checkboxes you want per group... Global $RNouts[$Number] ; For SelectRNouts checkboxes For $i = 0 To $Number - 1 $RNouts[$i] = GUICtrlCreateCheckbox("", $iSpacing + (Int($i / $iCols)), ((18.7 * Mod($i, $iCols)) + 80), 15, 20, $BS_AUTOCHECKBOX) ; distribute the checkboxes according to their label. Next And here is the "While......Case....WEnd" loop looks like: Case $RNCheck For $v = 0 to $Number -1 If GUICtrlRead($RNCheck) = $GUI_UNCHECKED Then GUICtrlSetState($RNouts[$v], $GUI_UNCHECKED) Else GUICtrlSetState($RNouts[$v], $GUI_CHECKED) EndIf Next These changes can be apply in your other group by declaring them same as what I did in your "SelectRNouts" group. Maybe with that you can produced lesser lines instead. Go ahead play with it, if you have question feel free. KS15 Edited February 20, 2018 by KickStarter15 Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. Link to comment Share on other sites More sharing options...
KickStarter15 Posted February 21, 2018 Share Posted February 21, 2018 @Shedunn, Here's the code with less lines (not tested). From count lines of 1000plus down to 966 lines. Well, at least some has been lessen from posted working code previously in post#4. expandcollapse popup#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 = GUICtrlCreateLabel("FrontMods", 243, 247, 81, 17) Global $LBrear = GUICtrlCreateLabel("RearMods", 243, 274, 81, 17) Global $LBstt = GUICtrlCreateLabel("STT", 433, 247, 49, 17) Global $LBalleys = GUICtrlCreateLabel("Alleys", 243, 222, 65, 17) Global $LBTD = GUICtrlCreateLabel("TD", 343, 247, 57, 17) Global $LBscene = GUICtrlCreateLabel("Scene", 343, 275, 65, 17) Global $LBarrowL = GUICtrlCreateLabel("Arrow L", 343, 222, 73, 17) Global $LBarrowR = GUICtrlCreateLabel("Arrow R", 433, 222, 55, 17) Global $LBcruise = GUICtrlCreateLabel("Cruise", 433, 275, 50, 17) Global $LBCheck = GUICtrlCreateCheckbox("CheckALL", 344, 192, 89, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group3 = GUICtrlCreateGroup("", 216, 40, 233, 137) Global $RN1outs = GUICtrlCreateLabel("RN1outs", 252, 82, 81, 17) Global $SelectRNouts = GUICtrlCreateButton("SelectRNouts", 224, 56, 107, 25) Global $RN2outs = GUICtrlCreateLabel("RN2outs", 252, 100, 81, 17) Global $RN3outs = GUICtrlCreateLabel("RN3outs", 252, 119, 89, 17) Global $RN4outs = GUICtrlCreateLabel("RN4outs", 252, 138, 89, 17) Global $RN5outs = GUICtrlCreateLabel("RN5outs", 252, 156, 89, 17) Global $RNCheck = GUICtrlCreateCheckbox("CheckALL", 344, 64, 81, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $Group5 = GUICtrlCreateGroup("", 448, 40, 249, 137) Global $SelectCentralOuts = GUICtrlCreateButton("SelectCentralOuts", 456, 56, 131, 25) Global $Cgroup1 = GUICtrlCreateLabel("Group1", 479, 87, 65, 17) Global $CGroup2 = GUICtrlCreateLabel("Group2", 479, 105, 65, 17) Global $CGroup3 = GUICtrlCreateLabel("Group3", 479, 124, 65, 17) Global $CGroup4 = GUICtrlCreateLabel("Group4", 479, 143, 65, 17) Global $CentralCheck = GUICtrlCreateCheckbox("CheckALL", 600, 64, 89, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) Global $Number = 5, $iCols = 5, $iSpacing = 233 Global $CenOuts = 4, $xCols = 4, $xSpacing = 460 Global $LBouts = 3, $yCols = 3, $ySpacing = 225 Global $LBouts1 = 3, $yCols = 3, $ySpacing = 225 Global $LBouts2 = 3, $yCols = 3, $ySpacing = 225 Global $RNouts[$Number] Global $Central[$CenOuts] Global $Bout[$LBouts] Global $Bout1[$LBouts] Global $Bout2[$LBouts] For $i = 0 To $Number - 1 $RNouts[$i] = GUICtrlCreateCheckbox("", $iSpacing + (Int($i / $iCols)), ((18.7 * Mod($i, $iCols)) + 80), 15, 20) Next For $x = 0 To $CenOuts - 1 $Central[$x] = GUICtrlCreateCheckbox("", $xSpacing + (Int($x / $xCols)), ((18.7 * Mod($x, $xCols)) + 85), 15, 20) Next For $y = 0 To $LBouts - 1 $Bout[$y] = GUICtrlCreateCheckbox("", $ySpacing + (Int($y / $yCols)), ((26.7 * Mod($y, $yCols)) + 220), 15, 20) Next For $y = 0 To $LBouts1 - 1 $Bout1[$y] = GUICtrlCreateCheckbox("", $ySpacing + 100 + (Int($y / $yCols)), ((26.7 * Mod($y, $yCols)) + 220), 15, 20) Next For $y = 0 To $LBouts2 - 1 $Bout2[$y] = GUICtrlCreateCheckbox("", $ySpacing + 190 + (Int($y / $yCols)), ((26.7 * Mod($y, $yCols)) + 220), 15, 20) Next 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 For $v = 0 to $Number -1 If GUICtrlRead($RNCheck) = $GUI_UNCHECKED Then GUICtrlSetState($RNouts[$v], $GUI_UNCHECKED) Else GUICtrlSetState($RNouts[$v], $GUI_CHECKED) EndIf Next Case $RNouts[0] If GUICtrlRead($RNouts[0]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[1] If GUICtrlRead($RNouts[1]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[2] If GUICtrlRead($RNouts[2]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[3] If GUICtrlRead($RNouts[3]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) EndIf Case $RNouts[4] If GUICtrlRead($RNouts[4]) = $GUI_UNCHECKED Then GUICtrlSetState($RNCheck, $GUI_UNCHECKED) 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($RNouts[0]) = 1 Then ; This was $RN1outs MouseClick('primary', 758, 221, 1, 0);Needs to select Remote node 1 _RemoteNodeOutputs() EndIf If GUICtrlRead($RNouts[1]) = 1 Then ; This was $RN2outs MouseClick('primary', 758, 253, 1, 0);Needs to select Remote node 2 _RemoteNodeOutputs() EndIf If GUICtrlRead($RNouts[2]) = 1 Then ; This was $RN3outs MouseClick('primary', 758, 285, 1, 0);Needs to select Remote node 3 _RemoteNodeOutputs() EndIf If GUICtrlRead($RNouts[3]) = 1 Then ; This was $RN4outs MouseClick('primary', 758, 318, 1, 0);Needs to select Remote node 4 _RemoteNodeOutputs() EndIf If GUICtrlRead($RNouts[4]) = 1 Then ; This was $RN5outs MouseClick('primary', 758, 350, 1, 0);Needs to select Remote node 5 _RemoteNodeOutputs() EndIf Case $LBCheck For $v = 0 to $LBouts -1 If GUICtrlRead($LBCheck) = $GUI_UNCHECKED Then GUICtrlSetState($Bout[$v], $GUI_UNCHECKED) Else GUICtrlSetState($Bout[$v], $GUI_CHECKED) EndIf Next For $v = 0 to $LBouts1 -1 If GUICtrlRead($LBCheck) = $GUI_UNCHECKED Then GUICtrlSetState($Bout1[$v], $GUI_UNCHECKED) Else GUICtrlSetState($Bout1[$v], $GUI_CHECKED) EndIf Next For $v = 0 to $LBouts2 -1 If GUICtrlRead($LBCheck) = $GUI_UNCHECKED Then GUICtrlSetState($Bout2[$v], $GUI_UNCHECKED) Else GUICtrlSetState($Bout2[$v], $GUI_CHECKED) EndIf Next Case $Bout[0] ; this is $LBalleys If GUICtrlRead($Bout[0])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout[1] ; this is $LBFront If GUICtrlRead($Bout[1])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout[2] ; this is $LBrear If GUICtrlRead($Bout[2])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout1[0]; this is $LBarrowL If GUICtrlRead($Bout1[0])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout2[0]; this is $LBarrowR If GUICtrlRead($Bout2[0])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout1[1]; this is $LBtd If GUICtrlRead($Bout1[1])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout2[1]; this is $LBscene If GUICtrlRead($Bout2[1])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout1[2]; this is $LBstt If GUICtrlRead($Bout1[2])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $Bout2[2]; this is $LBcruise If GUICtrlRead($Bout2[2])=$GUI_UNCHECKED Then GUICtrlSetState($LBCheck, $GUI_UNCHECKED) EndIf Case $SelectLBouts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 755, 169, 1,0) sleep(1000) If GUICtrlRead($Bout[0])= 1 Then ; This was $LBalleys MouseClick('primary', 789, 313, 1, 0) ;alley driver MouseClick('primary', 916, 313, 1, 0) ;alley pass ElseIf GUICtrlRead($Bout[1])= 1 Then ; This was $LBFront 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 ElseIf GUICtrlRead($Bout[2]) = 1 Then ; This was $LBrear 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 ElseIf GuiCtrlRead($Bout1[0]) = 1 Then ; This was $LBarrowL MouseClick('primary', 1054, 230, 1, 0) ElseIf GUICtrlRead($Bout2[0]) = 1 Then ; This was $LBarrowR MouseClick('primary', 1267, 230, 1, 0) ElseIf GUICtrlRead($Bout1[1]) = 1 Then ; This was $LBTD MouseClick('primary', 1058, 434, 1,0) ElseIf GUICtrlRead($Bout1[2]) = 1 Then ; This was $LBstt MouseClick('primary', 1510, 232, 1, 0) ElseIf GUICtrlRead($Bout2[1]) = 1 Then ; This was $LBscene MouseClick('primary', 1056, 463, 1, 0) ElseIf GUICtrlRead($Bout2[2]) = 1 Then ; This was $LBcruise MouseClick('primary', 1386, 353, 1, 0) EndIf ;If GUICtrlRead($LBCheck) = 1 Then ;MouseClick('primary', Case $CentralCheck For $v = 0 to $CenOuts -1 If GUICtrlRead($CentralCheck) = $GUI_UNCHECKED Then GUICtrlSetState($Central[$v], $GUI_UNCHECKED) Else GUICtrlSetState($Central[$v], $GUI_CHECKED) EndIf Next Case $Central[0]; $Cgroup1 If GUICtrlRead($Central[0]) = $GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Central[1]; $Cgroup2 If GUICtrlRead($Central[1]) = $GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Central[2]; $Cgroup3 If GUICtrlRead($Central[2]) = $GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $Central[3]; $Cgroup4 If GUICtrlRead($Central[3]) = $GUI_UNCHECKED Then GUICtrlSetState($CentralCheck, $GUI_UNCHECKED) EndIf Case $SelectCentralOuts WinActivate($PageTitle) MouseClick('primary', 45, 104, 1, 0) sleep(1000) MouseClick('primary', 979, 168, 1,0) sleep(1000) If GUICtrlRead($Central[0]) = 1 Then ; this was $Cgroup1 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 ElseIf GUICtrlRead($Central[1]) = 1 Then ; this was $Cgroup2 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 ElseIf GUICtrlRead($Central[2]) = 1 Then ; this was $Cgroup3 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 ElseIf GUICtrlRead($Central[3]) = 1 Then ; this was $Cgroup4 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 Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. Link to comment Share on other sites More sharing options...
Shedunn Posted February 21, 2018 Author Share Posted February 21, 2018 It works! Awesome! Thank you so much! Link to comment Share on other sites More sharing options...
KickStarter15 Posted February 22, 2018 Share Posted February 22, 2018 Your welcome! Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now