-
Posts
132 -
Joined
-
Last visited
Community Answers
-
Radiance's post in New to AutoIT, Compiled exe doesn't behave as expected. was marked as the answer
Would be interesting to see the error message.
If I had to guess, I'd say that the Run() right after your installation kills it.
Are you sure the .exe exists already and the path is correct?
When building software installer packages I had cases where the installer.exe already ended, but launched several msiexec.exe's which did the actual installation. Since installer.exe was gone the script assumed that the installation was finished.
I'd suggest you try a MsgBox(0, "", FileExists($mbamExe)) right after the installation.
This should show you if the installation is already finished or not.
-
Radiance's post in Can't get output correct was marked as the answer
;.... $IPRANGE[501] = "10.20.24.247" $IPRANGE[502] = "10.20.24.248" $IPRANGE[503] = "10.20.24.249" $IPRANGE[504] = "10.20.24.250" $IPRANGE[505] = "10.20.24.251" $IPRANGE[506] = "10.20.24.252" $IPRANGE[507] = "10.20.24.253" $IPRANGE[508] = "10.20.24.254" $IPRANGE[509] = "10.20.32.103" For $i = 1 To UBound($IPRANGE) - 1 If $IPRANGE[$i] = @IPAddress1 OR $IPRANGE[$i] = @IPAddress2 OR $IPRANGE[$i] = @IPAddress3 OR $IPRANGE[$i] = @IPAddress4 Then MsgBox(0, "IP Address:", $IPRANGE[$i]) EndIf Next -
Radiance's post in Is it possible to queue the task? was marked as the answer
Here you go, just retrieve the value of the checkboxes and call your functions accordingly.
1 means it's checked, 4 means it's unchecked.
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Test", 237, 89, 369, 423) $Checkbox1 = GUICtrlCreateCheckbox("Install CCleaner", 8, 8, 97, 17) $Checkbox2 = GUICtrlCreateCheckbox("Install Yahoo", 8, 32, 97, 17) $Checkbox3 = GUICtrlCreateCheckbox("Install Antivirus", 8, 56, 97, 17) $Button1 = GUICtrlCreateButton("Start", 136, 48, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetState($Button1, $GUI_DISABLE) If GUICtrlRead($Checkbox1) = 1 Then _install1() If GUICtrlRead($Checkbox2) = 1 Then _install2() If GUICtrlRead($Checkbox3) = 1 Then _install3() GUICtrlSetState($Button1, $GUI_ENABLE) EndSwitch WEnd Func _install1() Run ("install1.exe") EndFunc Func _install2() Run ("install2.exe") EndFunc Func _install3() Run ("install3.exe") EndFunc -
Radiance's post in Need a FileSelectFolder function that displays the files was marked as the answer
That's why it's called FileSelectFolder()
Try the FileOpenDialog(), that might just be what you need.