UndeadHarlequin Posted November 27, 2008 Share Posted November 27, 2008 Yes,. i know ,.. "not you again "^^ it could be psaltyDS who gives me the last helping answer XD Now lets se: I tested,.. continueloop with <>"" to find out, if something is string Just to find out,. where the error is,.. i worte a sample,..and it causes the same error: CODEdim $a[10][10] $a[0][0]="1" $a[0][1]="1" $a[1][0]="1" $a[1][1]="1" $a[2][0]="1" $a[2][1]="1" For $countarray2=0 to 10 Select Case $a[$countarray2][0]< >"" ContinueLoop $a[$countarray2][2]=WinGetHandle($a[$countarray2][0],$a[$countarray2][1]) endselect Next Anyone can help me?? Link to comment Share on other sites More sharing options...
BrettF Posted November 27, 2008 Share Posted November 27, 2008 (edited) You had a space between <> and I changed the line to be a ubound. Dim $a[10][10] $a[0][0] = "1" $a[0][1] = "1" $a[1][0] = "1" $a[1][1] = "1" $a[2][0] = "1" $a[2][1] = "1" For $countarray2 = 0 To UBound($a) -1 Select Case $a[$countarray2][0] <> "" ContinueLoop $a[$countarray2][2] = WinGetHandle($a[$countarray2][0], $a[$countarray2][1]) EndSelect Next Edited November 27, 2008 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
UndeadHarlequin Posted November 27, 2008 Author Share Posted November 27, 2008 Test your script: works,.. deleted blanc, in my script,.. doesnt work,.. i deleted al blanks,. and copied parts of your code,.. worked,.. but i cant find out why it works,.. or why it didnt work,... Anyone has n answer? until than ,.. For $i=0 to 180 Delet every chart next ,.. Link to comment Share on other sites More sharing options...
UndeadHarlequin Posted November 27, 2008 Author Share Posted November 27, 2008 Mistakeline: For $countarray2=0 to 10 Working vers For $countarray2 = 0 To UBound($a) -1 Error charts= 10 ,.. correct,. Ubound($a)-1 WHY?? Why cant this code count until 10?? HELPOo HEEELP:-) thx Link to comment Share on other sites More sharing options...
BrettF Posted November 27, 2008 Share Posted November 27, 2008 (edited) Just saw your last post. You define the array as having 10 elements. The elements start from 0. So therefore it has to end at 9. Lets look at it so we can actually see how it is. [0] = 1 Element [1] = 2 Element [2] = 3 Element [3] = 4 Element [4] = 5 Element [5] = 6 Element [6] = 7 Element [7] = 8 Element [8] = 9 Element [9] = 10 Element Arrays are a hard concept to grasp. I hope this makes some more sense. Cheers, Brett Edited November 27, 2008 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
UndeadHarlequin Posted November 27, 2008 Author Share Posted November 27, 2008 (edited) AH ^^ fuck ,.. to easy XD ,..much to easy XD yes logo,.. erm 2:37 ,.. perhaps a bit late 4 goning on with programs Goodnight and thx ^^ Edit:AAARG *smashing head against brickwall* stupid,.. WHY,.,.. thx again Edited November 27, 2008 by UndeadHarlequin 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