View Single Post
Old 06-01-2010, 02:26 PM   #20
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
Quote:
Originally Posted by m-land View Post
...
Is there any reason why not to do it this way?
Not at all!

As I wrote earlier I'm a old-style Turbo-Pascal, Delphi Coder and IMHO fairly skilled reverse engineer. But I never ever really used (heavy) OOP.

I justed tried to define a part object, but with no luck, so the work-around was born.

As I don't like to retype code over and over again, we can shorten this by intruduce:
Code:
	<code>
		<function id="numkey" params="num">
				var part=new Object;
				part.key=num;
				this.EINK.VIEW.DOCUMENT.AUTORUN_GROUP.AUTORUN.bubble("doDigit",part);
		</function>    
	</code>
and
Code:
	<button id="NUM_BUTTON1" active="true" text="1" left="715" top="75" width="30" height="60" visible="false">
	<code>
			<function id="click">	 
   				this.bubble("numkey",1);
			</function>
		</code>		
	</button>
BTW: you may have noticed the code to call "PRSPlus.js" ?

That is one thing which I really would like to have in the Sim.
And the best thing is, PRSPlus.js is executed and the CORE Scripts are loaded! (PRSPlus.log is created, CORE dumps fine)
But where the heck is this CORE Instance created, how can it be called from any other script?
I will attach a ZIP file with the actually used sources, if you will have a look?
(You will have to set the path-variables manually by now)

Any help / suggestions are highly appreciated.
Attached Files
File Type: zip Sim-PRSPlus.zip (14.8 KB, 505 views)

Last edited by Mark Nord; 06-01-2010 at 02:48 PM.
Mark Nord is offline   Reply With Quote