View Single Post
  #6 (permalink)  
Old 06-26-2009, 06:19 PM
jason917's Avatar
jason917
PPCGeeks Regular
Offline
Threadstarter
Location: Southern Cali
 
Join Date: Jun 2009
Posts: 171
Reputation: 210
jason917 is keeping up the good workjason917 is keeping up the good workjason917 is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Sashimi and the Omnia

This is straight out of the Sashimi documentation on auto files. Little more in depth than my above explanation

AUTO FILES

In addition to the tandem file features listed above, SASHIMI allows for a special tandem AUTO file for use with CABs.

The AUTO file is a specialized ini file that can be customized to automate additional interaction needed for a CAB's proper installation.
A tandem AUTO file should be created in the same directory as the CAB with the same name and an extension of ".auto".

NOTE 1: An AUTO file can only be used with CAB files during the Auto Install phase and should not be used within the \SC or \ASL directories.

For example, to automate SuperText.CAB create an AUTO file named SuperText.auto in the same directory.

A sample AUTO file is located at \SASHIMI\Program\help\sample-file.auto
This file should be used as the template for ALL AUTO files.

To use:
  1. Copy the AUTO file to the CAB's location
  2. Rename it to correspond to the associated .CAB
  3. Edit as below:
The contents of this file are in Mortscript, but the only sections that should need modification are highlighted below:
[AutoFile]
InstallLocation=0
WindowTitle="Super Task Assistant"

  • The first section header [AutoFile] should not be changed as it is hard coded into SASHIMI.
    • InstallLocation = Where the CAB file should be installed. Possible values are 0 | 1 | 2 (0 = Main Device Memory, 1 = SC Location, 2 = ASL Location)
    • WindowTitle = Should be set to the title dialog (Window name) that the CAB presents during installation. This field is case sensitive.
[ScriptCommands]
1=SendLeftSoft
2=Sleep(5000)
3=SendCR

  • The second section header [ScriptCommands] should not be changed as it is hard coded into SASHIMI.
    • 1,2,3,4,etc = The key commands needed to interact with the CAB window. Each command should be entered on a separate line.
The above example would be an AUTO file for a CAB that presented an install window called "Super Task Assistant." The AUTO file would issue a left soft key command, wait 5 seconds, and then issue an enter command. Each command of the KeyStrokes section is actually entered into a separate line of a temporary script file which is executed alongside the CAB install. Although any MortScript commands can be added to these lines, it is recommended that the standard MortScript "Send" commands be used. An sampling of these commands are:
CR - Carriage return
Tab - Tabulator
Esc - Escape
Space - Space
Backspace - Remove character left to the cursor
Delete - Remove the character right to the cursor
Insert - Ins. (usually toggles between overwrite and insert mode)
Up/Down/Left/Right - Direction pad to the corresponding direction
Home - Home, to the beginning of the line or document
End - End, the the end of the line or document
PageUp/PageDown - Page up / down
LeftSoft/RightSoft - Display buttons
For additional information on how to send keys and automate screen text, please refer to the MortScript documentation.
__________________
-Jason

Proud to be.... a FLASHAHOLIC
This post has been thanked 2 times.