Jump to content

Recommended Posts

Posted

Hi everybody, I'm Newbie. I want to make a part of the script run again when i press a button. Please tell me how to do that.

Thank For your help!

Posted

Hi @sichumane, and welcome to the AutoIt forums :welcome:
Take a look at GUICtrlCreateButton() to create a button on your GUI and associate it to a function, in which you set what you want to run again on the button press.

There are two ways to intercept the click on a button (and on other controls as well): Message Loop and OnEvent mode; take a look at them in the Help file and come back with your script if you need any help :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...