sleep

tools=sleep=<millisecs>  => script wait x millisecs

 

Example:

wait for a file - max 5 Seconds

 

for ll_loop=1 to 5

 tools=sleep=1000

 tools=fileexists=c:\temp\importfile.txt

 if <value> = 1 then

   importfile()

   return success

 end if

next

messagebox=error$$timeout

return failure

 

function importfile

//..

end function

 

 

This function use the winapi-Function sleepex (x,true)

Attention: This Function blocks only the beas-Task - not the SAP-Task or other parallel Tasks!