| View previous topic :: View next topic |
| Author |
Message |
Likwid
Joined: 13 Apr 2009 Posts: 6
|
Posted: Mon Apr 13, 2009 8:04 pm Post subject: need help first binding |
|
|
Im just trying to create a simple binding of middle mouse down which would click left mouse button wait 2 seconds and click left again and wait 2 seconds and click left again Logitech G5 mouse.
mbutton = Lclick ,sleep 2sec, Lclick ,sleep 2sec, Lclick end during a program I am running
Also should there be a reload script bind incase it got confused and started running in loop
for the target type it says application. the target is "C:\creator\game name\ game name.exe |
|
| Back to top |
|
 |
Slanter
Joined: 28 May 2008 Posts: 739 Location: Minnesota, USA
|
Posted: Mon Apr 13, 2009 8:19 pm Post subject: |
|
|
Everything you need to know can probably be found in these three sections of the manual...
_________________ Unless otherwise stated, all code is untested
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination. |
|
| Back to top |
|
 |
Likwid
Joined: 13 Apr 2009 Posts: 6
|
Posted: Mon Apr 13, 2009 8:47 pm Post subject: |
|
|
$MButton::
Loop
{
Sleep 50
GetKeyState, MButtonState, LButton, P
if MButtonState = U
break
MouseClick, left,,, 1, 0, D
Sleep, 100
MouseClick, left,,, 1, 0, U
Sleep, 100
MouseClick, left,,, 1, 0, U
}
Would somthing like this work I found it and readjusted it to what i thought would work. |
|
| Back to top |
|
 |
Slanter
Joined: 28 May 2008 Posts: 739 Location: Minnesota, USA
|
Posted: Mon Apr 13, 2009 8:52 pm Post subject: |
|
|
That will continue to execute until you let go of the middle mouse button. If that's what you're looking for, it can be condensed into this:
| Code: | MButton::
While (GetKeyState("MButton","P")) { ; Check if middle mouse button is held down
Send {LButton} ; Left Click
Sleep 2000 ; 2 sec pause
}
Return |
_________________ Unless otherwise stated, all code is untested
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination. |
|
| Back to top |
|
 |
Likwid
Joined: 13 Apr 2009 Posts: 6
|
Posted: Mon Apr 13, 2009 9:22 pm Post subject: |
|
|
| yes that is fine. For some odd reason I edited the script with that one and I reloaded it and nothing. If ya need to know the game Im playing I can put it in a pm or post it here. |
|
| Back to top |
|
 |
Likwid
Joined: 13 Apr 2009 Posts: 6
|
Posted: Tue Apr 14, 2009 1:34 am Post subject: |
|
|
Ok The script works else where but not in the game. The game has disabled logitech g15 macro fuctions. So this is why i came to auto hotkey.
Their ani cheat system is Nprotect GameMon Rev 1280
The Game name is Shot - Online 3d virtual golf online
Basically it is to time the shots so you ca get a str8 shot instead of hooked or sliced. |
|
| Back to top |
|
 |
Likwid
Joined: 13 Apr 2009 Posts: 6
|
Posted: Fri Apr 17, 2009 5:25 am Post subject: |
|
|
| Anyone know how I can get this to work ingame? |
|
| Back to top |
|
 |
|