Graphical User Interface: Difference between revisions
m (Added InputBox wiki link, Sources section, description wiki Wikipedia) |
m (Added Tutorials section and Tabs wikilink.) |
||
Line 9: | Line 9: | ||
== 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 a GUI is a control. | ||
[[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. | ||
Line 15: | Line 15: | ||
[[InputBox]] An InputBox displays a popup box prompting the user to enter a string. | [[InputBox]] An InputBox displays a popup box prompting the user to enter a string. | ||
== | == Tutorials == | ||
[[Tabs]] | |||
== Sources == | == Sources == | ||
1. [http://en.wikipedia.org/wiki/Graphical_user_interface Graphical User Interface] | 1. [http://en.wikipedia.org/wiki/Graphical_user_interface Graphical User Interface] |
Revision as of 03:23, 1 August 2013
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.