Jump to content
Sign in to follow this  

Can AutoIt read at invervals?

Recommended Posts

Can you make AutoIt read at 5 character invervals?


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,


Edited 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
ElseIf $ans = 7 Then

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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)
Func _GetMacthforKey($numbers)
    For $1 = 0 To UBound($KeysAndCodes, 1) - 1
        If $numbers = $KeysAndCodes[$1][0] Then Return $KeysAndCodes[$1][1]
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! youÂ’re the best in town Fight!

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...