Encryption Posted February 8, 2005 Share Posted February 8, 2005 #include <GUIConstants.au3> GUICreate("1337 Speak Generator") $ToBeConverted = GUICtrlCreateEdit("Convert To 1337", 50, 25, 300, 150) $leetradio = GUICtrlCreateRadio("1337 5P34|<", 65, 190) GUICtrlSetState ($leetradio, $GUI_CHECKED) $groovyradio = GUICtrlCreateRadio("Groovy Speak", 250, 190) $convertbutton = GUICtrlCreateButton("Convert", 155, 190, 80, 20) $Converted = GUICtrlCreateEdit("Converted", 50, 230, 300, 150) $ToBeConvertedString = String(GUIControlRead($ToBeConverted)) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $convertbutton Then If GUICtrlRead($leetradio) = $GUI_CHECKED Then ElseIf GUICtrlRead($groovyradio) = $GUI_CHECKED Then EndIf EndIf If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd $ToBeConvertedString = String(GUIControlRead($ToBeConverted)) Why am I getting an error in thAt line. I need to convert the characters in the edit box to a string, but is that the correct way to do it? Link to comment Share on other sites More sharing options...
therks Posted February 8, 2005 Share Posted February 8, 2005 (edited) Probably because GUIControlRead() isn't a function. Also, you should put that line within the While function so that it will continually update the variable. Otherwise the only thing it's ever going to contain is "Convert To 1337" Edit again: Also, you don't need to call the String() function, as the value returned by GuiCtrlRead in this case will already be a string. Edited February 8, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Encryption Posted February 8, 2005 Author Share Posted February 8, 2005 Probably because GUIControlRead() isn't a function. Also, you should put that line within the While function so that it will continually update the variable. Otherwise the only thing it's ever going to contain is "Convert To 1337"<{POST_SNAPBACK}>Hehe, thanks for the help. Maybe I should proofread a bit better Link to comment Share on other sites More sharing options...
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