| View previous topic :: View next topic |
| Author |
Message |
Gadrin
Joined: 01 Sep 2006 Posts: 42
|
Posted: Thu Nov 20, 2008 3:05 pm Post subject: Keyboard Shortcut for Different Windows |
|
|
Is it possible to have AHK detect when I have a certain App open and
change the shortcut for my keyboard ?
FREX: I use ALT-F11 to open Paint Shop Pro on my PC. However when I use MS Excel, I want to use ALT-F11 to open the VBA editor.
My AHK stays in the tray all day, I'm just wondering if it can check to see that Excel is open and disable the ALT-F11 and use the Excel keyboard shortcut or not.
Otherwise, I'll just make a new key-combo
> _________________ Thanks, Gadrin |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
|
| Back to top |
|
 |
Carlol
Joined: 14 Aug 2006 Posts: 163 Location: CPH
|
Posted: Thu Nov 20, 2008 6:06 pm Post subject: |
|
|
Perhaps something like this:
| Code: | #IfWinActive, ahk_class XLMAIN
!F11::
Send, !{F11}
Return
#IfWinActive |
Good luck  |
|
| Back to top |
|
 |
|