Garrett19212 Posted March 3, 2005 Posted March 3, 2005 $var1 = FileReadLine("Delay.txt",1) Sleep($var1) How would i make the sleep use a variable Delay.txt 1000 2000 3000 4000
CyberSlug Posted March 3, 2005 Posted March 3, 2005 (edited) Sleep(Number($var)) FileReadLine returns text (string), so you probably need to use the Number() function to indicate you really intend to use $var as a number. Might double check that FileReadLine is working: $var1 = FileReadLine("Delay.txt",1) MsgBox(4096,"Debug", "Var1 equals " & $var1) Sleep(Number($var1)) MsgBox(4096,"Debug", "Done sleeping") Edited March 3, 2005 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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