Sign in to follow this  
Followers 0
NegativeNrG

Sending something IN milliseconds?

12 posts in this topic

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.

Share this post


Link to post
Share on other sites



can you show us your script... or an example?

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 B)


[size=20]My File Upload[/size]Register at my site and upload.

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Damn, Koda does good.

:graduated:

B) What is Koda? :o


[center]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.[/center]

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Hehe, something I read about in Gui forum as I still handmake gui's.

Edit: link

Edited by MHz

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Would take me as much time to rename the variables from a builder as it would to make my own. B)

Edit: Oh I did see this!!, good job for them... should help ALOT of peeps that are GUI_Phobic().

Edited by ronsrules

[center]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.[/center]

Share this post


Link to post
Share on other sites

#9 ·  Posted (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?. B)

Edited by MHz

Share this post


Link to post
Share on other sites

Nice Val... Made me feel like Ray Charles for a second when I looked at it B)


[center]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.[/center]

Share this post


Link to post
Share on other sites

Nice Val... Made me feel like Ray Charles for a second when I looked at it B)

lol

8)


NEWHeader1.png

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