I have learned this script
#IfWinActive, ahk_exe chrome.exe #u::send ^t #IfWinActive, ahk_exe notepad.exe #u::send ^n #IfWinActive, ahk_exe notepad++.exe #u::send ^!s
So now, I can get the same key to do different actions in different programs. But what about one step further: Different actions in different URL:s in chrome.
For example, on Toggl.com I want ^!e to do action x, and on Checkvist.com I want ^!e to do action y.
I imagine doing something like
Send ^L set clipboard to send ^c Look if it matches with "toggl", if it does: do x. Look if it matches with "checkvist", if it does: do y.