WaitSeconds()

WaitSeconds()

Postby Raymond Fischbach » Sat Jun 03, 2006 7:34 pm

Hello,

Is it possible to have the function WaitSeconds()?

Or is there a work around to wait for a defined number of seconds?

Thanks
Raymond Fischbach
www.mouches.org
User avatar
Raymond Fischbach
 
Posts: 48
Joined: Sun Oct 30, 2005 9:29 am
Location: Belgium

Re: WaitSeconds()

Postby Enrico Maria Giordano » Sat Jun 03, 2006 8:10 pm

Try

Code: Select all  Expand view  RUN
#pragma BEGINDUMP

#include "windows.h"
#include "hbapi.h"


HB_FUNC( SLEEP )
{
    Sleep( hb_parnl( 1 ) );
}

#pragma ENDDUMP


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Raymond Fischbach » Sat Jun 03, 2006 8:52 pm

Hello EnricoMaria,

Many thanks, I will give it a try.

Regards
Raymond Fischbach
www.mouches.org
User avatar
Raymond Fischbach
 
Posts: 48
Joined: Sun Oct 30, 2005 9:29 am
Location: Belgium

Postby Raymond Fischbach » Tue Jun 06, 2006 8:28 am

Hello EnricoMaria,

I tried it and it works perfectly.

Many thanks,

Raymond
Raymond Fischbach
www.mouches.org
User avatar
Raymond Fischbach
 
Posts: 48
Joined: Sun Oct 30, 2005 9:29 am
Location: Belgium

Re: WaitSeconds()

Postby dutch » Tue May 20, 2008 8:10 am

Dear Enrico,

Sleep( 1000 ) = ? // 1 second?

Best regards,
Dutch


Enrico Maria Giordano wrote:Try

Code: Select all  Expand view  RUN
#pragma BEGINDUMP

#include "windows.h"
#include "hbapi.h"


HB_FUNC( SLEEP )
{
    Sleep( hb_parnl( 1 ) );
}

#pragma ENDDUMP


EMG
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Postby dutch » Wed May 21, 2008 9:16 am

Thanks again, EMG.

Regards,
Dutch
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 7 guests