AlmarM Posted September 20, 2007 Posted September 20, 2007 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.
AlmarM Posted September 20, 2007 Author Posted September 20, 2007 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.
Moderators SmOke_N Posted September 20, 2007 Moderators Posted September 20, 2007 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.
aslani Posted September 20, 2007 Posted September 20, 2007 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
aslani Posted September 20, 2007 Posted September 20, 2007 (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 September 20, 2007 by aslani [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
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