keen Posted October 20, 2006 Posted October 20, 2006 Well my little Bro made me make this and it isnt working. Anything that you can see wrong: #include <GUIConstants.au3> GUICreate("My GUI", 750, 750) GUISetState (@SW_SHOW) GUICtrlCreateTab(1, 70, 750, 700) $tab1 = GUICtrlCreateTabItem("Lobby") GUICtrlCreateLabel ( "Welcome to the lobby. Please browse around at the different gardens or create your own my pressing the Create New Garden button. Have Fun.", 100, 100, 375, 100) $tab2 = GUICtrlCreateTabItem("Nutral Garden") GUICtrlCreateLabel ( "Welcome to the Nutral Garden.", 100, 100, 375, 100) GUICtrlCreateLabel ( "Current Chaos In Garden: ChaCha, " & $Nutral2, 100, 100, 375, 100) $tab3 = GUICtrlCreateTabItem("Dark Garden") GUICtrlCreateLabel ( "Welcome to the Dark Garden.", 100, 100, 375, 100) GUICtrlCreateLabel ( "Current Chaos In Garden: Shadow, " & $Dark2, 100, 100, 375, 100) $tab4 = GUICtrlCreateTabItem("Buy Chaos") $Nutral = GUICtrlCreateButton( "Buy Nutral Chao", 150, 150, 100, 40) $Dark = GUICtrlCreateButton("Buy Dark Chaio", 150, 150, 125, 40) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Select Case $msg = $Dark $Dark2 = InputBox ( "Name", "Please enter a name for your new dark chao:") Case $msg = $Nutral $Nutral2 = InputBox ( "Name", "Please enter a name for your new nutral chao:") EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend [center]Kesne's Bar & Grill[/center]
spyrorocks Posted October 20, 2006 Posted October 20, 2006 This works: #include <GUIConstants.au3> GUICreate("My GUI", 750, 750) GUISetState (@SW_SHOW) GUICtrlCreateTab(1, 70, 750, 700) $tab1 = GUICtrlCreateTabItem("Lobby") GUICtrlCreateLabel ( "Welcome to the lobby. Please browse around at the different gardens or create your own my pressing the Create New Garden button. Have Fun.", 100, 100, 375, 100) $tab2 = GUICtrlCreateTabItem("Nutral Garden") GUICtrlCreateLabel ( "Welcome to the Nutral Garden.", 100, 100, 375, 100) $chaos1 = GUICtrlCreateLabel ( "Current Chaos In Garden: ChaCha", 100, 100, 375, 100) $tab3 = GUICtrlCreateTabItem("Dark Garden") GUICtrlCreateLabel ( "Welcome to the Dark Garden.", 100, 100, 375, 100) $Chaos2 = GUICtrlCreateLabel ( "Current Chaos In Garden: Shadow", 100, 100, 375, 100) $tab4 = GUICtrlCreateTabItem("Buy Chaos") $Nutral = GUICtrlCreateButton( "Buy Nutral Chao", 150, 150, 100, 40) $Dark = GUICtrlCreateButton("Buy Dark Chaio", 150, 150, 125, 40) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Select Case $msg = $Dark $Dark2 = InputBox ( "Name", "Please enter a name for your new dark chao:") if not @error then guictrlsetdata($chaos2, guictrlread($chaos2) & ", " & $dark2) Case $msg = $Nutral $Nutral2 = InputBox ( "Name", "Please enter a name for your new nutral chao:") if not @error then guictrlsetdata($chaos1, guictrlread($chaos1) & ", " & $Nutral2) EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend You might want to consider using KODA GUI Creator to make your GUI because your 2 lable boxes are sorta overlapping. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center]
keen Posted October 20, 2006 Author Posted October 20, 2006 Now everything is messed up. Can you fix it? [center]Kesne's Bar & Grill[/center]
spyrorocks Posted October 20, 2006 Posted October 20, 2006 (edited) #include <GUIConstants.au3> GUICreate("My GUI", 750, 750) GUISetState (@SW_SHOW) GUICtrlCreateTab(1, 70, 750, 700) $tab1 = GUICtrlCreateTabItem("Lobby") GUICtrlCreateLabel ( "Welcome to the lobby. Please browse around at the different gardens or create your own my pressing the Create New Garden button. Have Fun.", 100, 100, 375, 100) $tab2 = GUICtrlCreateTabItem("Nutral Garden") GUICtrlCreateLabel ( "Welcome to the Nutral Garden.", 100, 100, 375, 100) $chaos1 = GUICtrlCreateLabel ( "Current Chaos In Garden: ChaCha", 100, 100, 375, 100) $tab3 = GUICtrlCreateTabItem("Dark Garden") GUICtrlCreateLabel ( "Welcome to the Dark Garden.", 100, 100, 375, 100) $Chaos2 = GUICtrlCreateLabel ( "Current Chaos In Garden: Shadow", 100, 100, 375, 100) $tab4 = GUICtrlCreateTabItem("Buy Chaos") $Nutral = GUICtrlCreateButton( "Buy Nutral Chao", 150, 150, 100, 40) $Dark = GUICtrlCreateButton("Buy Dark Chaio", 150, 150, 125, 40) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Select Case $msg = $Dark $Dark2 = InputBox ( "Name", "Please enter a name for your new dark chao:") if not @error then guictrlsetdata($chaos2, guictrlread($chaos2) & ", " & $dark2) Case $msg = $Nutral $Nutral2 = InputBox ( "Name", "Please enter a name for your new nutral chao:") if not @error then guictrlsetdata($chaos1, guictrlread($chaos1) & ", " & $Nutral2) EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend EDIT: Fixed. Hows that? Edited October 20, 2006 by spyrorocks [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center]
Moderators SmOke_N Posted October 20, 2006 Moderators Posted October 20, 2006 this better?Nope, still doesn't do what I want, can you try to fix it? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
keen Posted October 20, 2006 Author Posted October 20, 2006 Go ahead [center]Kesne's Bar & Grill[/center]
Paulie Posted October 20, 2006 Posted October 20, 2006 Go aheadWhat SmOKe_N is saying is that you are having spyro just waste his time stabbing randomly in the darkTry to explain what it is that the code isn't doing, you need to put a little effort into things as well.We'll be happy to help, but we hate guessing games
keen Posted October 20, 2006 Author Posted October 20, 2006 I want it to be able to have the buy chao option like in mine but have it work and get the words right. [center]Kesne's Bar & Grill[/center]
this-is-me Posted October 20, 2006 Posted October 20, 2006 Dude, you are too lazy to correct the spelling yourself? Do you really think that changing the spelling will break the functionality of the script? DUH Who else would I be?
keen Posted October 20, 2006 Author Posted October 20, 2006 What??????? [center]Kesne's Bar & Grill[/center]
this-is-me Posted October 20, 2006 Posted October 20, 2006 and get the words rightYou can use any editor and change the text to "get the words right". Who else would I be?
keen Posted October 22, 2006 Author Posted October 22, 2006 Bump. [center]Kesne's Bar & Grill[/center]
this-is-me Posted October 22, 2006 Posted October 22, 2006 (edited) BUMP ?!?!?!?! I can't believe that you actually bumped this!!! Are you seriosly an idiot? Have you read half of what we posted? I will make this easy for you:WE ARE NOT GOING TO DO THE WORK FOR YOU. IF YOU ARE TOO STUPID, LAZY OR OTHERWISE DISINCLINED TO GET ENOUGH UNDERSTANDING TO MAKE THE CODE WORK FOR YOURSELF THEN STOP ASKING!EDIT: Clarity Edited October 22, 2006 by this-is-me Who else would I be?
keen Posted October 22, 2006 Author Posted October 22, 2006 Well i need help. I cant get it to work. [center]Kesne's Bar & Grill[/center]
keen Posted October 22, 2006 Author Posted October 22, 2006 NVM i got it fixed. Thanks! [center]Kesne's Bar & Grill[/center]
this-is-me Posted October 22, 2006 Posted October 22, 2006 LOL, that is hilarious. I have no better ending to this saga than your own last remark. Who else would I be?
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