How to get the activting window by maxscript


just like this.
when edit a material in “slate material editor” window it’s tillte color is gray
when any mouse click the main window “slate material editor” window is white
i would like to know how to get the “slate material editor” is activating or ont .
not by the sme.isopen()


You can use GetForegroundWindow winapi function for that.


thank you although i don’t know what is winapi , thanks againt.


a little tip


thank you as a universe as width .