Jump to content
Sign in to follow this  
b212

How to emulate mouse right click?

Recommended Posts

b212

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! :-)

Share this post


Link to post
Share on other sites
Insolence

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.

Share this post


Link to post
Share on other sites
b212

Where I can get manual? :">

MouseClick("What I've to write here? :idiot:", 400, 400, 1000000, 2500);

Share this post


Link to post
Share on other sites
Insolence

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.

Share this post


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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.