Encryption 0 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? Share this post Link to post Share on other sites
therks 33 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 Share this post Link to post Share on other sites
Encryption 0 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 Share this post Link to post Share on other sites