Sign in to follow this  
Followers 0
microbious

please help me to understand GUI

6 posts in this topic

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

Share this post


Link to post
Share on other sites



Use Koda Designer to make the commands to setup your GUI. Then you can check them in a message processing loop like the one you posted.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks, finding the right place for commans/$vars becomes much more clear to me.

THanks

Share this post


Link to post
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

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