boyemillar Posted July 13, 2007 Share Posted July 13, 2007 Hi i'm new to AutoIT and wondered if someone could give me a few pointers to get started... I need to create a button or a series of buttons which when clicked will open a batch or .exe file. Not really sure how to do any of this (well i can create a button but need it to do the other stuff) Cheerz for any help given... Link to comment Share on other sites More sharing options...
Skrip Posted July 13, 2007 Share Posted July 13, 2007 (edited) Use Koda to build your GUI, with how ever many buttons you want. Then do something like this. ;you'll see this if you use Koda While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1; Your button Run("Your batch") Case $Button2; Second button Run("Batch2") WEnd Edited July 13, 2007 by Firestorm [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
idusy Posted July 13, 2007 Share Posted July 13, 2007 Arg, I was writing a whole nice 10 line script but Firestorm beat me to the posting. Also, it's AutoIt. Link to comment Share on other sites More sharing options...
boyemillar Posted July 13, 2007 Author Share Posted July 13, 2007 Cheerz for that i'll be giving that a try in the morning... I've given myself square eyes by trawling the net looking for a way to do it... Link to comment Share on other sites More sharing options...
boyemillar Posted July 13, 2007 Author Share Posted July 13, 2007 What is KODA ? Link to comment Share on other sites More sharing options...
idusy Posted July 13, 2007 Share Posted July 13, 2007 What is KODA ?Program to design GUI.http://www.autoitscript.com/forum/index.php?showtopic=32299 Link to comment Share on other sites More sharing options...
boyemillar Posted July 13, 2007 Author Share Posted July 13, 2007 Sorry found it... I'm not being very patient at this hour of the night time to turn in me thinks. Link to comment Share on other sites More sharing options...
idusy Posted July 13, 2007 Share Posted July 13, 2007 By the way, ALWAYS look at the help file first. It can tell you everything you need to know. Link to comment Share on other sites More sharing options...
boyemillar Posted July 13, 2007 Author Share Posted July 13, 2007 Hi Folks... Got it al working thanks for the KODA info... After a bit of searching around i have it doing almost everything i need but i would like to get the GUI to auto close after a selection has been made by clicking the button. 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