Jump to content

please help me to understand GUI


Recommended Posts

so i have made couple of GUI's with buttons input boxes ini's messages stuff like that but i didnt really understand how does GUI work.

Specifically where do i start to type in $var's = what ever and where commands ?

As far as i understand from help file this is all i need to create GUI.

#include <GUIConstantsEx.au3>
GUI()
Func GUI()
    Local $GUI

    GUICreate("My GUI")
    GUISetState(@SW_SHOW)
    While 1
        $GUI= GUIGetMsg()
        If $GUI = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
EndFunc

But where do i put stuff like buttons input boxes if's and else's ? between what ?

I tried to create another function below but it would not show anything on GUI :D

I tried to use Select/EndSelect but was not sure where to put them :D

Please someone explain it to me with as simple as possible example and the difference using select or switch.

Thanks

Link to comment
Share on other sites

Thank you so much friend i didnt know what half of those tools do.

I only knew how to use Info tool but thats about it :D

Thanks allot

Ok now that i understand how GUI works (very basic) and where to put codes, is there another or same tool that will teach me how to use functions and where to put them ?

Give me an example of what do i need to create in KODA to demonstrate function's use

Thanks

Edited by lessstoopid
Link to comment
Share on other sites

This is the only thing you need to know, this starts a gui.

first you need to create a gui

GUICreate("My GUI")

then it need to know what state minimized normal etc

GUISetState(@SW_SHOW)

then you got the loop where gui commands can be placed

While 1
        $GUI= GUIGetMsg()
        If $GUI = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd

this var $GUI is just na name jou can call it everything link $dfdsfdsfds aslong you use a $ before the name, we use it to gather information, in this case

GUIGetMsg()
if gui got a message like a button or a click then you can gather information from that

#include <GUIConstantsEx.au3>


    GUICreate("My GUI")
    GUISetState(@SW_SHOW)
    While 1
        $GUI= GUIGetMsg()
        If $GUI = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
Link to comment
Share on other sites

Ok now that i understand how GUI works (very basic) and where to put codes, is there another or same tool that will teach me how to use functions and where to put them ?

Give me an example of what do i need to create in KODA to demonstrate function's use

Thanks

http://www.autoitscript.com/autoit3/docs/i...g_functions.htm

Link to comment
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
 Share

  • Recently Browsing   0 members

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