Jump to content

Start script with a right mouse click


jmaleal
 Share

Recommended Posts

I have some scripts that allow me to stay Away from Keyboard in MU ONLINE game. Usually i start the script using a key.

This time i need a script that starts with right mouse click, dont make loop.

So the idea is start the script and press number 1,2,3 in a fast way then stop

if anyone can help

ty

Link to comment
Share on other sites

You want to do it without a loop? Why? You already have a loop idling your script... so make use of it.

#Include <Misc.au3>

HotKeySet('{escape}', 'quit')

While 1
    If _IsPressed('02') Then myfunc()
    Sleep(50)
WEnd

Func myfunc()
    MsgBox(0, 'im a newb', 'my stuff here')
EndFunc

Func quit()
    Exit
EndFunc
Link to comment
Share on other sites

the question is that i dont want a loop

i click...the script start and stop

then i click again and repeat script

The idea is Start the bot with the mouse click (mouse click should be the way to start the bot), then the script runs, and finish.... dont back to beginning

ty for help

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