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.
How do I set a hotkey combination to not affect individual hotkey?
How do I set a hotkey combination to not affect individual hotkey?
I am your average ahk newbie. Just.. a tat more cute.
Re: How do I set a hotkey combination to not affect individual hotkey?
I guess I have to use suspend?
I am your average ahk newbie. Just.. a tat more cute.
Re: How do I set a hotkey combination to not affect individual hotkey?
Where is your code? I have no such problem.
Anyway, you can use Suspend or #If. Just make variable and set it in Rbutton & Lbutton hotkey until Rbutton realesed (KeyWait).
Code: Select all
Rbutton & Lbutton::ToolTip 1
Rbutton UP::ToolTip % A_PriorKey
Esc::ExitApp