Graphical User Interface: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
m (→‎Controls: When will I learn to use preview?)
m (Added InputBox wiki link, Sources section, description wiki Wikipedia)
Line 1: Line 1:
{{stub}}
{{stub}}


'''GUI''' stands for Graphical User Interface. AutoIt can create GUIs that consist of simple controls.
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 ==
== 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.  
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.  
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 ==
'''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.


[[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.
 
[[InputBox]] An InputBox displays a popup box prompting the user to enter a string.


== Scripts ==
== Scripts ==
In this section some of GUI examples will be listed.
 
== Sources ==
1. [http://en.wikipedia.org/wiki/Graphical_user_interface Graphical User Interface]

Revision as of 03:20, 1 August 2013

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 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.

Scripts

Sources

1. Graphical User Interface