Jump to content

Unterminated String


Drew
 Share

Recommended Posts

Alright thats the error I'm getting ( Unterminated String )

Sounds remarkable simple, but I can't seem to come up with the fix. Heres the code: ( Just the error strings as this is a little long )

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button1
            WinActive( "Diablo II" )
            Opt("WinWaitDelay", 3000)
            MouseWheel( "Up", 250")
        Case $msg = $Button2
            MsgBox( 0, "Contacting Dreu.", "Email: *Edited* , Other: Www.RelivedGaming.Com
        Case $msg = $Button3
            MsgBox( 0, "Credits", "This program was made for GgAcE and whomever he chooses to distribute to, by Dreu.
        Case $msg = $Button4
            MsgBox( 0, "To GgAcE", "Made specially for you man. Hope you enjoy!")
        Case $msg = $Button5
            MsgBox( 0, "So you want your own personal Skill Pumper too?", "Contact Dreu!! If I like you, I made take the time to do so.")
    EndSelect
WEnd

I understand I do things the long way , but I'm a beginner.

Edited by Drew
Link to comment
Share on other sites

Alright I decided that that might not be enough of the code. Heres more.

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("GgAcE's Skill Pumper", 395, 204, 306, 113)
$Label1 = GUICtrlCreateLabel("  GgAcE Skill Pumper  ", 8, 16, 374, 41)
GUICtrlSetFont(-1, 24, 400, 2, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetCursor (-1, 3)
$Button1 = GUICtrlCreateButton("Run Pumper", 8, 72, 129, 33, $WS_BORDER)
$Button2 = GUICtrlCreateButton("How to contact Dreu", 8, 120, 129, 33, $WS_BORDER)
$Button3 = GUICtrlCreateButton("Credits", 256, 72, 129, 33, $WS_BORDER)
$Button4 = GUICtrlCreateButton("Made For GgAcE", 256, 112, 129, 33, $WS_BORDER)
$Button5 = GUICtrlCreateButton("Want your own personal Skill Pumper?", 24, 160, 345, 25, 0)
$Graphic1 = GUICtrlCreateGraphic(152, 72, 89, 73)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button1
            WinActive( "Diablo II" )
            Opt("WinWaitDelay", 3000)
            MouseWheel( "Up", 250")
        Case $msg = $Button2
            MsgBox( 0, "Contacting Dreu.", "Email: *editted* , Other: Www.RelivedGaming.Com
        Case $msg = $Button3
            MsgBox( 0, "Credits", "This program was made for GgAcE and whomever he chooses to distribute to, by Dreu.
        Case $msg = $Button4
            MsgBox( 0, "To GgAcE", "Made specially for you man. Hope you enjoy!")
        Case $msg = $Button5
            MsgBox( 0, "So you want your own personal Skill Pumper too?", "Contact Dreu!! If I like you, I made take the time to do so.")
    EndSelect
WEnd
Link to comment
Share on other sites

No no, you see, this is wrong:

MsgBox( 0, "Credits", "This program was made for GgAcE and whomever he chooses to distribute to, by Dreu.

You forgot this: ") at the end!

MsgBox( 0, "Credits", "This program was made for GgAcE and whomever he chooses to distribute to, by Dreu.")
Link to comment
Share on other sites

Wow lol... I apologize as that was a complete waste of time. Thanks a ton for your help none the less :P

EDIT

Well shoot. No errors now, just when clicked, the buttons do nothing.

Edited by Drew
Link to comment
Share on other sites

Oh, and why are you using two loops? That's never going to work either!

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("GgAcE's Skill Pumper", 395, 204, 306, 113)
$Label1 = GUICtrlCreateLabel("    GgAcE Skill Pumper    ", 8, 16, 374, 41)
GUICtrlSetFont(-1, 24, 400, 2, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetCursor (-1, 3)
$Button1 = GUICtrlCreateButton("Run Pumper", 8, 72, 129, 33, $WS_BORDER)
$Button2 = GUICtrlCreateButton("How to contact Dreu", 8, 120, 129, 33, $WS_BORDER)
$Button3 = GUICtrlCreateButton("Credits", 256, 72, 129, 33, $WS_BORDER)
$Button4 = GUICtrlCreateButton("Made For GgAcE", 256, 112, 129, 33, $WS_BORDER)
$Button5 = GUICtrlCreateButton("Want your own personal Skill Pumper?", 24, 160, 345, 25, 0)
$Graphic1 = GUICtrlCreateGraphic(152, 72, 89, 73)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

;~ While 1
;~ $nMsg = GUIGetMsg()
;~ Switch $nMsg
;~ Case $GUI_EVENT_CLOSE
;~ Exit

;~ EndSwitch
;~ WEnd
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $Button1
;~             WinActive( "Diablo II" )
;~             Opt("WinWaitDelay", 3000)
;~             MouseWheel( "Up", 250")
        Case $msg = $Button2
            MsgBox( 0, "Contacting Dreu.", "Email: *editted* , Other: Www.RelivedGaming.Com")
        Case $msg = $Button3
            MsgBox( 0, "Credits", "This program was made for GgAcE and whomever he chooses to distribute to, by Dreu.")
        Case $msg = $Button4
            MsgBox( 0, "To GgAcE", "Made specially for you man. Hope you enjoy!")
        Case $msg = $Button5
            MsgBox( 0, "So you want your own personal Skill Pumper too?", "Contact Dreu!! If I like you, I made take the time to do so.")
    EndSelect
WEnd
Link to comment
Share on other sites

you have two of them - don't miss the second one! -Also it gives you the line number with that message. Keep the editor open when you have programmed until you run a test that passes.

MsgBox( 0, "Contacting Dreu.", "Email: *Edited* , Other: Www.RelivedGaming.Com

MsgBox( 0, "Credits", "This program was made for GgAcE and whomever he chooses to distribute to, by Dreu.

Link to comment
Share on other sites

Tons of help Nahuel, I even learned something there. Greatly appreciated!

Thank you to you as well Hatcheda, because if Nahuel hadn't replied first you would have been just as much help!

Now off to work on a Icon for the middle of my GUI :P Thanks guys.

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