Exchange LWin and LAlt

Get help with using AutoHotkey and its commands and hotkeys
gqqnbig
Posts: 13
Joined: 27 Jul 2014, 15:00

Exchange LWin and LAlt

Post by gqqnbig » 21 Jul 2015, 02:21

This is my code.

Code: Select all

#InputLevel 1
LAlt::LWin
LWin::LAlt

#InputLevel 2
!a::
#a::
tooltip You pressed %A_ThisHotkey%.
return
From my understanding, InputLevel 2 is executed first, then InputLevel 1, which means if I press LAlt key and a key, screen will show I pressed !a, if I press LWin key and a key, screen will show I pressed #a.

However actually my screen shows nothing. My key is not captured.

Do I miss anything? I want to capture hotkey first then do remapping.

Return to “Ask For Help”