markyrocks Posted September 7, 2018 Posted September 7, 2018 Its just weird I'm taking a .tmp file and using stringsplit to separate strings formatted like Earthling_Planet_Human_Squater_Beard And using "_" as the delimiter not only does it drop the r's on the ends it does it in the middle of a word. Like Beard would be saved as Bead...literally all I'm doing is taking a proper string from a filereadtoarray() and then looping through the array using stringsplit. Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning"
FrancescoDiMuro Posted September 7, 2018 Posted September 7, 2018 @markyrocks Your script? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
markyrocks Posted September 7, 2018 Author Posted September 7, 2018 (edited) $array = FileReadToArray("Helper.tmp") ;reads file to array for $i = 0 to UBound($array)-1 if $array[$i]<>"" Then $stringarray = StringSplit($array[$i], "_") ;removes the "_"'s' ;2 flag is nocount, [1] is first actual string if UBound($stringarray)=0 Then MsgBox('','',"stringarray[]=0") EndIf Endif for $l=5 to UBound($stringarray)-1 ;this just sends the contents of $string array Send($stringarray[$l] & " ") Next next Edited September 7, 2018 by markyrocks Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning"
FrancescoDiMuro Posted September 7, 2018 Posted September 7, 2018 (edited) @markyrocks I don't know what you're talking about #include <Array.au3> Global $strString = "Earthling_Planet_Human_Squater_Beard" ; "I'm_a_string_with_r._Wrar_!", _ $arrStringSplitted = StringSplit($strString, "_", BitOR($STR_NOCOUNT, $STR_ENTIRESPLIT)) _ArrayDisplay($arrStringSplitted, "String Splitted") Result: Edited September 7, 2018 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
jdelaney Posted September 7, 2018 Posted September 7, 2018 Probably: Send($stringarray[$l] & " ",1) IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
markyrocks Posted September 7, 2018 Author Posted September 7, 2018 I'll have to take a look at it when I get home tonight. It's just odd. There's seemingly no obvious reason why it would be deleting the r's. Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning"
markyrocks Posted September 9, 2018 Author Posted September 9, 2018 Lol I figured out the issue. I had hotkeys set for p's and r's... duh. Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning"
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