Nice Job. Hopefully someone can maybe help you with improvments!
you should make a new thread for your script.
[Released] AutoForeground 1.2
so people know about it
* maybe cookierevised knows some code so that the window is poped up, but not made the active window.
Bug:
I have the Tab Option enabled for the Script and when a Contact Messages you with the Window Restored & Active... if you are Browsing Quick Icons using
WLM's Icon Button (Can Enable that under Quick Icons)... and that Contact Messages you, AutoForeground trys to bring the Window to the Front
Resulting in a Crash of WLM.