NegativeNrG Posted November 20, 2005 Share Posted November 20, 2005 How do i define the users input to send it in milliseconds. so, if the user inputs 1000 it will THE word at 1 second(its kinda like sleep()) like, waits 1 second BEfore sending it again. i dont know how to read the users input to get the millseconds though. i could use GUIctrlread($Input) but how can it detect the number and send it at the number the user inputs? [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
Valuater Posted November 20, 2005 Share Posted November 20, 2005 can you show us your script... or an example? 8) Link to comment Share on other sites More sharing options...
NegativeNrG Posted November 20, 2005 Author Share Posted November 20, 2005 ok, well, its basically an autoclicker. and the user has to input a number(in milliseconds) and it will click depending on the users input. heres starting script. #include <GUIConstants.au3> ;created with Koda $Form1 = GUICreate("Auto Clicker", 191, 110, 373, 360) $Label1 = GUICtrlCreateLabel("Click Speed in ", 8, 16, 75, 17) $Label2 = GUICtrlCreateLabel("Milliseconds", 8, 32, 61, 17) $Input1 = GUICtrlCreateInput("", 88, 24, 81, 21, -1, $WS_EX_CLIENTEDGE) $Button1 = GUICtrlCreateButton("Start", 24, 64, 67, 25) $Button2 = GUICtrlCreateButton("Stop", 104, 64, 67, 25) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 Case Else ;;;;;;; EndSelect WEnd Exit it doesnt do anything yet, and if you may ask why do i wanna make this, im gonna use it in a game called kickups. and i just want it to auto click for me [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
Valuater Posted November 20, 2005 Share Posted November 20, 2005 this might work... i used mousemove, instead of click #include <GUIConstants.au3> Dim $t ;created with Koda $Form1 = GUICreate("Auto Clicker", 191, 110, 373, 360) $Label1 = GUICtrlCreateLabel("Click Speed in ", 8, 16, 75, 17) $Label2 = GUICtrlCreateLabel("Milliseconds", 8, 32, 61, 17) $Input1 = GUICtrlCreateInput("", 88, 24, 81, 21, -1, $WS_EX_CLIENTEDGE) $Button1 = GUICtrlCreateButton("Start", 24, 64, 67, 25) $Button2 = GUICtrlCreateButton("Stop", 104, 64, 67, 25) GUICtrlSetState( -1, $GUI_DEFBUTTON) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 $wait = GUICtrlRead($Input1) If $wait = "" then ContinueLoop $begin = TimerInit() $t = 1 Case $msg = $Button2 GUICtrlSetData($Input1, "") $t = 0 Case Else ;;;;;;; EndSelect If $t = 1 And TimerDiff($begin) >= $wait Then MouseMove(500, 500) $begin = TimerInit() EndIf WEnd Exit 8) Link to comment Share on other sites More sharing options...
MHz Posted November 20, 2005 Share Posted November 20, 2005 Damn, Koda does good. But you have not added to it ? If you could produce a self made hello world script then people maybe more ambitious to help. Dig into the helpfile more and you may find your treasures. Nobody here has the ability to instantly add AutoIt knowledge into your scripting ability without you wanting to learn. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 20, 2005 Moderators Share Posted November 20, 2005 Damn, Koda does good. What is Koda? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted November 20, 2005 Share Posted November 20, 2005 (edited) Hehe, something I read about in Gui forum as I still handmake gui's.Edit: link Edited November 20, 2005 by MHz Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 20, 2005 Moderators Share Posted November 20, 2005 (edited) Would take me as much time to rename the variables from a builder as it would to make my own. Edit: Oh I did see this!!, good job for them... should help ALOT of peeps that are GUI_Phobic(). Edited November 20, 2005 by ronsrules Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted November 20, 2005 Share Posted November 20, 2005 (edited) Now, do not try to be bad. Koda can save time. It would save you creating a test script with just a gui alone to test where everything should be.... I create my gui's handmade but I will admit that sometimes it does take some time to get it the way I want it to be. Edit: I did not see your edit so touché. I think I got that word right?. Edited November 20, 2005 by MHz Link to comment Share on other sites More sharing options...
Valuater Posted November 20, 2005 Share Posted November 20, 2005 i used cyberslugs GUIBuilder many timesnot normally...... but it was great for thishttp://www.xpcleanmenu.hostrocket.com/toyb...e/Organ-jpg.jpg8) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 20, 2005 Moderators Share Posted November 20, 2005 Nice Val... Made me feel like Ray Charles for a second when I looked at it Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted November 20, 2005 Share Posted November 20, 2005 Nice Val... Made me feel like Ray Charles for a second when I looked at it lol8) Link to comment Share on other sites More sharing options...
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