Graphical User Interface

From AutoIt Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article is a stub, please expand on it if you have knowledge on the subject.

A graphical user interface (GUI) is a type of user interface that allows users to interact with electronic devices through graphical icons and visual indicators such as secondary notation, as opposed to text-based interfaces, typed command labels or text navigation. AutoIt can be used to create GUIs which consist of simple controls.

Concepts

A GUI consists of one or more windows and each window contains one or more controls. GUIs are "event driven" which means you react to events - like a button that is clicked. You spend most of your time idling and waiting for an event to happen - this is a little different to a normal script where you are in control of what happens and when! Think of it as waiting by the door for the postman - you sit there until a letter pops through the postbox and then you look at the letters and decide what to do with them - this is exactly how GUIs work - you wait for the postman to come to you.

Of course, you may choose to do other tasks while the GUI is active - for example you might use the GUI functions to create an elaborate progress box that you update while your script performs complex actions.

Controls

Controls are components of GUI. Whatever you can click on in a GUI is a control.

Label A Label is a simple, plain piece of text appearing in a GUI.

InputBox An InputBox displays a popup box prompting the user to enter a string.

Tutorials

Tabs

Sources

1. Graphical User Interface