Autohotkey: detect Num Lock on / off

0

Using Autohotkey, I want to change the function of the * (NumpadMult) key from the numeric keypad to Tab, but only when Num Lock is off. When Num Lock is active, it should remain as *. How is it possible?

    
asked by anonymous 07.06.2015 / 17:11

1 answer

1

Searching, I ended up finding the answer to my own question:

$NumpadMult::
   if ( GetKeyState("NumLock", "T") ) ; this will be 'true' if NumLock is toggled 'on'
      send *   
   Else
      send {tab}
return

Source: link

    
14.06.2015 / 12:51