Difference between revisions of "Phonebot developer's reference/Sample applications"
From EtherWiki
(→Services) |
(→Calculator) |
||
| Line 6: | Line 6: | ||
== Calculator == | == Calculator == | ||
| − | * Each number key contains the same script in its OnClick event by using [[Phonebot_developer%27s_reference/Script_language# | + | * Each number key contains the same script in its OnClick event by using [[Phonebot_developer%27s_reference/Script_language#The_this_keywords|the <code>this</code> keyword]]. |
== Notepad == | == Notepad == | ||
Revision as of 22:38, 26 November 2011
Contents
Agent
- Uses
application.open_application(name)to open external processes - Creates a user
databaseto save previous commands
Calculator
- Each number key contains the same script in its OnClick event by using the
thiskeyword.
Notepad
- Creates a user
databaseto save notes - Uses the
mapobject to sort notes - Uses
listnamed objects to store database records within the visual list
Services
- Contains several examples of each type of
service - The "Twitter feed" module uses an http service object to make a request to the Twitter search Web service. When the module's
OnServiceevent fires, thejsonobject is used to parse the event data and fill a list with the search results.
Time tracker
Keep track of how much time you spend on different tasks. Create task types to categorize tasks. Use timer to start and stop tasks. View a list of every task or a summary of how much time was spent on each task type.
- Creates two user
databases - Uses
datetimeobjects to manage timestamps and durations - The application contains application scoped variables
- The "Menu" module uses module scoped variables