Sign in to follow this  
Followers 0
Encryption

String Converting Not Working?

3 posts in this topic

#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



#2 ·  Posted (edited)

Probably because GUIControlRead() isn't a function. :lmao:

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 by Saunders

Share this post


Link to post
Share on other sites

Probably because GUIControlRead() isn't a function. :lmao:

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 o:)

Share this post


Link to post
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
Sign in to follow this  
Followers 0