T from LMB while holding RMB

Ask gaming related questions (AHK v1.1 and older)
User avatar
ZeroX4
Posts: 38
Joined: 20 Aug 2016, 18:43

T from LMB while holding RMB

26 Dec 2017, 15:11

in short of it

i want to be able while holding right mouse button
change left mouse button to dont send left click but instead send t

i was trying various things but nothing works

for example

Code: Select all

~LButton::
While  GetKeyState("RButton", "P"){
send {t}
}

and it does not work well i did try many other things but nothing works
any help would be cool
cocobanana
Posts: 19
Joined: 31 Oct 2017, 05:43

Re: T from LMB while holding RMB

26 Dec 2017, 18:48

Code: Select all

RButton & LButton::Send t
LButton::Send {Click left}
~RButton::Send {Click Right}
User avatar
ZeroX4
Posts: 38
Joined: 20 Aug 2016, 18:43

Re: T from LMB while holding RMB

26 Dec 2017, 19:28

well it does not work at all
cocobanana
Posts: 19
Joined: 31 Oct 2017, 05:43

Re: T from LMB while holding RMB

26 Dec 2017, 19:47

Can you say for what game u want to use the script?
Maybe we can help better
User avatar
ZeroX4
Posts: 38
Joined: 20 Aug 2016, 18:43

Re: T from LMB while holding RMB

27 Dec 2017, 02:02

warframe

thing is under lmb i have attack
under rmb sprint
under t alternate attack

so i just need while holding rmb and clicking lmb script to send T so instead of normal attack it perform alternate attack
User avatar
ZeroX4
Posts: 38
Joined: 20 Aug 2016, 18:43

Re: T from LMB while holding RMB

27 Dec 2017, 02:04

full script if needed

Code: Select all

#IfWinActive, WARFRAME
#MaxThreadsPerHotkey 2

~MButton::
Toggle1 := !Toggle1	
While Toggle1{
Send, {F10}
sleep, 25
}
return


~Shift & CapsLock::
Toggle2 := !Toggle2

~LButton::
While (Toggle2 && GetKeyState("LButton", "P")){
send {LButton}
sleep, 50
}
return

~tab & wheeldown::
send {7}
return

~tab & wheelup::
send {8}
return


~tab & MButton::
send {9}
return

~F8::Reload

*Rbutton::t


CapsLock::End


Target := "ahk_class Winamp v5.x"

; ---- ---- Winamp: Volume Down ---- ---- (F4)
F4::
DetectHiddenWindows, On ; Tells AHK to search for windows that are minimized/hidden

Target := "ahk_class Winamp v1.x"
IfWinNotExist %Target% 
{
Return
}
ControlSend, ahk_parent, {down}
return

; ---- ---- Winamp: Volume Up ---- ---- (F5)
F5::
DetectHiddenWindows, On ; Tells AHK to search for windows that are minimized/hidden

Target := "ahk_class Winamp v1.x"
IfWinNotExist %Target% 
{
Return
}
ControlSend, ahk_parent, {up}
return


F1::
send {Media_Prev}
return

F2::
send {F3}{Media_Next}
return

F3::
send {Media_Play_Pause}
return

;~Tab::
;    While GetKeyState("Tab", "P") { ; Rapid-click if Toggle is true and LButton is held down
;        Sendinput, {F9}
;	sleep, 25
;    }
;return
cocobanana
Posts: 19
Joined: 31 Oct 2017, 05:43

Re: T from LMB while holding RMB

27 Dec 2017, 18:00

try this

Code: Select all

~*LButton::
if (GetKeyState("RButton", "P")){
	Send {Blind}{t down}
} 
return

~*LButton Up::
Send {Blind}{t up}
return
User avatar
ZeroX4
Posts: 38
Joined: 20 Aug 2016, 18:43

Re: T from LMB while holding RMB

28 Dec 2017, 04:12

does not work at all well i feel it cant be done

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 88 guests