Noobzor Posted February 12, 2007 Posted February 12, 2007 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
sandyd Posted February 12, 2007 Posted February 12, 2007 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 ]---
Noobzor Posted February 12, 2007 Author Posted February 12, 2007 im getting thisam i supposed 2 add something?
sandyd Posted February 12, 2007 Posted February 12, 2007 Oops, sorry. Try this replacing Send({^}) with Send('{^}') ----[ SandyD ]---
sandyd Posted February 12, 2007 Posted February 12, 2007 Oops, sorry. Try this replacing Send({^}) with Send('{^}') ----[ SandyD ]---
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