Sign in to follow this  
Followers 0
alcatel

GUICtrlCreateInput question

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



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}")

Share this post


Link to post
Share on other sites

$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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0