All Activity

This stream auto-updates   

  1. Past hour
  2. Great. Thank you. How can I use "Enter" on my ComboBox as I do with my mouse?
  3. Today
  4. 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: #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
  5. I would be also interested to see this answer.
  6. Did you make more changes than the Beta version, which also should be made in my version? if so, could you share what those changes are? Jos
  7. Hello Lupo73, thank you very much for this UDF The _SFTP_DirDelete function loops to infinity trying to erase "." and ".." I added a test: If ($ aFileList [$ A] [0] <> ".") And ($ aFileList [$ A] [0] <> "..") Then ... do not know not so "." and ".." are sytematically present at the top of the list on all the servers ; #FUNCTION# ==================================================================================================================== ; Name...........: _SFTP_DirDelete ; Description ...: Deletes a Directory on a SFTP server. ; Syntax.........: _SFTP_DirDelete ( $hConnection, $sRemoteDir ) ; Parameters ....: $hConnection - as returned by _SFTP_Connect(). ; $sRemoteDir - The remote Directory to be deleted. ; Return values .: Success - 1 ; Failure - 0, sets @error ; |1 - The connection is closed ; |2 - Directory not found ; |3 - Directory probably contains not removable files ; |4 - Failed listing Directory ; |5 - Other error ; Author ........: Lupo73 ; Modified.......: ; Remarks .......: ; Related .......: _SFTP_Connect, _SFTP_FileDelete, _SFTP_ListToArrayEx ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _SFTP_DirDelete($hConnection, $sRemoteDir) If ProcessExists($hConnection) = 0 Then Return SetError(1, 0, 0) EndIf Local $aFileList = _SFTP_ListToArrayEx($hConnection, $sRemoteDir) If @error Then Return SetError(4, 0, 0) EndIf If $aFileList[0][0] > 0 Then For $A = 1 To $aFileList[0][0] If StringLeft($aFileList[$A][2], 1) <> "d" Then _SFTP_FileDelete($hConnection, $sRemoteDir & "/" & $aFileList[$A][0]) Else ;-- Do not try to delete "." and ".." --------------------------- If ($aFileList[$A][0] <> ".") And ($aFileList[$A][0] <> "..") Then _SFTP_DirDelete($hConnection, $sRemoteDir & "/" & $aFileList[$A][0]) EndIf If @error Then Return SetError(5, 0, 0) EndIf Next EndIf ;-- Etc .... -------------- EndFunc
  8. Maybe using an Arduino Leonardo ?? You can hook the Leonardo to the Raspberry and interact with the Leonardo from the Windows computer (maybe with another Arduino via RX-TX pins, maybe with a Bluetooth serial, maybe with a serial port adapter...) It all depends of your bucket for the project... Can we get some more details? Just for curiosity Greets from Barcelona
  9. My Code: $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "https://www.earnstations.com/") ;$Source = _WD_GetSource($sSession) ;MsgBox(0,'',_WD_Status()) ;Please allow up to 5 seconds… $Source = _WD_GetSource($sSession) While Not StringInStr($Source,'class="btn"') Sleep(100) $Source = _WD_GetSource($sSession) WEnd _WD_WaitElement($sSession,$_WD_LOCATOR_ByXPath,"//a[@class='btn']") $sElement = _WD_FindElement($sSession,$_WD_LOCATOR_ByXPath,"//a[@class='btn']") _WD_ElementAction($sSession, $sElement, 'click')
  10. That's because you started/ended the RTL text with letters. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> GUICreate("RTL GUI", 470, 400, -1, -1, -1);, $WS_EX_LAYOUTRTL) $LV = GUICtrlCreateListView('Items', 10, 10, 350, 380) GUICtrlCreateListViewItem('25 من 100 وحدة', $LV) GUICtrlCreateListViewItem('135/م/124', $LV) GUICtrlCreateListViewItem('معطل (بتاريخ 1436/2/24)', $LV) _GUICtrlListView_JustifyColumn($LV, 0, 1) _GUICtrlListView_SetColumnWidth($LV, 0, 240) GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd Besides, almost all the GUI info and controls are RTL, so I need the "$WS_EX_LAYOUTRTL" extended style.
  11. @Danp2 I encountered an error while running the code after compile it. My image error
  12. Yes, was exactly what I needed. Ace! Well for magnet links at least.
  13. You could add some error checking after each call to one of the _IE functions. You'll need to provide a better description of the issue if you want further input. Which lines are failing? Post the contents of the Scite output window for us to review.
  14. #includes hierarchy does not converge What does it mean?
  15. I'm new to AutoIt and programming/scripting in general and have been having some trouble getting scripts I create on my personal machine to run the same on my work computer. I'm running windows 10 enterprise on both machines and Functions like _IENavigate and _IETagNameGetCollection don't seem to read the DOM when executed on my work computer, unless I run it with Administrative permissions I haven't been able to get around this. I've been unsuccessful searching the forum and google for this particular issue. Any Suggestions? #include <IE.au3> #include <Array.au3> #include <String.au3> $asset = InputBox("PC Search", "Search by AM", "", "", 100, 120) If @error = 0 Then $oIE = _IECreate("http://mypc.org/PeekabooApi/peek/assets/assettags/" & $asset & "?Min=2&", 0, 0) $h4 = _IETagNameGetCollection($oIE, "h4") For $title In $h4 If IsObj($title) Then Local $arr = StringSplit($title.innerhtml, "", 2) $string = _ArrayToString($arr, "", 11, 24, "", 11, 24) InputBox("Search Results", "Found String", $string, "", 100, 120) EndIf Next Else EndIf
  16. Never mind, Finally just figured it out ; Write the REG_SZ value of "WK.exe". RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw\Compatibility\WK.1.exe", "Name", "REG_SZ", "WK.exe") ; Write the REG_BINARY value of flags and ID $BinFlag = '0x00800000' $BinID = '0xec33743b' RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw\Compatibility\WK.1.exe", "Flags", "REG_BINARY", binary($BinFlag)) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw\Compatibility\WK.1.exe", "ID", "REG_BINARY", binary ($BinID))
  17. Hello, I need help inserting these keys and values to registry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw\Compatibility\WK.1.exe] "Flags"=hex:00,08,00,00 "ID"=hex:ec,33,74,3b Still can't figure out how...
  18. Yes. You could do it with a combination of _IsPressed to capture the right mouse being pressed and released and MouseWheel to do your scrolling up and down. Look at the examples in the help file for details. Not sure why you want to trigger it on the right mouse button since it triggers a context menu in most applications. Here's a very simple example: #include <Misc.au3> example() Func example() Local $hDll = DllOpen("user32.dll") While True Sleep(10) ;If right mouse button pressed If _IsPressed("02", $hDll) Then ;Wait until no longer pressed While _IsPressed("02", $hDll) Sleep(10) WEnd ;Do your action MsgBox(0, "Example", "Right mouse button released") ExitLoop EndIf WEnd DllClose($hDll) EndFunc
  19. IE <> Edge, so the IE.au3 UDF is not going to be of much use to you.
  20. Hi, Is there a way to have the edge browser embedded in autoit using the IE.au3 UDF or another way? I'd like to use the script to display html pages as well as pdfs for notifications? Thanks
  21. Is this what you want? GUICreate("RTL GUI", 170, 100, -1, -1, -1) ;, $WS_EX_LAYOUTRTL) $LV = GUICtrlCreateListView('Items', 10, 10, 150, 80) GUICtrlCreateListViewItem('C (50 of 200)', $LV) GUICtrlCreateListViewItem('14-DA-E9-0F-82-8B', $LV) _GUICtrlListView_JustifyColumn($LV, 0, 0) _GUICtrlListView_SetColumnWidth($LV, 0, 140) GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd Note that both RTL and LTR text display correctly when no layout direction is specified: GUICreate("RTL GUI", 470, 400, -1, -1, -1) ;, $WS_EX_LAYOUTRTL) $LV = GUICtrlCreateListView('Items', 10, 10, 350, 380) GUICtrlCreateListViewItem('French: voici mon texte', $LV) GUICtrlCreateListViewItem('Hebrew: הנה הטקסט שלי', $LV) GUICtrlCreateListViewItem('Arabic: هنا هو نصي', $LV) GUICtrlCreateListViewItem('Chinese: 这是我的文字', $LV) GUICtrlCreateListViewItem('Urdu: یہاں میرا متن ہے', $LV) _GUICtrlListView_JustifyColumn($LV, 0, 1) _GUICtrlListView_SetColumnWidth($LV, 0, 240) GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd
  22. Yesterday
  23. Why not just use AutoIt to create the folders, you can then utilize the variables in the remainder of your script: Global $sTaskBarInfo = EnvGet("SystemDrive") & "\Apps\Taskbar Info" Global $sComputer = $sTaskBarInfo & "\ComputerName\" & @ComputerName Global $sUserName = $sTaskBarInfo & "\UserName\" & @UserName & "@" & @LogonDomain DirCreate($sComputer) DirCreate($sUserName)
  24. Hello my friends, I'm a big noob. I want to make a script which scrolls up the mouse wheel one time and then scrolls down one time AFTER I released (not pressed) the right mouse button. Is this possible with AutoIt? Thanks in advance
  25. Hello, this udf + dll is the maximum for printing without using other applications (word - excel - pdf - etc.) The only lack is the impossibility of being able to set the size of the sheet! I have to print a report on an A2 sheet how do I do it? Thank you
  26. Fantastic! (And what a relief!) I never noticed this one small statement amidst all the talk about bitmaps: Thanks very much!
  27. down to 5 lines and the feeling at least 1 more should be possible with the ? operator on the GUIGetMsg(1) Local $j=0, $2=0, $amsg[]=[0,0,0,0,0], $BA[] = ["7", "8", "9", "+", "C", "4", "5", "6", "-", "SqRt", "1", "2", "3", "*", ".", "0", "(", ")", "/", "="], $hGui = GUICreate("Calc", 360, 330, 229, 118), $D = GUICtrlCreateInput("", 8, 8, 344, 31, BitOR(0x00000080, 2)), $1 = GUISetState(@SW_SHOW),$2 = GUICtrlCreateButton($BA[0],7,50,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"), $2 = GUICtrlCreateButton($BA[1],77,50,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[2],147,50,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[3],217,50,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[4],287,50,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[5],7,120,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[6],77,120,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[7],147,120,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[8],217,120,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[9],287,120,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[10],7,190,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[11],77,190,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[12],147,190,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[13],217,190,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[14],287,190,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[15],7,260,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[16],77,260,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[17],147,260,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[18],217,260,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif"),$2 = GUICtrlCreateButton($BA[19],287,260,65, 63) + GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif") Do $aMsg = GUIGetMsg(1) ;Get as array ; Should be possible with a ? somewhere if ($aMsg[2]=0 ? $2=0 : (GUICtrlRead($aMsg[0]) = "C" ? GUICtrlSetData($D, "") : GUICtrlRead($aMsg[0]) = "SqRt" ? GUICtrlSetData($D, Sqrt(Execute(GUICtrlRead($D)))) : GUICtrlRead($aMsg[0]) = "=" ? GUICtrlSetData($D, Execute(GUICtrlRead($D))) : GUICtrlSetData($D, GUICtrlRead($D) & GUICtrlRead($aMsg[0]))) and ($aMsg[0]=-3)) Then exit Until $aMsg[0] = -3 ; $GUI_EVENT_CLOSE
  1. Load more activity