I'll add it to the to-do list, but for code-size reasons it might not get added. Here is an alternative approach that I know isn't as nice:
CalledBy_A: SubroutineCaller = A Goto Subroutine CalledBy_B: SubroutineCaller = B Goto Subroutine CalledBy_C: SubroutineCaller = C Goto Subroutine ; Not necessary, just for maintainability. Subroutine: if Subroutinecaller = A ...
Nice. That's a more concise way of doing it.
Why not create these global variables in the code? Just before jumping to the common section of code assign a variable the value of the section
Since I still can't reproduce it, it's possible it was fixed in a recent release. I ran the following on XP. Perhaps you can try it on Windows 2000 and see if it occurs:
1) customize the Ahk tray menu, keeping the standard items.
2) Reload the script (otherwise the behavior may be masked).
3) right-click the Ahk icon and select Pause Script from the custom menu.
4) If you right-click the Ahk icon again, the tray menu does not appear; however, one can unpause the script if Pause has been assigned to hotkey.
#Persistent Menu, Tray, Add, Test, Test return Test: MsgBox You selected %A_ThisMenuItem%. return
I'll make sure this is only the list of improvements to consider for Sort.
the [sort] delimiter is limited to only one character
Thanks for all the ideas.