Generate AutoIT GUI and Assign Actions to Form Elements

This is a quick code to create a BUTTON , CHECKBOX and COMBO BOX and assign some action to them using “MessageLoop Format”.

The general message loop format is

 

Action is put into the WHILE LOOP using the SWITCH and CASE STATEMENT.

The GUIGetMsg() function polls the GUI to see if any events have occurred. If an event has occurred it is assigned to the variable $nMsg and the status of the variable is checked in the SWITCH – CASE STATEMENT.

The script executes and displays the appropriate Message Box when the value in the  variable in the CASE STATEMENT matches the value stored in the $nMsg variable

The GUI resulting from the code below is generated using KodaForm designer which can be downloaded from here: Koda form designer

 

Result from the code above can been seen as follows:

koda-gui-autoit

 

Want more information like this?

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *