Hi there!
I improved the code of the simulator somewhat by integrating all of m-lands great suggestions, as well as integrated right-mouse-click-handling for the "doHold" functionality and finally managed to load PRS+Core functions.
This requires a slightly different way to call the Apps. Pls see in the code.
New SimMenu is provided to choose all available Apps.
Exiting the Apps via standard-functionality is possible.
Furthermore a system-menu with about- and help-dialoge is integrated.
[Edit 2010-08-11 BTW: dialogs can be used on the PRS 505 as well, but you have to define a dialog-skin. And a keyboard-handler to close them [/Edit]
Check the Sudoku-Code, I was able to do the programm with only one (1) set of SPRITES!
And last but not least a finding about the visibility of FSK-functions to ECMA-Scripts:
As there is no fskcache in the WIN version there is no way to get Core.system.getSoValue working with a unpached fskin.dll
By reading fskin.dmp you find that scriptable object methodes are defined with putID('name',0C,04) while hidden to ECMA-Script methodes are defined with putID('name',0C,0C). These methodes could only be called by *.xso/*.xsb code or via getSoValue.
As a solution I provide a slightly patched fskin.dll and modified Core-Script with this Simulator, where some hidden methodes are exposed to ECMA-Script.
This is mainly scoller.scrollPage() used to scroll the Tracelog automatically.
While developing with the Simulator you should use a unpatched fskin.dll (e.g. from the firmware-updater, or the reader library) to check which mehtodes are scriptable (or consult the defsk *.dmp files) and change then to the patched DLL.
[Edit 2010-08-11]
I just figured out, that on a PC with no Sony-Reader-Library installed, two (2) DLLs are missing. I attached them as "support_dll.zip"
[/Edit]
[Edit 2010-12-05]
Attachments removed, see latest code in post #59
[/Edit]