View Full Version : Timed Dialog w/Button
Buffman
09-27-2006, 02:20 PM
Any way to do something like Dialog.TimedMessage() but with an 'ok' button?
I want to have a dialog popup, but after x amount of seconds have it automatically click the 'ok' (no user response).
Any thoughts?
maybe something like this
when you call the dialog
Page.StartTimer(5000)
Dialog.Message("My Window", "Test 1 2 3")
On Timer Event
Page.StopTimer()
tblWindows = Window.EnumerateTitles(false)
for handle, title in tblWindows do
if title == "My Window" then
Window.Close(handle, CLOSEWND_SENDMESSAGE)
break
end
end
Intrigued
09-27-2006, 02:38 PM
Here is something I did a while back that may help:
http://www.indigorose.com/forums/showthread.php?t=16605&highlight=timed+message+box
Just playing around... but this one shows a countdown.
Buffman
09-27-2006, 04:47 PM
Ahhh beautiful!!
Hadn't even thought about changing the title text!!
Awesome Idea - thanks!
Intrigued
09-27-2006, 07:19 PM
In some instances you may want to allow for other AMS activity whilst the timed countdown dialog is going on. That is when you may prefer what I put forth. It allows for your AMS application to still function. Both have their place for sure.
:yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.