Jump to content

Recommended Posts

Posted

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]

Posted

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.

Posted (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 by spyrorocks
  • Moderators
Posted

this better?

Nope, still doesn't do what I want, can you try to fix it? :lmao:

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.

Posted

Go ahead

What SmOKe_N is saying is that you are having spyro just waste his time stabbing randomly in the dark

Try 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

Posted

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]

Posted

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?
Posted (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 by this-is-me
Who else would I be?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...