Graphical User Interface: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
m (→‎Controls: Added link to label.)
m (→‎Controls: When will I learn to use preview?)
Line 14: Line 14:
== Controls ==
== Controls ==
'''Controls''' are components of GUI. Whatever you can click on in GUI is a control.
'''Controls''' are components of GUI. Whatever you can click on in GUI is a control.
[List of controls coming soon]
 
[[Label]] A label is a simple, plain piece of text appearing in a GUI.
[[Label]] A label is a simple, plain piece of text appearing in a GUI.


== Scripts ==
== Scripts ==
In this section some of GUI examples will be listed.
In this section some of GUI examples will be listed.

Revision as of 03:12, 1 August 2013

This article is a stub, please expand on it if you have knowledge on the subject.

GUI stands for Graphical User Interface. AutoIt can create GUIs that 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.

[From AutoIt HelpFile]


Controls

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

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

Scripts

In this section some of GUI examples will be listed.