Advertisement
buttonpushertv

AHK Snippet to Block Alt & Win keys in Premiere Pro

Aug 29th, 2022
1,074
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 1.12 KB | Source Code | 0 0
  1. GroupAdd, altBlocked, ahk_exe Adobe Premiere Pro.exe ; items added to the group called 'altBlocked' will have the LAlt key blocked from triggering the menu selection
  2.  
  3. GroupAdd, winBlocked, ahk_exe Adobe Premiere Pro.exe ; items added to the group called 'winBlocked' will have the LWin key blocked from triggering the menu selection
  4.  
  5. #IfWinActive, ahk_group winBlocked
  6. ; don't know if this works for Win too...
  7. ~LWin::Send {Blind}{vk07} ; <-- Blocks Left Window key from triggering the Start Menu when pressed by itself. The Right Window key will still work in the default fashion.
  8.     KeyWait, LWin
  9.     Return
  10.  
  11. ~LWin up:: ; <-- Part of blocking Left Alt Key from triggering menus
  12.         sendinput, {SC15B up}
  13.         return
  14.  
  15. #IfWinActive
  16.  
  17.  
  18. #IfWinActive, ahk_group altBlocked
  19. ; don't know if this works for alt too...
  20. ~LAlt:: ; <-- Blocks Left Alt key from triggering the menus when pressed by itself. The Right Alt key will still work in the default fashion.
  21.     sendinput, {SC07E down}
  22.     KeyWait, LAlt
  23.     Return
  24.  
  25. ~LAlt up:: ; <-- Part of blocking Left Alt Key from triggering menus
  26.         sendinput, {SC07E up}
  27.         return
  28.  
  29. #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement