Mouse click & holding key down

Ask gaming related questions
JPzAkdTe
Posts: 12
Joined: 19 Jan 2016, 19:12

Mouse click & holding key down

19 Jan 2016, 19:43

I'm looking for assistance in creating a macros for B()ade and S()ul.

Macro #1

What I think would be useful, is, whenever you press and hold left mousebutton, it will.

left mouse button down
left mouse button up
delay of 50ms
press F
repeat

Macro #2

When you press and hold the right mouse button

right mouse button down
right mouse button up
delay of 50ms
press F
repeat

Macro #3

When the F key is held down, it spams the F key very fast

Macro #4

Also when you press the S key, it will press S, then another S down instantaneously with one tap

Any help is greatly appreciated

Kind Regards
User avatar
PipeDreams
Posts: 149
Joined: 19 Dec 2015, 00:20

Re: Mouse click & holding key down

19 Jan 2016, 21:03

JPzAkdTe wrote:
You can always use the Ecs key to exit.

Code: Select all

~s::
{Sleep, 50
SendInput, s
}Return

~e::GoSub, e
e:
While, GetKeyState("e", "P")
{ SendInput, {e DownTemp}
Sleep, 38
SendInput, {e Up}
}Return


~LButton::GoSub, LeftMouseButton
LeftMouseButton:
While, GetKeyState("LButton", "P")
{ Click
SendInput, {f DownTemp}
Sleep, 38
SendInput, {f Up}
;Sleep, 1000
}Return

~RButton::GoSub, RightMouseButton
RightMouseButton:
While, GetKeyState("RButton", "P")
{Click Right 
SendInput, {f DownTemp}
Sleep, 38
SendInput, {f Up}
;Sleep, 1000
}Return

~Esc::
ExitApp
Return
Recca
Posts: 34
Joined: 18 Jan 2016, 21:44

Re: Mouse click & holding key down

22 Jan 2016, 06:09

JPzAkdTe wrote:I'm looking for assistance in creating a macros for B()ade and S()ul.

Macro #1

What I think would be useful, is, whenever you press and hold left mousebutton, it will.

left mouse button down
left mouse button up
delay of 50ms
press F
repeat

Macro #2

When you press and hold the right mouse button

right mouse button down
right mouse button up
delay of 50ms
press F
repeat

Macro #3

When the F key is held down, it spams the F key very fast

Macro #4

Also when you press the S key, it will press S, then another S down instantaneously with one tap

Any help is greatly appreciated

Kind Regards
Try my script from this thread ? https://autohotkey.com/boards/viewtopic ... 19&t=13162
Just comment out the exist hotkey and put these lines in

Code: Select all

LButton=LButton,50,u|F,10,u
RButton=RButton,50,u|F,10,u
f
s=s,0,u|s,0,u

Return to “Gaming”

Who is online

Users browsing this forum: pizzapizze and 10 guests