Jump to content

Clicker Script.


Recommended Posts

Hi,

Because I am new and trying to learn AutiIt3 I am trying to understand if this is what you are asking for? :whistle:

#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

Link to comment
Share on other sites

@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]

Link to comment
Share on other sites

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]

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...