zutto Posted October 8, 2008 Share Posted October 8, 2008 yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well.. [example] $x = 104304 func while 1 1 = 1000 ;dostuff sleep($x) wend endfunc Link to comment Share on other sites More sharing options...
Szhlopp Posted October 8, 2008 Share Posted October 8, 2008 yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well.. [example] $x = 104304 func while 1 1 = 1000 ;dostuff sleep($x) wend endfunc Sleep($X / 1000) Maybe start out with the tutorials? RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
Chapi Posted October 8, 2008 Share Posted October 8, 2008 (edited) yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well.. [example] $x = 104304 func while 1 1 = 1000 ;dostuff sleep($x) wend endfunc While 1 ;do something Sleep(_Second(2)) ;sleep 2 seconds Wend Func _Second ($x) return ($x * 1000) EndFuncoÝ÷ ÚÚºÚ"µÍÚ[HBÙÈÛÛY][ÂÔÛ JHÜÛYHÙXÛÛÙ[[ÈÔÛ ÌÍÞ BÛY ÌÍÞ L B[[ Edited October 8, 2008 by Chapi Link to comment Share on other sites More sharing options...
Cdma1X Posted October 8, 2008 Share Posted October 8, 2008 why not $x = 104304 ;same like $x $1 = 1000 Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 9, 2008 Share Posted October 9, 2008 You can't redefine a literal. That doesn't make sense. There are a few languages that support that, but AutoIt is not one of them. 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