AutoIt - Something like binder / help please

09/22/2010 10:52 Fa111l#1
I wanted to make something that will start pressing A once i press Q, and will stop pressing A once i press Q 2nd time and so on

So i made something like this

Code:
#include <GUIConstantsEx.au3>

GUICreate("Hmmmmmm", 500, 300)

GUISetState(@SW_SHOW)

const $spambutton = send("a")
const $delay = 1000

$startbutton = hotkeyset("q")

While 1
    $msg = GUIGetMsg()
    
    Select
        
        Case $msg = $startbutton
                
                $send1 = GUICtrlRead($spambutton)
                $sleep1 = GUICtrlRead($delay)
                
            While 1    
                Send($send1)
                Sleep($sleep1)
            WEnd
            
        Case $msg = $GUI_EVENT_CLOSE
            GUIDelete()
            ExitLoop
            
    EndSelect
        
    WEnd
But this just spams 0 once i run this thing
Can someone fix it? Or tell me how to do it?



And 2nd question,
is it possible to make something that will work like this
Im pressing A and that software is typing B and after 1sec C?
09/22/2010 15:24 omer36#2
like this??
09/22/2010 16:10 Fa111l#3
Yea, thats what i was looking for