hey there!
I’m trying to destroy a rollout after a little amount of time. The point is to display a messagebox-like window where you wouldn’t need to close it.
I tried with the timeStamp() function but this is not a good choice at all, because it litteraly freezes max.
try (destroyDialog test) catch ()
fn waitForIt =
(
local timeRef = (timeStamp()/1000) + 2do
(
if timeRef > (timeStamp()/1000) do
destroyDialog test) while 1
)
rollout test “” width:150 height:150
(
on test open do
waitForIt())
createDialog test
Then I thought of the mouse position: if the mouse position changed the rollout is destroyed. But there’s still a problem. I can have the position by using dotnet:
cursor = dotnetclass “System.Windows.Forms.Cursor”
p = cursor.Position
but no clue on how to check it multiple times in a rollout…
Do you have an idea?
Thank you