AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need help first binding

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Likwid



Joined: 13 Apr 2009
Posts: 6

PostPosted: Mon Apr 13, 2009 8:04 pm    Post subject: need help first binding Reply with quote

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
View user's profile Send private message
Slanter



Joined: 28 May 2008
Posts: 739
Location: Minnesota, USA

PostPosted: Mon Apr 13, 2009 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Likwid



Joined: 13 Apr 2009
Posts: 6

PostPosted: Mon Apr 13, 2009 8:47 pm    Post subject: Reply with quote

$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
View user's profile Send private message
Slanter



Joined: 28 May 2008
Posts: 739
Location: Minnesota, USA

PostPosted: Mon Apr 13, 2009 8:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Likwid



Joined: 13 Apr 2009
Posts: 6

PostPosted: Mon Apr 13, 2009 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Likwid



Joined: 13 Apr 2009
Posts: 6

PostPosted: Tue Apr 14, 2009 1:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Likwid



Joined: 13 Apr 2009
Posts: 6

PostPosted: Fri Apr 17, 2009 5:25 am    Post subject: Reply with quote

Anyone know how I can get this to work ingame?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group