AutoHotkey Community

It is currently May 26th, 2012, 4:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: need help first binding
PostPosted: April 13th, 2009, 9:04 pm 
Offline

Joined: April 13th, 2009, 8:52 pm
Posts: 6
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2009, 9:19 pm 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2009, 9:47 pm 
Offline

Joined: April 13th, 2009, 8:52 pm
Posts: 6
$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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2009, 9:52 pm 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2009, 10:22 pm 
Offline

Joined: April 13th, 2009, 8:52 pm
Posts: 6
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2009, 2:34 am 
Offline

Joined: April 13th, 2009, 8:52 pm
Posts: 6
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2009, 6:25 am 
Offline

Joined: April 13th, 2009, 8:52 pm
Posts: 6
Anyone know how I can get this to work ingame?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Cerberus, gamax92, poserpro, Yahoo [Bot] and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group