AHK send command to all programs except two (or more)

Vondelphia.com Forums Coding and Customization AHK send command to all programs except two (or more)

  • Author
    Posts
    • #278486

      Let’s say you want the CTRL + W key to close everything as if you were pressing ALT + F4 because it feels better BUT don’t want to close your entire browser when you only want to close one tab… this can be useful!

      GroupAdd, ESC, ahk_exe chrome.exe
      GroupAdd, ESC, ahk_exe sublime_text.exe
      
      #IfWinNotActive, ahk_group ESC
      ^w::
      	Send, !{f4}
      Return
      
  • You must be logged in to reply to this topic.