JonathanChan Posted March 17, 2007 Posted March 17, 2007 Hello, I probably just dont' know the name of the function which is why i can't do what i want to do... but how do I make $var=j 10 times? (ie. $var=jjjjjjjjjj)... What my real purpose for asking is to add NULL characters to a file handler. I have to add the null characters based on filesize and it isn't 1 static amount of nulls... Thanks, Jonathan
Moderators SmOke_N Posted March 17, 2007 Moderators Posted March 17, 2007 Hello, I probably just dont' know the name of the function which is why i can't do what i want to do... but how do I make $var=j 10 times? (ie. $var=jjjjjjjjjj)... What my real purpose for asking is to add NULL characters to a file handler. I have to add the null characters based on filesize and it isn't 1 static amount of nulls... Thanks, JonathanIf it's a number (j) then... $var *= Int($j) For $iCC = 1 To 10 $var &= 'String' Next Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
JonathanChan Posted March 17, 2007 Author Posted March 17, 2007 is for efficient? I may need up to 500 null characters... seems like a lot of concating...
_Kurt Posted March 17, 2007 Posted March 17, 2007 For $iCC = 1 To 500 $var &= 'j'NextKurt Awaiting Diablo III..
JonathanChan Posted March 18, 2007 Author Posted March 18, 2007 i know the code... but isn't that a lot of repetitive code that could be done in 1 shot?
Shevilie Posted March 18, 2007 Posted March 18, 2007 Well that take me 2-300 milisecond $time = TimerInit() $t = "0" For $i = 0 To 50000 $t &= "0" Next MsgBox(0,0,TimerDiff($time)) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
JonathanChan Posted March 19, 2007 Author Posted March 19, 2007 hmmm....autoit3 is must faster than autoit2 .... I remember dreading to make my autoit2 script any larger than 500 or so lines because autoit could only process like 20 lines per cycle or per second or something...
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