Drew Posted November 20, 2007 Share Posted November 20, 2007 (edited) 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 November 20, 2007 by Drew Link to comment Share on other sites More sharing options...
Drew Posted November 20, 2007 Author Share Posted November 20, 2007 Alright I decided that that might not be enough of the code. Heres more. expandcollapse popup#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 More sharing options...
Nahuel Posted November 20, 2007 Share Posted November 20, 2007 You didn't close your messageboxes. Link to comment Share on other sites More sharing options...
Drew Posted November 20, 2007 Author Share Posted November 20, 2007 I thought when they click OK , that would close them. Or is there a line I need to include? Link to comment Share on other sites More sharing options...
Nahuel Posted November 20, 2007 Share Posted November 20, 2007 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 More sharing options...
Drew Posted November 20, 2007 Author Share Posted November 20, 2007 (edited) Wow lol... I apologize as that was a complete waste of time. Thanks a ton for your help none the less EDIT Well shoot. No errors now, just when clicked, the buttons do nothing. Edited November 20, 2007 by Drew Link to comment Share on other sites More sharing options...
Nahuel Posted November 20, 2007 Share Posted November 20, 2007 Oh, and why are you using two loops? That's never going to work either! expandcollapse popup#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 More sharing options...
John117 Posted November 20, 2007 Share Posted November 20, 2007 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 More sharing options...
Drew Posted November 20, 2007 Author Share Posted November 20, 2007 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 Thanks guys. Link to comment Share on other sites More sharing options...
John117 Posted November 20, 2007 Share Posted November 20, 2007 Cool - just remember that the line number usually tells you where the error is Nahuel -How are you formating your code to display correctly (Color) and witht he bar to the right? -Thanks Link to comment Share on other sites More sharing options...
Nahuel Posted November 20, 2007 Share Posted November 20, 2007 Post the code between the [autoit ] [/ autoit] tags Link to comment Share on other sites More sharing options...
John117 Posted November 20, 2007 Share Posted November 20, 2007 Post the code between the [autoit ] [/ autoit] tags Ah hA! Thanks :-) 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