Guest Hoshizora Posted June 2, 2005 Share Posted June 2, 2005 Dear all, I hope the table below will help to clarify the precision of the TIMEOUT parameter in functions that uses it (especially for ProcessWait() and ProcessWaitClose() functions). Table below list the functions that has the TIMEOUT parameter: AutoIt Timeout/Delay Parameter Precision in Functions (as of v3.1.1) ================================================ InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut]]]]] ) ----- in seconds MsgBox ( flag, "title", "text" [, timeout] ) ----- in seconds Ping ( address or hostname [, timeout] ) ----- in milliseconds ProcessWait ( "process" [, timeout] ) ----- in seconds ProcessWaitClose ( "process" [, timeout] ) ----- in seconds Sleep ( delay ) ----- in milliseconds TrayTip ( "title", "text", timeout [, option] ) ----- in seconds _viExecCommand($h_session, $s_command, $i_timeout_ms = -1) ----- in milliseconds _viSetTimeout($h_session, $i_timeout_ms) ----- in milliseconds WinWait ( "title" [, "text" [, timeout]] ) ----- in seconds WinWaitActive ( "title", ["text"], [timeout] ) ----- in seconds WinWaitClose ( "title" [, "text" [, timeout]] ) ----- in seconds WinWaitNotActive ( "title" [, "text" [, timeout]] ) ----- in seconds Note: 1s = 1000ms Link to comment Share on other sites More sharing options...
buzz44 Posted June 2, 2005 Share Posted June 2, 2005 Or you could just read the help file . qq Link to comment Share on other sites More sharing options...
Guest Hoshizora Posted June 6, 2005 Share Posted June 6, 2005 Or you could just read the help file .<{POST_SNAPBACK}>I would have if the help file clearly defines the timeout precision in the following 2 functions: ProcessWait()ProcessWaitClose() Link to comment Share on other sites More sharing options...
buzz44 Posted June 6, 2005 Share Posted June 6, 2005 I understand the documentation in the help file but yes, I do agree there could be more information given. Perhaps you should submit in the 'Idea Lab' your findings and give new help file documentation. Something like... for each function that doesn't clearly state what it is, milliseconds or seconds. ProcessWait ( "process" [, timeout] ) timeout [optional]. Specifies how long to wait in seconds(default is to wait indefinitely). In the help file its... ProcessWait ( "process" [, timeout] ) timeout [optional]. Specifies how long to wait (default is to wait indefinitely). qq Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now