xzaz Posted November 9, 2006 Posted November 9, 2006 Alright i got this with the include for the Array:$q_code = InputBox("Code..","Code","","*") Dim $avArray[3] $avArray[0] = "test1" $avArray[1] = "test2" $avArray[2] = "test3" If $q_code = $avArray Then ; Go futher oÝ÷ Ø Ýjëh×6 $q_code = InputBox("Code..","Code","","*") Dim $avArray[3] $avArray[0] = "test1" $avArray[1] = "test2" $avArray[2] = "test3" If $q_code = IsArray($avArray) Then ; Go futherI read this but i dont understand it:http://www.autoitscript.com/autoit3/docs/i...g_variables.htmSo he has to check if the string in the Inputbox is one in the array. Small Color Picker v0.2 | Travian bot
xzaz Posted November 9, 2006 Author Posted November 9, 2006 (edited) #Include<Array.au3> Dim $Array[6] $Array[0] = "String0" $Array[1] = "String1" $Array[2] = "String2" $Array[3] = "String3" $Array[4] = "String4" $Array[5] = "String5" $Input = InputBox("ArraySearch Demo", "String To Find?") If @error Then Exit $Pos = _ArraySearch ($Array, $Input) Select Case $Pos = -1 MsgBox(0, "Not Found", '"' & $Input & '" was not found in the array.') Case Else MsgBox(0, "Found", '"' & $Input & '" was found in the array at pos ' & $Pos & ".") EndSelect Sry, dindt search right ^^ Edited November 9, 2006 by xzaz Small Color Picker v0.2 | Travian bot
Developers Jos Posted November 9, 2006 Developers Posted November 9, 2006 Sry, dindt search right ^^This script works fine .....What is the problem ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
xzaz Posted November 9, 2006 Author Posted November 9, 2006 No, i had first the script in the first posts. Next i search for a function that could check a array. But dint search with "_Arrayxxxx" Small Color Picker v0.2 | Travian bot
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