Even when the title reads PRS-505 this Simulator can be used to test Sripts for all Sony readers. If testing for a touch-device, you can now switch the skin from 505 to 600/350/650 and to 950
As per 2011-05-09
Code for FSK Test-Environment for Autorun Applications under MS-Windows is moved to repository apps, kindly provided by kartu, at his prs+ goolgecode project page.
A, very basic, Wiki-page was created, too.
To get started I would recommend to read at least Post #6, #24 and #31 in this thread.
Original Text, kept for reference:
While more playing around, then really knowing what I'm doing, I was able to modify the Sony-Firmware-Updater for Windows in a way, that three and a half (3 1/2) of six (6) to me known AUTORUN-Applications are working in a Windows-Environment.
This was done mainly to have a test-environment for forthcoming AUTORUN-Apps. As it is annoying to copy from and to and connect and disconnect the reader form and to USB in sequence.
Prerequisite:
Windows OS capable to run the original Sony-Firmware-Updater 1.1.00.18040
a vertical screen-resulution equal or better then 1024 px.
Extract the attached archive to any folder and start "FSK Starter.exe" to start the SUDOKU-Game.
Use KILL-FSK.BAT to cancel the program if it does not start up after a change in *.XML or *.JS code.
Spoiler:
The AUTORUN-Application to start is set via "FSK Test\eBookSim\scripts\eBookSimMain.xml"
[EDIT]
Obsolete, newer versions use menu-sources
[\EDIT]
Code:
<panel id="EINK" skin="panel" left="81" top="37" width="600" height="800"> //E-Ink Display 600x800
<!-- Put your AUTORUN-Application.xml here -->
<view id="VIEW" href="sudoku/sudoku.xml" left="0" top="0" right="0" bottom="0"/> //-->
<!--view id="VIEW" href="mahjong/mahjong.xml" left="0" top="0" right="0" bottom="0"/> //-->
<!--view id="VIEW" href="fivballs/fiveballs.xml" left="0" top="0" right="0" bottom="0"/> //-->
<!--view id="VIEW" href="dict/dictionary.xml" left="0" top="0" right="0" bottom="0"/> //-->
<!--view id="VIEW" href="Calc/calculator.xml" left="0" top="0" right="0" bottom="0"/> //-->
</panel>
The AUTORUN.XML files from the PRS-505 had to be modified at these four (4) points:
1) append the <document> Tag with id="DOCUMENT" so that it read like:
Code:
<document xmlns="http://www.kinoma.com/fskin/1" id="DOCUMENT">
2) change the function "loadScript" to use the correct path for the simulator
Code:
<function id="loadScript">
..
// var path = kbook.autoRunRoot.path; // restore this before use on PRS-Device
var path = this.getBaseURI().slice(7); // patch for use in simulator
..
3) if doDigit is used, chang it this way:
[Edit 2010-06-05] this is no longer neccessary, use the new "eBookSimMain.xml" in the attachment
Code:
<function id="doDigit" params="part">
//this.drawDigit(part.key) // restore this for PRS
this.drawDigit(part) // use this on PC
</function>
As I can't handle these "part"-thing at the moment
Issue resolved thanks to m-land
[/Edit]
4) replace all occurrences of <kbookLable> with a simple <lable>-Tag
[Edit 26.11.2010]
5) if you are using the X/Y-property of a GUI-item (eg. sprite or button) in the Sim please not that there is a offset of 81/37 pixel difference between test environment and the reader.
This is the offset of EINK (the output-panel) in Sim to the application window.
<panel id="EINK" skin="panel" left="81" top="37" width="600" height="800">
So somehow x,y aren't related to the parent group, but to the application-window.
[/Edit]
Fully working are the three games, Sudoku (İMikhail Sharonov), Fiveballs and Mahjong (by clemenseken)
DictoLauncher has a working UI, the shell-calls and therewith the actual searching are disabled, also there are some modification in the code, e.g. use of a additional <text> tag to display the results.
Scrolling "should" be easy, as "text" is a descendant of "scroller" and scroller has the methodes .scrollBy(dx,dy), .scrollLine(axis,sing) and .scrollPage(axis, sign) (as defined in fskin)
But unfortunatly this mehtods are "not scriptable", so direct calling of this.textlines.scrollPage(true,1) didn't work :-(
On the PRS-505 in a prs+ environment it should be possible to use var scrollPage=getSoValue(this.textlines,"scrollPage") and then scrollPage.call(true,1);
kartu's prs+installer didn't work in the simulated enviroment, because of heavy use of kbook-related functions
and I didn't check igorsk Universal-Flasher in the simulator.
Next to expect is a scientific-calculator, see screenshots - released
here
Attachments removed, moved to repository apps