The script I'm using causes Windows to imitate the Mac's keyboard layout and common hotkey functions. Visio chokes on it. So I've done my homework and come up with the following …
Code: Select all
;
; SUSPEND THIS FILE FOR MICROSOFT VISIO WINDOWS
;
#IfWinActive ahk_class VISIOA
Menu, TRAY, Icon, C:\Program Files\AutoHotkey\AutoHotkey.exe, 5
Suspend on
#IfWinNotActive ahk_class VISIOA
Suspend off
Menu, TRAY, Icon, *
Return
When the Menu lines are omitted, the script's icon doesn't change when the Suspend on command runs. I'd like to use the fifth (white-S-on-red) icon in the AHK executable when Visio is in the foreground, to indicate the script is suspended programmatically instead of manually. When the script is run as written above, the Suspend on and Suspend off command runs, but still nothing happens to the system tray icon.
I'd be grateful for any help anyone could provide re. making this work!
—Russ Johnson
Nashville, Tenn.