View Full Version : disable click on button fo 10 seconds ?
alattal
02-27-2010, 01:10 PM
good evening,
if i click on a button , how to disable another click on it for 10 seconds .. and re-active it after the 10 seconds end ..
infinityscape
02-27-2010, 01:28 PM
several ways to go about this:
Application.Sleep
Application.Sleep(10000);
Plugin.SetEnabled("MyButton", true);
Using Timers
On Page Show Put This:
Page.StartTimer(10000);
On Timer Put This:
Plugin.SetEnabled("MyButton", true);
Page.StopTimer();
theres more than likely more but that should be enough to get you started, hope this is some use to you and good luck with the project
alattal
02-27-2010, 01:53 PM
It's Not Working ..
see example below:
infinityscape
02-27-2010, 02:07 PM
ok ill look into this now for you, wont be long...
infinityscape
02-27-2010, 02:20 PM
ok sorry my pc decided to crash, it reason it wasnt working is because i thought you ment a windows button rather than a AMS button, fixed that now its disabled for 10 seconds then gets re-enabled after the 10 seonds.
alattal
02-27-2010, 02:25 PM
thank you infinityscape , but i wani it to be disabled if i click on it ..
and re-activated after that ..
infinityscape
02-27-2010, 02:32 PM
ok give me a second ill add that now
infinityscape
02-27-2010, 02:36 PM
ok done that, when you click the button its disabled for 10 seconds then automatically is re-enabled after the 10 seconds
alattal
02-27-2010, 02:47 PM
well done..thank you infinityscape..
have a nice day.
alattal
infinityscape
02-27-2010, 02:59 PM
no problem, if i can help with anything else just me know
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.