Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 5
»
RE: Abort script after certain amount of time
Abort script after certain amount of time
Post Reply
Like
19
Abort script after certain amount of time
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
SabRV
SabRV
posted 5 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 16,
Visits: 92
Hi all,
Question: I want my script to be aborted after 25 min. I can only find commands on how to abort on conditions of responses etc. Does anyone have a command for this?
Thanks in advance!
Best,
Sabrina
Reply
Like
19
Dave
Dave
posted 5 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
+
x
SabRV - 9/25/2019
Hi all,
Question: I want my script to be aborted after 25 min. I can only find commands on how to abort on conditions of responses etc. Does anyone have a command for this?
Thanks in advance!
Best,
Sabrina
The script.elapsedtime property gives you the amount of time elapsed (in milliseconds) since the start of script execution, so you can do something like this
/ ontrialend = [ if (script.elapsedtime >= 1500000) script.abort();]
Edited
5 Years Ago by
Dave
Reply
Like
16
SabRV
SabRV
posted 5 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 16,
Visits: 92
+
x
Dave - 9/25/2019
+
x
SabRV - 9/25/2019
Hi all,
Question: I want my script to be aborted after 25 min. I can only find commands on how to abort on conditions of responses etc. Does anyone have a command for this?
Thanks in advance!
Best,
Sabrina
The script.elapsedtime property gives you the amount of time elapsed (in millisecond) since the start of script execution, so you can do something like this
/ ontrialend = [ if (script.elapsedtime >= 1500000) script.abort();]
Awesome Dave, thank you!!
Reply
Like
22
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
19
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search