Sign in to follow this  
Followers 0
Noobzor

Can someone help me out

5 posts in this topic

Hey, im very new to using autoit so dont laught :"> i have v3

Im trying 2 make something click Ctrl 10 times then press z twice and repete.

so far i can get it 2 hold down ctrl can someone please sort me out with the code?

Global $Paused
HotKeySet("{END}", "TogglePause")
HotKeySet("{HOME}", "Terminate")

While 1
    Sleep(100)
WEnd

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip("Ctrl Key being held down")
    WEnd
EndFunc

Func Terminate()
    Exit 0
EndFunc

Share this post


Link to post
Share on other sites



Hows this?

Global $Paused
HotKeySet("{END}", "TogglePause")
HotKeySet("{HOME}", "Terminate")

While 1
    Sleep(100)
WEnd

Func TogglePause()
    $Paused = NOT $Paused
    While Not $Paused
        For $i = 1 to 6
            Send({^})
        Next
        Send('z')
        Send('z')
    WEnd
EndFunc

Func Terminate()
    Exit 0
EndFunc

----[ SandyD ]---

Share this post


Link to post
Share on other sites

im getting this

Posted Image

am i supposed 2 add something?

Share this post


Link to post
Share on other sites

Oops, sorry.

Try this replacing Send({^}) with Send('{^}')


----[ SandyD ]---

Share this post


Link to post
Share on other sites

Oops, sorry.

Try this replacing Send({^}) with Send('{^}')


----[ SandyD ]---

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