Jump to content

Recommended Posts

Guest Dj Saturn
Posted

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

Posted

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

Posted

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?

Guest Dj Saturn
Posted

ooo, thanks guys love yas much.

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
  • Recently Browsing   0 members

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