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.
Extremely simple: make "Shift + E" trigger Shift + Right Click
Re: Extremely simple: make "Shift + E" trigger Shift + Right Click
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.
The script i'm trying to do with the RMB.
Can anyone please help me? I'm really curious to see my mistake.Thanks a lot!
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!
Re: Extremely simple: make "Shift + E" trigger Shift + Right Click
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.
The script i'm trying to do with the RMB.
Can anyone please help me? I'm really curious to see my mistake.Thanks a lot!
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.
Reason: Added [code][/code]-tags.