| View previous topic :: View next topic |
| Author |
Message |
Maxleouf Guest
|
Posted: Tue Mar 02, 2010 12:36 pm Post subject: How use Right Click to launch script ? |
|
|
Hye I want to launch a script with the right click with my mouse for a game.
#MaxThreadsPerHotkey 3
é:: ; Win+Z hotkey.
#MaxThreadsPerHotkey 1
if KeepWinZRunning = y ; This means an underlying thread is already running the loop below.
{
KeepWinZRunning = ; Make it blank to signal that thread's loop to stop.
return ; End this thread so that the one underneath will resume and see the change.
}
; Otherwise:
KeepWinZRunning = y
Loop,
{
Send {f2}
Sleep 10
MouseClick, Left
Sleep 10
if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again.
break ; Break out of this loop.
}
KeepWinZRunning = ; Reset in preparation for the next press of this hotkey.
return
This is my script and I want te change "é" by "right click" but I don't know what is the language to use right click in this program.
Thanks!
Sorry if my english is not good i'm not English. |
|
| Back to top |
|
 |
fred
Joined: 01 Feb 2010 Posts: 230 Location: Netherlands
|
Posted: Tue Mar 02, 2010 12:39 pm Post subject: |
|
|
| RButton - the right mouse button |
|
| Back to top |
|
 |
Maxleouf Guest
|
Posted: Tue Mar 02, 2010 5:09 pm Post subject: |
|
|
Thank you very much this is exactly what i want !!
Thanks you again lol |
|
| Back to top |
|
 |
Maxleouf Guest
|
Posted: Fri Mar 19, 2010 4:29 pm Post subject: |
|
|
Hi again !
I have an other question, I want to lauch this program with 2 buttons
F1 and Left click of my mouse
Ex:
(F1 and Lbutton)::
Send a
sleep 100
Send b
sleep 100
send c
return
NB :
I want to have one seconde ore more to launch the program between the F1 and Left click.
Because the button F1 open a "pop-up" to choose a selection with LeftClick.
Thanks to help me !! |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
Maxleouf Guest
|
Posted: Fri Mar 19, 2010 6:51 pm Post subject: |
|
|
I have done a test but with your help, the Left click is blocked, or I must use the left click to move the character.
And the button F1 isn't affected in the program.
But Thank you really |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
Maxleouf Guest
|
Posted: Fri Mar 19, 2010 9:52 pm Post subject: |
|
|
| Thanks that is works =D ! |
|
| Back to top |
|
 |
|