WaitSeconds()

Post Reply
User avatar
Raymond Fischbach
Posts: 48
Joined: Sun Oct 30, 2005 9:29 am
Location: Belgium
Contact:

WaitSeconds()

Post by Raymond Fischbach »

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: WaitSeconds()

Post by Enrico Maria Giordano »

Try

Code: Select all

#pragma BEGINDUMP

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


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

#pragma ENDDUMP
EMG
User avatar
Raymond Fischbach
Posts: 48
Joined: Sun Oct 30, 2005 9:29 am
Location: Belgium
Contact:

Post by Raymond Fischbach »

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
Contact:

Post by Raymond Fischbach »

Hello EnricoMaria,

I tried it and it works perfectly.

Many thanks,

Raymond
Raymond Fischbach
www.mouches.org
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: WaitSeconds()

Post by dutch »

Dear Enrico,

Sleep( 1000 ) = ? // 1 second?

Best regards,
Dutch

Enrico Maria Giordano wrote:Try

Code: Select all

#pragma BEGINDUMP

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


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

#pragma ENDDUMP
EMG
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Thanks again, EMG.

Regards,
Dutch
Post Reply