Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

?LWin Up::

  • Please log in to reply
3 replies to this topic
  • Guests
  • Last active:
  • Joined: --
I am trying to make my hotkey LWin Up:: on the condition that it does not coincide with another hotkey. For example, suppose I have a hotkey such as #d:: and I activate it; how do I prevent LWin Up:: from being activated in such a case?

  • Members
  • 2067 posts
  • Last active: Feb 26 2016 09:30 AM
  • Joined: 10 Jul 2008
You can't avoid Windows (or any OS) to release a key when you really release it...

LWin Up:: is a hotkey so you can't "disabled" it.

The only thing you can do is changing what it does when trigger :
Argh := False

	Argh := False

	Argh := True

#If (Argh = True)
*a Up::
	MsgBox special a up
	Argh := False
#If (Argh = False)
a Up::
	MsgBox normal a up

  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
#If A_PriorKey = "LWin"
~LWin Up::
    MsgBox LWin Up
AutoHotkey_L v1.1.01+ required.

  • Guests
  • Last active:
  • Joined: --
That did it! Thanks!