Extremely simple: make "Shift + E" trigger Shift + Right Click

Ask gaming related questions (AHK v1.1 and older)
Aphegis
Posts: 7
Joined: 02 Feb 2022, 11:02

Extremely simple: make "Shift + E" trigger Shift + Right Click

Post by Aphegis » 12 Aug 2022, 14:38

Hello! I was able to do a script in which it works perfectly with the left mouse button, but when i try to apply the same thing with the right mouse button it doesnt work, heres what i have:

Moderator note: Topic locked. Duplicate of another thread.

Aphegis
Posts: 7
Joined: 02 Feb 2022, 11:02

Re: Extremely simple: make "Shift + E" trigger Shift + Right Click

Post by Aphegis » 12 Aug 2022, 14:57

Hello! I have a simple script in which it works with the LMB, but when i try to apply the same idea with the RMB it keeps behaving like the LMB in the same way, can please somebody help me? Here's what i have:


This is the simple code working with the LMB, i click shift+Q and it behaves like shift+LMB perfectly in any application.

Code: Select all

<+q::
    if( not GetKeyState("LButton" , "P") )
        Click down 
		Sleep 25
Return

<+q Up::Click up

The script i'm trying to do with the RMB.

Code: Select all

<+e::
    if( not GetKeyState("RButton" , "P") )
        Click down 
		Sleep 25
Return

<+e Up::Click up

Can anyone please help me? I'm really curious to see my mistake.Thanks a lot!

Aphegis
Posts: 7
Joined: 02 Feb 2022, 11:02

Re: Extremely simple: make "Shift + E" trigger Shift + Right Click

Post by Aphegis » 12 Aug 2022, 14:59

Hello! I have a simple script in which it works with the LMB, but when i try to apply the same idea with the RMB it keeps behaving like the LMB in the same way, can please somebody help me? Here's what i have:


This is the simple code working with the LMB, i click shift+Q and it behaves like shift+LMB perfectly in any application.

Code: Select all

<+q::
    if( not GetKeyState("LButton" , "P") )
        Click down 
		Sleep 25
Return

<+q Up::Click up

The script i'm trying to do with the RMB.

Code: Select all

<+e::
    if( not GetKeyState("RButton" , "P") )
        Click down 
		Sleep 25
Return

<+e Up::Click up

Can anyone please help me? I'm really curious to see my mistake.Thanks a lot!
Last edited by BoBo on 12 Aug 2022, 16:03, edited 1 time in total.
Reason: Added [code][/code]-tags.

Locked

Return to “Gaming Help (v1)”