bar code boy Posted July 27, 2006 Posted July 27, 2006 Hi, Because I am new and trying to learn AutiIt3 I am trying to understand if this is what you are asking for? #NoTrayIcon HotKeySet("{PGUP}", "_LeftClick") HotKeySet("{PGDN}", "_RightClick") While 1 Sleep(1000) WEnd Func _LeftClick() MouseDown("left") Sleep(2);Set delay to whatever meets your needs MouseUp("left") EndFunc Func _RightClick() MouseDown("Right") Sleep(2);Set delay to whatever meets your needs MouseUp("Right") EndFunc Bar Code Boy
Vivvic Posted July 27, 2006 Posted July 27, 2006 @bar code boy, for future refrence, Sleep(2) is waiting 0.002 of a second, if you want to wait two seconds use Sleep(2000) or try somthing like this $Sleep = 2 $Sleep = $Sleep * 1000 Sleep($Sleep) [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]
AzKay Posted July 27, 2006 Author Posted July 27, 2006 Yeah, and, not trying to make you feel bad, but thats basically, the same thing as my first code ^^ # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Vivvic Posted July 27, 2006 Posted July 27, 2006 Yeah, well, I just copy & pasted your code and made edits to it...so it should look alot like your code. [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]
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