Jump to content
Sign in to follow this  
boyemillar

Click Button

Recommended Posts

boyemillar

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...

Share this post


Link to post
Share on other sites
Skrip

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 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]

Share this post


Link to post
Share on other sites
idusy

Arg, I was writing a whole nice 10 line script but Firestorm beat me to the posting.

Also, it's AutoIt.

Share this post


Link to post
Share on other sites
boyemillar

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...

Share this post


Link to post
Share on other sites
boyemillar

Sorry found it...

I'm not being very patient at this hour of the night time to turn in me thinks.

Share this post


Link to post
Share on other sites
idusy

By the way, ALWAYS look at the help file first. It can tell you everything you need to know.

Share this post


Link to post
Share on other sites
boyemillar

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.