Jump to content

Set a letter as a number


Recommended Posts

Hello guys...long time since i used autoit...i need help: I want to set a number for a letter, I mean if it finds a letter in a string then find the number wich coresponds to that letter and add with with something. I have to set a number for each letter but I don't know how to do that...and then if it finds the letter in the string let's say it will show a MessageBox with the number set to corespond with that letter....hope you get it i'm bad at explaining...10x for reading :)

Link to comment
Share on other sites

Hello guys...long time since i used autoit...i need help: I want to set a number for a letter, I mean if it finds a letter in a string then find the number wich coresponds to that letter and add with with something. I have to set a number for each letter but I don't know how to do that...and then if it finds the letter in the string let's say it will show a MessageBox with the number set to corespond with that letter....hope you get it i'm bad at explaining...10x for reading :)

How about:

StringInStr()

IniReadSection(LettersToNumbers.ini,MyConversionTable)

- assuming you want your own unique numbers or else you could use Asc()

"and add with with something". ??? whats adding to what numbers, strings?

The above will give you all the variables you need to display in the MsgBox()

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...