SetTimer_
-
spacebuddy
- Enthusiast

- Posts: 364
- Joined: Thu Jul 02, 2009 5:42 am
SetTimer_
I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer?

Re: SetTimer_
setTimer_ is a WINDOWS-API and not running on Mac.spacebuddy wrote:I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer?
See in the help ElapsedMilliseconds(), there's a small example.
And... look in the forum for 'timer' ...
michel51
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Re: SetTimer_
You should use the PB command AddWindowTimer() which was added in PB 4.40.spacebuddy wrote:I tried using setTimer_ but it does not seem to be supported. What else can I do to create a timer?
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
