How do I set a hotkey combination to not affect individual hotkey?

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

How do I set a hotkey combination to not affect individual hotkey?

21 Feb 2018, 05:24

Hey, so I want two hotkeys in my script.

I want the hotkey (Rbutton & Lbutton) which does an action. And (Rbutton UP) which does another action.
(Rbutton & Lbutton) is the hotkey for - holding right mouse button and pressing left mouse button. And (Rbutton UP) is the hotkey when right mouse button is lifted up from being pressed.

But my problem is, when I release Rbutton triggering the hotkey for (Rbutton & Lbutton), the hotkey for (Rbutton) also triggers.

How do I solve this by making so that Rbutton hotkey does not trigger when I use the hotkey for Rbutton & Lbutton.

Do I need to remove UP? Or is there a better way to do this? I have no clue.
I am your average ahk newbie. Just.. a tat more cute. ;)
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: How do I set a hotkey combination to not affect individual hotkey?

21 Feb 2018, 08:31

I guess I have to use suspend?
I am your average ahk newbie. Just.. a tat more cute. ;)
stealzy
Posts: 73
Joined: 01 Nov 2015, 13:43

Re: How do I set a hotkey combination to not affect individual hotkey?

21 Feb 2018, 13:26

Where is your code? I have no such problem.

Code: [Select all] [Download] GeSHi © Codebox Plus

Rbutton & Lbutton::ToolTip 1
Rbutton UP::ToolTip % A_PriorKey
Esc::ExitApp
Anyway, you can use Suspend or #If. Just make variable and set it in Rbutton & Lbutton hotkey until Rbutton realesed (KeyWait).

Return to “Ask For Help”

Who is online

Users browsing this forum: joe7dust, Meow, Monoxide3009, MrNerd, tm6464 and 25 guests