alcatel Posted March 8, 2009 Posted March 8, 2009 hello, im working on a bot, and i wanted to add the GUICtrlCreateInput funtion in it, what i wanted to do with it is, make the bot react after a certain time i want, for exemple, if i use the number 3000(milisec) in the input, the bot sleeps the 3000milisec and then he reacts.
Achilles Posted March 9, 2009 Posted March 9, 2009 Your question is rather vague. You want to look at these function in the helpfile: GUICtrlCreateInput GUICtrlRead Sleep My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
alcatel Posted March 9, 2009 Author Posted March 9, 2009 what i wanted to do is, create a GUICtrlCreateInput that would allow me to change the "$tempo" in this code, to whatever time i would like. Local $pix = PixelSearch(500, 150, 501, 151, 0xFFFFFF, 30, 2) If Not @error Then Sleep($tempo) Opt("SendKeyDownDelay", 1300) Send("{Space}")
Gondus Posted March 9, 2009 Posted March 9, 2009 $tempo = GUICtrlCreateInput("Tempo", 104, 80, 97, 21) those are the cords on your gui. here is a simple gui (use Koda or something to make the gui to your liking) #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 633, 447, 193, 125) $Tempo = GUICtrlCreateInput("Tempo", 104, 80, 97, 21) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd -----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran
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