Building Keys For Speedlist - Travelport

Building Keys For Speedlist - Travelport

Building Keys For Speedlist 1 By Adrian Gardener Date 9 July 2012 Getting Started Open Speedlist by clicking Right click the blank area to bring up the context menu Click Create New Key

2 New Key Interface Key Name Key Description Key Shortcut Key Function (code window) Key Function composers Code window font selector Save button Cancel (close without saving) button 3

A simple key to start with Give the Key a name and description Type a Galileo command *R Click Send and then OK This adds Click Save

4 Running the key 5 Click the key Simple Test to run it Clicking the key transmits the Galileo command to the core by transmitting it via the active window. The SOM is always written first by Speed list to ensure no existing text is wrongly entered. SEND and SENDEX Send output to current window option sends the command proceeding it

to the active Focalpoint window. Send output to selected window option sends the output to window number x as below: Clears popup message box Sends to FP window 1 Sends to FP window 2 Sends to FP window 3 Sends to FP window 4 Sends to a popup message box Sends to Smartpoint (note currently space tokenized) 6 Prompt Box

Click the Prompt button to open the prompt box composer. Enter text to prompt the user Enter an existing or new variable name This will add the following to the code window: Breaking it down: ? = prompt box Please entre a Galileo Command = user prompt @=Variable GalCommand = Variable name. 7 Prompt Box

The Exit all on cancel checkbox aborts the whole key if the user presses the Cancel, no further processing is carried out. The "Optional prompt bypass" checkbox, means that if the user presses the cancel button the key will continue to run Instruction out side of the brackets. [] [<@tecommand>]

You can select one of the above options only. 8 Example Simple Prompt Box Key 9 This key example builds on the two items covered thus far and introduces you to the use of variables. Key functional description Prompt user to enter a host command and send it to the active window.

Simple Prompt Key explained The key should look like the following: <@TECommand> 10 We know ?Enter host Command and click OK means prompt use and the text to prompt with. What ever is entered is stored in the variable @TECommand.

On the next line we use TECommand thus <@TECommand> whenever a variable is seen its value is substituted in its place. So if a user types *R it is assigned to TECommand and used by <@TECommand>. We know transmits what proceeds it to the core on the active window so: <@TECommand> transmits *R in the above example. What happens if Cancel is clicked? Group 11 Group allows you to combine messages such as Prompt and Choice. To use group manual surround the messages with

Example > Variables Variables are temporary stores of information as we saw in the last example. It is good practice to have variables defined at the beginning of a Key. In the previous example clicking cancel sent a blank entry to the host if wanted a default value we would have declared the variable TECommand and assigned a value to it at the top of the key, which is good practice.

<@TECommand,string,*R> <@TECommand> RESETVAR RESETVAR allows you reset a variable to a new value as below: Variable types in Speed keys are String (the default) and number. 12 Comments Comments allow you explain what each section of the key does. Comments are very useful to others and the author who returns to the key sometime later and I would suggest they are used as the

key is built. <*This section gets the user data*> <*@TECommand is used to store the Terminal Emulation Command throughout this key*> <@TECommand,string,> <*The following only sends if the user does not cancel the prompt*> [<@TECommand>] 13 Choose Prompt The Choose Prompt box allows you to present a list of choices to the user for their selection. The content can be static or dynamic by using variables.

Prompt The text that is shown in the title bar Keyword and Description displayed to the user to assist with selection from the drop down menu. Action What the selection does, possibilities include: Sending to the host e.g. *R Calling other SpeedKeys Multiple Statements

14 Choose Prompt Use as repeatuntil Causes a choice popup to stay open when a key is run until the user clicks OK or Cancel. An extra button is shown "Apply" which allows the user to keep choosing and applying the action. Assign selected keyword to variable The selection made by the user records the action in a variable for use later if required. 15

Choose Prompt The code added by the Prompt box looks like the following: Selection 1::one<*R>Selection 2::Two <*MCO>> Breaking it down: Text for the title bar Selection 1 The text to display, Key word. :: the separator.

One the description appears as (One) next the to key word. <*R> Action if the key is selected. The sequence is then selected for the next key and finally closed by > If the Assign to Variable option is selected [email protected] is added before the closing > If the repeat until option is selected the key type is replaced with Selection 1:: This is the one to pick <*R>Selection 2::Two <*MCO>>

The above could be rewritten as: <@myPrompt1,string, This is the one to pick> Selection 1::<@myPrompt1><*R>Selection 2::Two <*MCO>> Note: variables cannot be used in the Keyword field. 17 Speed Key 18 Speed key This allows you to call a key from within a key. Simply select a key from the dropdown list The following code is added <%keyName>

Today 19 Clicking Today places in the code, the date entered is in the format ddMMM i.e. 14DEC GET & GETEX The GET key composer allows the key to read an area of the screen. The Focalpoint screen is a matrix of 16 rows by 64 characters with any white space returned as a space. Smartpoint lines are padded to 64 characters but the number of rows is variable.

Window (if selected uses GETEX) Allows the selection of the input target: 1,2,3,4 = Focalpoint. 6 = Smartpoint. No selection = GET from active window. Row = Row to read from. Column = Start position on row. Length = how many characters to read. Variable = location to save the data to. 20 GET The following key redisplays the booking file and reads the RecLoc <*Display the booking*>

*R <*GET the Recloc*> <*Enter the Notepad*> NP.Recloc <@tt> Breaking the GET down: = close of GET key For GETEX an additional parameter is added before the row number thus: this indicates the window number to read from.

21 SET & SETEX SET reads text from the clipboard. Clicking SET adds to the code Example Write a key with the following copy (Ctrl+C) some text from Word or another application and run the key. The text that is copied is then transmitted to the host. SETEX sets the cursor position and text or text from a variable

following it. 22 If.. Then.. Else IF THEN ELSE conditional branching is standard programing practice and allows for very powerful keys to be built. IF Select first Conditional shows a list of variables previously declared in the key Select operation allows the selection of: = equals != Not equals

For all types and additionally for number types only < Less than > Greater than Select Second Conditional shows a list of variables previously declared in the key and gives the option to enter a constant. Then Allows a code block to be typed which is executed if the condition is true. Else Allows a code block to be typed that is executed if the condition is false. 23 Example IF then Else <@n1,number,0> <@n2,number,0>

>ELSE>> In the above example the IF is always true IF(n1,=,n2) so the THEN code block is executed. THEN If it was not true the Else code block would be executed ELSE 24 Execute The Execute Key composer allows you to run any external exe. Program sets the path and application name to run this should be set by clicking the Find Button to ensure no typos are made!

Arguments any command line arguments that need passing to the executable. 25 Clear 26 Clears the active FP window

Recently Viewed Presentations

  • Volcanoes and Igneous Activity Earth - Chapter 4

    Volcanoes and Igneous Activity Earth - Chapter 4

    Chapter 12 Geologic Time Sedimentary Rocks: Rocks formed from the weathered products of preexisting rocks that have been transported, deposited, compacted, and cemented.
  • Introduction to Culinary Arts: Presentations Unit 3, Continued

    Introduction to Culinary Arts: Presentations Unit 3, Continued

    Introduction to Culinary Arts: Presentations Unit 3, Continued Grains, Legumes, & Pasta Sanitation 13. 14. 15. 16. 1. 2. 3. 4. Kitchen Safety Stocks, Sauces, & Soups

    El Mohan programa después de clases comenzará la primera semana de septiembre. El nuevo después de los ayudantes de la escuela . Comenzará a trabajar la semana del 18 de agosto . Se ha comprado un IPAD para cada estudiante.
  • Unit Based Champions Infection Prevention eBug Bytes

    Unit Based Champions Infection Prevention eBug Bytes

    Unit Based Champions Infection Prevention eBug Bytes September 2012 New 'SARS-like' respiratory illness identified The World Health Organization has issued an international alert after the discovery of a new respiratory illness similar to the SARS virus which swept the world...
  • CS61C - Lecture 13 -

    CS61C - Lecture 13 -

    Uses for State Elements. As a place to store values for some indeterminate amount of time: Register files (like $1-$31 on the MIPS) Memory (caches, and main memory)
  • Class Announcements  Homework coming around  Average in low

    Class Announcements Homework coming around Average in low

    Starbucks Stock Price SWOT Analysis The BCG Growth-Share Matrix Industry Analysis Slide 14 McDonald's Commercials Slide 16 Slide 17 Slide 18 SBUX vs. MCD Change In Stock Price Future of Starbucks Product/Market Expansion Grid Kit Kat Slide 23 Thursday: Analyzing...
  • GEF support for SNC

    GEF support for SNC

    GEF support for SNC Mauritius, April 2003 Process GEF Council meeting (May 2003) for authority for expedited support Operational guidelines Funding available Relation to earlier/ongoing work Assessment of work done under first NC and top-ups Inputs from other projects (national...
  • Planes of Motion / Directional Movement Anatomical Terms

    Planes of Motion / Directional Movement Anatomical Terms

    Anatomical Position . Anatomical Position - Standing upright, feet together or slightly apart, arms hanging but not touching the sides, with palms forward and thumbs pointing out. Why? The anatomical position is important because it's the reference for all directional...