Jump to content

urgent help needed


Recommended Posts

okay, i want it so that when someone right clicks, it holds down the right click button until they press it again. whilst it is held down i want it to spam the f11 key 20 times then f12 key once then loop that until the right click hold is terminated. here is what i got so far but it wont work, says error with line 3 (the if {Rbutton} = pressed line):

$clicked = 0

If {RButton} = pressed Then

If $clicked = 1 Then

$clicked = 0

MouseUp("right")

Else

$clicked = 1

MouseDown("right")

Send("{F11 20}")

Send("{F12}")

EndIf

Else

Sleep(100)

EndIf

Link to comment
Share on other sites

#Include <Misc.au3>

$clicked = 0

While 1

If _IsPressed("{RButton}") Then

If $clicked = 1 Then

$clicked = 0

MouseUp("right")

Else

$clicked = 1

MouseDown("right")

Send("{F11 20}")

Send("{F12}")

EndIf

Else

Sleep(100)

EndIf

WEnd

that doesnt work, so what now?

Link to comment
Share on other sites

  • 5 months later...
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...