Vivvic Posted June 9, 2006 Share Posted June 9, 2006 My test script goes 12345678111111111222222222333333333444444444.....etc......when I want it to count with two digits like 123456789101112131415161718192021....etc $var = 0 $Loop = 1 While $Loop=1 $Var = $Var + 1 Send("{" & $VAR & "}") Sleep(1000) Wend Ive tried makeing the origonal variable more than one digit, ive tried puting it in quotes with no success...any ideas? [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 9, 2006 Moderators Share Posted June 9, 2006 My test script goes 12345678111111111222222222333333333444444444.....etc......when I want it to count with two digits like 123456789101112131415161718192021....etc $var = 0 $Loop = 1 While $Loop=1 $Var = $Var + 1 Send("{" & $VAR & "}") Sleep(1000) Wend oÝ÷ ØÞ¶¸vf¤z)ඨ®((©oj¸nW¦¢·©èçb+b½ëkçiºØ§+b«¨µë0Øg¢Ëqë,j|¢uæ¬þ«¨µäáÌ(®G~)Þr§µçbǪ¹éí©h׫)ʬj'ZºÚ"µÍÌÍÝHUÚ[HBBIÌÍÕH ÌÍÕ ÈBBPÛÛÛÛUÜ]J ÌÍÝ [ÈNÔÙ[ ][ÝÞÉ][ÝÈ [È ÌÍÕT [È ][ÝßI][ÝÊBBTÛY L BUÙ[ 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. Link to comment Share on other sites More sharing options...
Vivvic Posted June 9, 2006 Author Share Posted June 9, 2006 (edited) Yes, but when you use it in..say.....notepad it wont go into two digit numbers it will go as 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3........it will still have the first digit but wont show seccond, third, fourth...etc digits it willl just show the first for how ever many times it needs to >.< Edited June 9, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
gamerman2360 Posted June 9, 2006 Share Posted June 9, 2006 I would try taking out the "{" and the "}" Link to comment Share on other sites More sharing options...
Vivvic Posted June 9, 2006 Author Share Posted June 9, 2006 I would try taking out the "{" and the "}"Then it repeats & $VAR & over and over... [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 9, 2006 Moderators Share Posted June 9, 2006 (edited) I would try taking out the "{" and the "}"Yes that will fix it, I was hoping for him/her seeing that I didn't use those that they would change them, I meant to type that in last time... nice catch gm2360. Edit: Then it repeats & $VAR & over and over...Send($Var) Edited June 9, 2006 by SmOke_N 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. Link to comment Share on other sites More sharing options...
gamerman2360 Posted June 9, 2006 Share Posted June 9, 2006 $var = 0 $Loop = 1 While $Loop=1 $Var = $Var + 1 Send( $VAR) Sleep(1000) Wend Link to comment Share on other sites More sharing options...
gamerman2360 Posted June 9, 2006 Share Posted June 9, 2006 (edited) also you dont need $loop = 1, 1 registers as true In fact, anything registers as true if its not a 0 or a ""(blank string) Edit: Also not the keyword false. Edited June 9, 2006 by gamerman2360 Link to comment Share on other sites More sharing options...
Vivvic Posted June 9, 2006 Author Share Posted June 9, 2006 (edited) Thank you both, ^^ its working now. EDIT: I have the variable loop so friends can configure it how they need, just kinda took a snipit out of my code. Edited June 9, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] 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