Page 1 of 1
WaitSeconds()
Posted: Sat Jun 03, 2006 7:34 pm
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
Re: WaitSeconds()
Posted: Sat Jun 03, 2006 8:10 pm
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
Posted: Sat Jun 03, 2006 8:52 pm
by Raymond Fischbach
Hello EnricoMaria,
Many thanks, I will give it a try.
Regards
Posted: Tue Jun 06, 2006 8:28 am
by Raymond Fischbach
Hello EnricoMaria,
I tried it and it works perfectly.
Many thanks,
Raymond
Re: WaitSeconds()
Posted: Tue May 20, 2008 8:10 am
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
Re: WaitSeconds()
Posted: Tue May 20, 2008 8:42 am
by Enrico Maria Giordano
Yes.
EMG
Posted: Wed May 21, 2008 9:16 am
by dutch
Thanks again, EMG.
Regards,
Dutch