Snow_Flake

Special Keys

Oct 1st, 2014
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. SnowFlake
  3.  
  4.  
  5. Special Keys
  6. --------------------
  7. If your keyboard or mouse has a key not listed above, you might still be able to make it a hotkey by using the following steps (requires Windows XP/2000/NT or later):
  8.  
  9. Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by opening its main window and selecting "View->Key history" from the menu bar.
  10. Double-click that script's tray icon to open its main window.
  11. Press one of the "mystery keys" on your keyboard.
  12. Select the menu item "View->Key history"
  13. Scroll down to the bottom of the page. Somewhere near the bottom are the key-down and key-up events for your key. NOTE: Some keys do not generate events and thus will not be visible here. If this is the case, you cannot directly make that particular key a hotkey because your keyboard driver or hardware handles it at a level too low for AutoHotkey to access. For possible solutions, see further below.
  14. If your key is detectible, make a note of the 3-digit hexadecimal value in the second column of the list (e.g. 159).
  15. To define this key as a hotkey, follow this example:
  16.  
  17.  
  18. More Informaion here:
  19. http://www.kbdedit.com/manual/low_level_vk_list.html
  20. http://msdn.microsoft.com/en-us/library/windows/desktop/ms646306(v=vs.85).aspx
  21. http://msdn.microsoft.com/en-us/library/ms892480.aspx
  22. http://www.autohotkey.com/docs/KeyList.htm
  23.  
  24. VK = Viritual Keys
  25. SC =Scan Codes
  26.  
  27. VK = 6B
  28. SC = 04E
  29. ^ = CTRL
  30. 04E = +
  31. ^SC04E = CTRL+
  32.  
  33. */
  34.  
  35. #InstallKeybdHook
  36. #SingleInstance force
  37.  
  38. ^SC04E::MsgBox, You Hold CTRL  and pressed +
Advertisement
Add Comment
Please, Sign In to add comment