SetTimer_

Mac OSX specific forum
spacebuddy
Enthusiast
Enthusiast
Posts: 364
Joined: Thu Jul 02, 2009 5:42 am

SetTimer_

Post by spacebuddy »

I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer?

:lol:
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: SetTimer_

Post 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:
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
User avatar
Shardik
Addict
Addict
Posts: 2076
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: SetTimer_

Post 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
Post Reply