Jump to content

Click Button


Recommended Posts

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

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]

Link to comment
Share on other sites

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

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