Jump to content

How to emulate mouse right click?


Recommended Posts

I want to write really simple bot for online game, but I have no idea whats the name of right mouse button in AutoIt.

I have to make script which will "put" 1000 times right mouse button and do nothing more. I have my own old script:

For $i = 1 to 1000
send("{RIGHT MOUSE BUTTON CODE}");
sleep(2000);
Next

Its everything what I need, but I want just one more thing - what I've to put instead of that: {RIGHT MOUSE BUTTON CODE} ???

Thanks! :-)

Link to post
Share on other sites

Egh, hate to say it but you should RTFM.

MouseClick("button", x, y, clicks, speed) IIRC.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to post
Share on other sites

When you installed AutoIT it should come with a help file.

Look in the directory, it's a *.chm I think.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...