Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Fires the hotkey regardless of the modifiers being held down.</p> <p><a href="http://www.autohotkey.com/docs/Hotkeys.htm" rel="nofollow">http://www.autohotkey.com/docs/Hotkeys.htm</a></p> <blockquote> <p>Wildcard: Fire the hotkey even if extra modifiers are being held down. This is often used in conjunction with remapping keys or buttons. For example:</p> <p>Win+C, Shift+Win+C, Ctrl+Win+C, etc. will all trigger this hotkey.</p> <pre>*#c::Run Calc.exe </pre> <p>Pressing Scrolllock will trigger this hotkey even when modifer key(s) are down. </p> <pre>*ScrollLock::Run Notepad </pre> </blockquote> <p>Edit: Hm, didn't see the second part.</p> <p>If you have a single statement, you put it all on one line like above. If you have multiple statements, you must put a newline after the <code>::</code> and have a <code>return</code> at the end.</p> <pre><code>#w:: MsgBox "Windows+W FTW" #q:: MsgBox "Windows+Q FTW" MsgBox "Another annoying message box!" return </code></pre> <p>I have a way of using the <code>capslock</code> key as a modifier that I like better:</p> <pre> ;; make capslock a modifier, make shift-capslock a true capslock setcapslockstate, OFF ;SetCapsLockState, alwaysoff $*Capslock:: ; $ means that the hotkey code shouldn't trigger its own hotkey Gui, 99:+ToolWindow Gui, 99:Show, x-1 w1 +NoActivate, Capslock Is Down keywait, Capslock Gui, 99:Destroy return ; Made a window show up when the capslock is pressed. ; Now, if that hidden windown is there, do anything you like #IfWinExist, Capslock Is Down j::Left k::Right i::Up m::Down #IfWinExist ; Oh, by the way, right-alt and capslock works like real capslock ralt & Capslock:: GetKeyState, capstate, Capslock, T if capstate = U { SetCapsLockState, on } else { SetCapsLockState, off } return </pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload