PDA

View Full Version : Little help on timers



rexzooly
10-08-2009, 05:11 PM
Ok i been looking and i can't find a timer demo i sure i am blong or blind when i was not looking for one i could find one i just need a demo or code snipit that
will fire a commanded every 10 mins on that given page as when i mini the app
it jumps back to this page.

thanks.

I know its
On Page
page.starttimer(?????);

On Close
page.stoptimer

but seems its not checking it evey 10 mins its checking soon as i mini. and makes it go nuts.

jassing
10-08-2009, 08:25 PM
I put:

On show
Page.StartTimer( 10 * 60 * 1000 ); -- 10 minutes...

On Timer
File.Run("Notepad.exe")

On close

Page.StopTimer()


Fired off as expected.

rexzooly
10-09-2009, 07:54 AM
I put:

On show
Page.StartTimer( 10 * 60 * 1000 ); -- 10 minutes...

On Timer
File.Run("Notepad.exe")

On close

Page.StopTimer()


Fired off as expected.

Problem is i have on perload i have the same command to get the mail
so would this work

My mini button jumps back to home page where the timer starts
if put on perload
if mini ~= true then
Do
end

and mini button
mini = true;
page.jump();
then wat u up do u think this will stop the conflict.

jassing
10-09-2009, 11:22 AM
You had to see this coming.. post an apz.