1

I want to use separate ahk-actions in Chrome and Notepad. So that !e in chrome would do one thing, and !e in Notepad would do another. And !e in a third program would do a third action.

Do I make this with IfWinActive?

I'm a newbie to ahk, and not a programmer. Thanks.

1 Answer 1

3
#IfWinActive, ahk_exe chrome.exe
   Space::TrayTip,, % "first action"
#IfWinActive, ahk_exe notepad.exe
   Space::TrayTip,, % "second action"
#IfWinActive
   Space::TrayTip,, % "third action"
2
  • I had no idea about ahk_exe after all this time! Kudos! Aug 7, 2013 at 12:36
  • I'm sorry, but I googled for ahk_exe and I did not get it (or arrived at a bad explanation). Aug 17, 2013 at 15:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .