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

  • Add Action to AutoIt Message Box – Catching the Message Box Returned Value

    Adding actions to messages boxes Message Boxes, like most functions, return one of these values and their respective meanings Button Pressed Return Values: OK = $IDOK (1) CANCEL  = $IDCANCEL (2) ABORT = $IDABORT (3) RETRY  = $IDRETRY (4) IGNORE  = $IDIGNORE (5) YES =  $IDYES (6) NO =  $IDNO (7) CONTINUE **  = $IDCONTINUE (11) TRY…

  • |

    AutoIT simple tutorial on LOOPS – IF, FOR LOOP, WHILE LOOP, DO LOOP

    Autoit is a very simple yet powerful tool to automate simple scripts. Today, we are looking at LOOPS. Credit to 403forbidden403. You can check her on Youtbue

    This is the resulting message box:

    And the message box will be same as above

    The result of the DO LOOP

    Result of WHILE LOOP…

  • Python PyQt Gui Basics Button Window PyQt4 Pt1

    This is just some quick scrap notes on the basics of Python GUI building using PyQt. In [1]:

     

      the ‘init‘ statements runs anytime we call call the Window class we have created and it runs all the code in the Window class the _init__ method calls the super constructor and then sets…

Leave a Reply

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