Macro Scheduler Hot keys vs. MS Excel Hot keys

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
garbis
Newbie
Posts: 2
Joined: Fri Jan 21, 2005 8:39 pm

Macro Scheduler Hot keys vs. MS Excel Hot keys

Post by garbis » Fri Jan 21, 2005 9:02 pm

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

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Jan 22, 2005 1:40 am

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.
MJT Net Support
[email protected]

garbis
Newbie
Posts: 2
Joined: Fri Jan 21, 2005 8:39 pm

Post by garbis » Sat Jan 22, 2005 10:25 pm

Thank you very much for detailed explanation, it is absolutely clear to me now. (However I regret that I cannot use single hot keys without having overridden their default setup in other applications.)

Regards
Garbis

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts