View Single Post
Old 07-25-2010, 11:27 AM   #24
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
New code as per 2010-07-25

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]
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	512
Size:	138.5 KB
ID:	55682  

Last edited by Mark Nord; 12-06-2010 at 02:36 AM.
Mark Nord is offline   Reply With Quote