Jump to content

Can someone help me out


Noobzor
 Share

Recommended Posts

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
Link to comment
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 ]---
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...