Application.Sleep
Posted: Sun Mar 18, 2018 1:49 pm
Question for Thore really I suppose, I guess the answer might be 'it's historical'.
I've always wondered why the property Sleep of the Application class is stackable? How can this behaviour be useful?
In fact I created my own base function in Hollywood to prevent the stacking nature of this property.
I've always wondered why the property Sleep of the Application class is stackable? How can this behaviour be useful?
In fact I created my own base function in Hollywood to prevent the stacking nature of this property.
Code: Select all
Function base:SafeSleep(window,state)
If mui.Get(window, "sleep") = Not(state) Then mui.Set(window, "sleep", state)
EndFunction