microbious Posted June 10, 2009 Share Posted June 10, 2009 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 I tried to use Select/EndSelect but was not sure where to put them 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 More sharing options...
Inverted Posted June 10, 2009 Share Posted June 10, 2009 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. Link to comment Share on other sites More sharing options...
microbious Posted June 10, 2009 Author Share Posted June 10, 2009 (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 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 June 10, 2009 by lessstoopid Link to comment Share on other sites More sharing options...
infernothebest Posted June 10, 2009 Share Posted June 10, 2009 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 Apple Keybord shortcuts for XP Link to comment Share on other sites More sharing options...
microbious Posted June 10, 2009 Author Share Posted June 10, 2009 Thanks, finding the right place for commans/$vars becomes much more clear to me. THanks Link to comment Share on other sites More sharing options...
Zedna Posted June 10, 2009 Share Posted June 10, 2009 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 useThankshttp://www.autoitscript.com/autoit3/docs/i...g_functions.htm Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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