Sign in to follow this  
Followers 0
keen

Some Help

16 posts in this topic

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]

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Now everything is messed up. Can you fix it?


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

this better?

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

Go ahead


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

What???????


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

and get the words right

You can use any editor and change the text to "get the words right".

Who else would I be?

Share this post


Link to post
Share on other sites

Bump.


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

#13 ·  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?

Share this post


Link to post
Share on other sites

Well i need help. I cant get it to work.


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

NVM i got it fixed. Thanks!


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

LOL, that is hilarious. I have no better ending to this saga than your own last remark.


Who else would I be?

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