Code: Select all
NumpadMult::
Send ^!{Space}
Is there a way around this problem?
Using Send to send a series of commands to manually navigate to the option in question causes all sorts of problems and unwanted side-effects and doesn't work properly. So another approach is required.
I thought that if the default ctrl+alt space action was temporarily disabled whenever the NumpadMult was pressed (only while magnify.exe is running) and then immediately reset to its default behavior after the Send ^!{Space} command had been sent, that this would allow me to continue using ctrl+alt space for my default system-wide action, even when magnify.exe is running (because the code block to disable the default behavior would only be triggered when pressing the NumpadMult key. So, if NumpadMult was not pressed, then ctrl+alt space would continue to function as normal regardless of whether magnify.exe was running or not.
I don't know if the above is possible because it requires temporarily preventing a particular program from detecting and acting on its own settings for a moment.
I should point out that magnify.exe is a strangely behaving program, so many standard AHK commands that would work elsewhere don't work with magnify.exe (for example, it doesn't seem to work properly with WinActivate and is often sluggish to respond to other commands).
I'm not attached to any particular method of achieving this outcome; it's the reliability of the end result that counts. My comment above is just a suggestion, but obviously people with a greater understanding of the different capabilities of AHK will be able to come up with a greater range of ways to potentially achieve the desired outcome.
Thanks.