Imagine following macro (taken from the official FAQ and changed accordingly):
//
GetActiveWindow>title,X,Y
Pos>Microsoft Excel,title,1,StPos
If>StPos=0,NonExcelMacro
Goto>End
Label>NonExcelMacro
Message>"You pressed F2"
Label>End
//
This macro has got Hot key F2 assigned.
As you can see, the macro shows some message if NOT called from Excel.
In case the macro IS called from within Excel, it should not do anything.
Can you please advise why the standard Excel F2 functionality (editing) is not called then? Is there some workaround?
Do Macro Scheduler Hot keys automatically override hot keys from other programs?
Thanks for help
Garbis
Macro Scheduler Hot keys vs. MS Excel Hot keys
Moderators: JRL, Dorian (MJT support)
Hi,
Hotkeys assigned to Macro Scheduler scripts are registered as system wide hotkeys. This is necessary otherwise they wouldn't work unless you were in Macro Scheduler at the time and the idea is to be able to press that hot key combination whatever application you're in. Unfortunately as they are system wide hotkeys they will in most cases override any application specific shortcut keys. I'm afraid the only workaround if you want to keep the app's shortcut is to use a different hotkey combination that is not used. That's why it makes sense to use combinations that aren't normally used. E.g. I never use F1 as this is a very common shortcut for application help files. I would use CTRL-ALT-F1 instead, for example.
Hotkeys assigned to Macro Scheduler scripts are registered as system wide hotkeys. This is necessary otherwise they wouldn't work unless you were in Macro Scheduler at the time and the idea is to be able to press that hot key combination whatever application you're in. Unfortunately as they are system wide hotkeys they will in most cases override any application specific shortcut keys. I'm afraid the only workaround if you want to keep the app's shortcut is to use a different hotkey combination that is not used. That's why it makes sense to use combinations that aren't normally used. E.g. I never use F1 as this is a very common shortcut for application help files. I would use CTRL-ALT-F1 instead, for example.
MJT Net Support
[email protected]
[email protected]