How to get the activting window by maxscript


#1


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()
thanks,


#2

You can use GetForegroundWindow winapi function for that.


#3

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


#4

a little tip


#5

thank you as a universe as width .