I wrote a simple FXRuby program that displays a message in a window on
the desktop. I would like to make this window go away after a set
amount of time (e.g. 30 minutes if left alone).
I’m new to scripting in Ruby, so I don’t know how to do this. Can
anyone offer me any suggestions or pointers as to how I can implement
a configurable timer that will automatically shut down the window when
the time is up?
I wrote a simple FXRuby program that displays a message in a window on
the desktop. I would like to make this window go away after a set
amount of time (e.g. 30 minutes if left alone).
I’m new to scripting in Ruby, so I don’t know how to do this. Can
anyone offer me any suggestions or pointers as to how I can implement
a configurable timer that will automatically shut down the window when
the time is up?
Look at the documentation for the addTimeout() method:
P.S. Please consider subscribing to the fxruby-users mailing list, and
posting FXRuby-related questions there instead of on ruby-talk. For
more information about the fxruby-users mailing list, see this page:
Look at the documentation for the addTimeout() method:
[snip]
P.S. Please consider subscribing to the fxruby-users mailing list, and
posting FXRuby-related questions there instead of on ruby-talk. For
more information about the fxruby-users mailing list, see this page: