I have created a form with multiple buttons that point to an image, This has worked very well
for the time I have been using this. I had this idea on adding a field to each button to declare
how many clients are been image. My default right now is 1 client on auto mode.
I need to change the last number on Button1Click from 1 to 2
Run("GhostSrv.exe D:\FTPCACHE\FILES\Images\DELL\LAPTOP\D630\D630V8STDDEC09.GHO clone -n1")to
Run("GhostSrv.exe D:\FTPCACHE\FILES\Images\DELL\LAPTOP\D630\D630V8STDDEC09.GHO clone -n2")
So far my trials have ended in errors and now I am asking for help.
I created this small example to show what I am trying to accomplish
were Input1 box is I like to change the number in to Button1
Thanks in advance for any help you might suggest.
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=d:\documents\ghostexample.kxf
$Form1_1 = GUICreate("Form1", 555, 190, 217, 200)
$Button1 = GUICtrlCreateButton("Image 1", 32, 56, 113, 33, 0)
GUICtrlSetOnEvent($Button1, "Button1Click")
$input1 = GUICtrlCreateInput("input1", 168, 64, 57, 21)
GUICtrlSetOnEvent($input1, "Input1Change")
$Button2 = GUICtrlCreateButton("Exit", 392, 144, 75, 25, 0)
GUICtrlSetOnEvent($Button2, "Button2Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
Func Button1Click()
Run("GhostSrv.exe D:\FTPCACHE\FILES\Images\DELL\LAPTOP\D630\D630V8STDDEC09.GHO clone -n1")
EndFunc
Func Button2Click()
Exit
EndFunc
Func Input1Change()
EndFunc