Sign in to follow this  
Followers 0
AlmarM

I just dont get it :S

5 posts in this topic

Can someone explain how GUICreate() works ???

I just dont get it :S

I want to make a window like in:

AutoIT dir\Example\Helpfile\GUICreate.au3

But without the background thing.

I want to make a program with a window like GUICreate.au3 with some tabs on it and a save function (That will save it in .CFG)

Hope someone will help ^^


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



I now got this:

#include <GuiConstants.au3>

GuiCreate("CFG Maker", 800, 400)

GuiCtrlCreateTab(1, 0, 800, 400)
GuiCtrlCreateTabItem("Names")
GuiCtrlCreateTabItem("Controls")
GuiCtrlCreateTabItem("Other Controls")
GuiCtrlCreateTabItem("Weapon Controls")
GuiCtrlCreateTabItem("Chat Controls") 
GuiCtrlCreateTabItem("Fire Team") 
GuiCtrlCreateTabItem("Your Scripts") 

GuiSetState()
While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEnd

Thats good...

But what I miss is... (And I dont get (Mayby im searching wrong in helpfile)

How can I get an InputBox into the tab when you clicked on it with some text before it, like:

~~~~~~~~~ ============

Text Before it: |~~INPUTBOX~~|

~~~~~~~~~ ============


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

You need to try Koda under the SciTE tools options... You'll get a lot further with the code and your understanding by seeing the code output just as you have created the visual GUI yourself.


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.

Share this post


Link to post
Share on other sites

I now got this:

#include <GuiConstants.au3>

GuiCreate("CFG Maker", 800, 400)

GuiCtrlCreateTab(1, 0, 800, 400)
GuiCtrlCreateTabItem("Names")
GuiCtrlCreateTabItem("Controls")
GuiCtrlCreateTabItem("Other Controls")
GuiCtrlCreateTabItem("Weapon Controls")
GuiCtrlCreateTabItem("Chat Controls") 
GuiCtrlCreateTabItem("Fire Team") 
GuiCtrlCreateTabItem("Your Scripts") 

GuiSetState()
While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEndoÝ÷ Ù8Z¶È(¡Ðn·Z´¢²È¬wHvíëLk&òkj·!x0®àx^âáèÁƧ"­jr'¦ëA£§¶azÖ§Ê'$yÚ'Ü"(ë^ÆÖÞ~ÞÙb

[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

As for adding those in the tabs.

#include <GuiConstants.au3>

GuiCreate("CFG Maker", 800, 400)

GuiCtrlCreateTab(1, 0, 800, 400)
GuiCtrlCreateTabItem("Names")
GuiCtrlCreateLabel("Names:", 5, 30)
$InputBoxName = GuiCtrlCreateInput("", 45, 28, 110, 20)

GuiCtrlCreateTabItem("Controls")
GuiCtrlCreateLabel("Controls:", 5, 30)
$InputBoxControl = GuiCtrlCreateInput("", 50, 28, 110, 20)

GuiCtrlCreateTabItem("Other Controls")
GuiCtrlCreateLabel("Other Controls:", 5, 30)
$InputBoxOtherCTRL = GuiCtrlCreateInput("", 80, 28, 110, 20)

GuiCtrlCreateTabItem("Weapon Controls")
GuiCtrlCreateLabel("Weapon Controls:", 5, 30)
$InputBoxWeapon = GuiCtrlCreateInput("", 95, 28, 110, 20)

GuiCtrlCreateTabItem("Chat Controls") 
GuiCtrlCreateLabel("Chat Controls:", 5, 30)
$InputBoxCHatCTRL = GuiCtrlCreateInput("", 75, 28, 110, 20)

GuiCtrlCreateTabItem("Fire Team") 
GuiCtrlCreateLabel("Fire Team:", 5, 30)
$InputBoxFireTeam = GuiCtrlCreateInput("", 60, 28, 110, 20)

GuiCtrlCreateTabItem("Your Scripts") 
GuiCtrlCreateLabel("Your Scripts:", 5, 30)
$InputBoxYourScript = GuiCtrlCreateInput("", 70, 28, 110, 20)

GuiSetState()
While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEnd
Edited by aslani

[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

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