Jump to content

input<-->output


Guest Dj Saturn
 Share

Recommended Posts

Guest Dj Saturn

hey,

i need help with the input box --> GUICtrlCreateInput .... maybe you would suggest something else

but i want to be able to type letters into one input box then have a different letter come out on another box, (does not have to be input)

so when i type cool it would come out as [00|.

i guess i would use Hotkeyset maybe but im not too sure!

im new to this great autoit!!!

so help please! thank you!!

Link to comment
Share on other sites

this will do the trick

Dim $final = ""

$value = InputBox("Word Changer", "Type in your word ", "cool")

$result = StringSplit($value, "")

For $x = 1 to $result[0]
    If $result[$x] = "c" then $final = $final & "["
    If $result[$x] = "o" then $final = $final & "0"
    If $result[$x] = "l" then $final = $final & "|"
; continue as you like
Next

MsgBox(0, "Results", $final)

hope that helps

8)

NEWHeader1.png

Link to comment
Share on other sites

There are several solutions. You could check the Input for the text in a loop, and when the text is equal to "cool", it could write "[oo]" in the other input. Or you could use HotKetSet, and for each charater you input, it could type something different in the other input...

Does that make any sense to you?

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...