Is this the correct way of calling a function? How do I set for errorlevels. I'm also trying to make the progress to run when select. How can I link it to run from Progress_4 section?
#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype
#include <GuiConstants.au3>
GuiCreate("MyGUI", 559, 256,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$IP_1 = GuiCtrlCreateButton("Get_IP", 50, 70, 190, 50)
;$Input_IpAddress = GuiCtrlCreateInput("" & @IPAddress1, 180, 250, 280, 20)
$Input_2 = GuiCtrlCreateInput("", 260, 80, 280, 30)
$Data_3 = GuiCtrlCreateButton("Backup Data", 50, 130, 190, 50)
$Progress_4 = GuiCtrlCreateProgress(260, 140, 270, 30)
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $IP_1
IP()
Case $msg = $Data_3
Progress ()
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case Else
;;;
EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---
;;:::Fuction Here ??
Func IP()
GuiCtrlSetData($Input_2, @IPAddress1)
EndFunc ;==>Set_Exit
Func Progress()
ProgressOn("Progress...", "Backup in Progress", "0 percent" & $Progress_4)
For $i = 10 to 100 step 10
sleep(1000)
ProgressSet( $i, $i & " percent")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()
EndFunc ;==>Set_Exit