Jump to content

Jseaz73

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Jseaz73

  1. Will this work on a region of a screen or am I better off using Tesseract?
  2. That link kind of works but this code is 2500 lines and calls in several very large includes... I think my code is too complicated. I am going to have to get that pen and paper out :-(
  3. Is there any suggestions that you all have that I can use to read my script and give me a flow chart??
  4. M23, just wanted to clsoe the loop here on this one... The code you have there did not work for me with the current version. I had to go to the BETA version for the error to go away.
  5. That was too simple... I am sorry I did not find that with out bugging you... thank you again!!!! New Error... :-( Line272 (File “D:Program Files (x86)AutoIt3IncludeFile.au3"): $s_Temp &= $s_Delim & $a_Array[$x][$y] $s_Temp &= $s_Delim & ERROR Error Array variable has incorrect number of subscripts or subscript dimension range exceeded.
  6. M23 thank you for the help... I thought I understood it ... but i guess I am just not as smart as i thought I was... Here is what I am trying to do with my Function. No matter what I do i am getting an error. or the output is incomplete. The error i get is... Line 554 (File “D:Usersiasonfish.au3”): FileWriteLine($fOut, $aPairs[Oj[sij & ‘, “& $aPairs[1][si]) FileWriteLine($fOut. ^ ERROR Error Array variable has incorrect number of subscripts or subscript dimension range exceeded. Global $sFilename = "D:UsersJasonLiveWell.txt" Func AASS() ; AssocArraySave&Sort ;-- this did not work... ;$fOut = FileOpen($sFilename, 2); maybe change this to a 1 and add a TIME Stamp before the FILE CLOSE ; And populate it ;For $i = 1 To UBound($aList) - 1 ; Insert the sorted key ;$aPairs[$i][0] = $aList[$i] ; Insert the associated value ;$aPairs[$i][1] = AssocArrayGet($hipBag, $aList[$i]) ;FileWriteLine($fOut, StringQuote($aPairs[0][$i]) & ", " & StringQuote($aPairs[1][$i])) ;_FileWriteLog ($sFilename2, StringQuote($aPairs[0][$i]) & ", " & StringQuote($aPairs[1][$i])) ;Next ;FileClose($fOut) Global $aArray, $aList Local $fOut, $I ; Generate list of keys $aList = AssocArrayKeys($hipBag) ; And sort it _ArraySort($aList) ; Create an array to hold keys and values Global $aPairs[UBound($aList)][2] ; And populate it For $i = 1 To UBound($aList) - 1 ; Insert the sorted key $aPairs[$i][0] = $aList[$i] ; Insert the associated value $aPairs[$i][1] = AssocArrayGet($hipBag, $aList[$i]) Next $i = 0 $fOut = FileOpen($sFilename, 2); maybe change this to a 1 and add a TIME Stamp before the FILE CLOSE ; And populate it For $i = 1 To UBound($aPairs) - 1 FileWriteLine($fOut, ($aPairs[0][$i]) & ", " & ($aPairs[1][$i])) ;_FileWriteLog ($sFilename2, StringQuote($aPairs[0][$i]) & ", " & StringQuote($aPairs[1][$i])) Next FileClose($fOut) EndFunc ;==>AASS
  7. YES thank you ... then I can WRITE it out ... thank you... that is what i was thinking but I was not totally sure how to do it ...
  8. So my goal here is to sort the whole list ascending on the 1st column of data. I was thinking i could pull the array into an array on my main program. then sort that as i write it out to a file.
  9. Thank you both... I am using this function to collect data ... and I am just looking for an easy way to sort the out put... and i want order the output by the 1st column assending... on save to the file. I was playing with the UDF and trying to see where I could sort it on save ... but I have had no luck. "Perch", 105 "Puffer", 185 "Crystal", 1 "Crab", 27 "Codex", 1 "Prawn", 3 "Nautilus", 29 "Desert", 69
  10. Nutster, I love this code thank you.... The only thing that I have been unsuccessful in accomplishing is .... When saving the file off I would like to be able to SORT it... --- I am sure it is because I AM new to programming but ... Any help would be much appreciated... I tried this in varrious parts of my program and yours... but again ... i am a NOOB. http://www.autoitscript.com/autoit3/docs/libfunctions/_ArraySort.htm Thank ya ... ANYONE that can help.. jason
×
×
  • Create New...