manuelgruber Posted February 18, 2019 Posted February 18, 2019 Hey guys, I'm actually using autoit for quite a while and I think it's a great script language. I'm doing a bigger project right now and ran into a problem you may be able to help me with. I'm reading files into a string and Split it into an array so I can go threw it line by line. After some sorting out I write it back into multiple files. So. I basically split one file into more. Everything works fine as long as the string doesn't have 2 dollar sings right next to each other. It looks like this: $cStr="N10 $A_DBB[800]=$$A_IM[Y1]" Consolewrite($cStr&@LF) Msgbox(0,"test",$cStr) If u run this script you will get: N10 $A_DBB[800]=$A_IM[Y1] So it basically cuts away the second $. If I make 4 $ they end up being 2. But this does not help me. Do you have any idea how I can get autoit to do this right? Thank you for any input on this issue.
FrancescoDiMuro Posted February 18, 2019 Posted February 18, 2019 (edited) 4 minutes ago, manuelgruber said: If u run this script you will get: N10 $A_DBB[800]=$A_IM[Y1] Definitely not Which version of AutoIt are you using? Edited February 18, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
manuelgruber Posted February 18, 2019 Author Posted February 18, 2019 Sorry I bordered you about this, cause I just remembered doing something with the Opt("ExpandVarStrings", 1) a while back. This causes the problem I have. It will take some rewriting on another subprogram but at least I found the reason why this was happening.
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