Jump to content

Pressing the mouse while holding the mousebutton


Gabs
 Share

Recommended Posts

I would like to acomplish this:

While i am holding the right mousebutton pressed i want to continous simulate right-mouseclicking. And the ms i release the mouse i want the clicking to stop.

Simple as that, but i cant figure it out.

Something like:

if RightMouseIsDown() then

MouseClick("right")

But i dont know how to do the "if RightMouseIsDown()", help appriciated =)

Link to comment
Share on other sites

I would like to acomplish this:

While i am holding the right mousebutton pressed i want to continous simulate right-mouseclicking. And the ms i release the mouse i want the clicking to stop.

Simple as that, but i cant figure it out.

Something like:

if RightMouseIsDown() then

MouseClick("right")

But i dont know how to do the "if RightMouseIsDown()", help appriciated =)

What you require is ispressed, you will find it in the help file for the Beta version.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

  • Moderators

If _IsPressed('02') Then... check out _IsPressed() in the help file... but you had the concept :P !

EDIT

Ha... Dod was a bit quicker there... but made a much more valid point, you'll need to looke at the Beta help.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

If _IsPressed('02') Then... check out _IsPressed() in the help file... but you had the concept :P !

EDIT

Ha... Dod was a bit quicker there... but made a much more valid point, you'll need to looke at the Beta help.

My reply was a bit quicker because I did not elaborate, I knew I had to be fast to beat you. :lmao:


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

  • Moderators

My reply was a bit quicker because I did not elaborate, I knew I had to be fast to beat you. :P

I'm off to bed CapNDod... she's all yours!! :lmao:... Good luck Gabs!!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • 1 month later...

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