Page 1 of 1

SetTimer_

Posted: Sun Jul 12, 2009 8:53 pm
by spacebuddy
I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer?

:lol:

Re: SetTimer_

Posted: Tue Jul 14, 2009 10:31 pm
by michel51
spacebuddy wrote:I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer?

:lol:
setTimer_ is a WINDOWS-API and not running on Mac.

See in the help ElapsedMilliseconds(), there's a small example.

And... look in the forum for 'timer' ... :idea:

Re: SetTimer_

Posted: Fri Feb 25, 2011 10:54 pm
by Shardik
spacebuddy wrote:I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer? :lol:
You should use the PB command AddWindowTimer() which was added in PB 4.40.
If you need a timer for a non-window application, you can take a look into Niffo's
code example which creates a timer via API calls:
http://www.purebasic.fr/english/viewtop ... 98&start=1