PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Script interpreter

Hi!

I've written in Evc a Script interpreter.
It's powerd by VBScript or Jscript (it uses
the script-dll from PIE, so it is fully
compatible with VB and Jscript).

At the moment in can read a textfile and
parse it.
It was very simple to make (i made it in
about 30 minutes).
Creating and exporting functions in C++ for
it is also very easy!
It should also be possible to let
it runtime link to any dll on the PocketPC,
thus letting other developers create DLL's for it.

Interested?
I am not what you would call a developer (in fact I am not what anyone call a developer), but it does sound interesting. Could you go into detail about the possibilities?
kaiton · 31 Jul 2002, 08:35 UTC — in detail
Let me explain it in detail:

It is a script parser powered by the same
script engine used by PocketExplorer.
Therefore it is completely compatible with
JScript en VBScript.
If you don't know what JScript is:

JScript is Microsoft 's extended implementation of ECMAScript (ECMA262), an international standard based on the Netscape 's JavaScript and Microsoft's JScript languages. JScript is implemented as a Windows Script engine. This means that it can be "plugged in" to any application that supports Windows Script, such as Internet Explorer, Active Server Pages, and Windows Script Host.


And VBScript

Short for Visual Basic Scripting Edition, a scripting language developed by Microsoft and supported by Microsoft's Internet Explorer Web browser. VBScript is based on the Visual Basic programming language, but is much simpler. In many ways, it is similar to JavaScript. It enables Web authors to include interactive controls, such as buttons and scrollbars, on their Web pages.


As shown above,JScript is implemented as a Windows Script engine. This means that it can be "plugged in" to any application that supports Windows Script.
The application i've written is such an application.

Just like Internet Explorer it can expose functions
to the JScript parser.

[Example mode ]
Internet explorer exposes all HTML elements to
the Jscript engine. A J-Script can access
those elements and modify/read etc them.

My application exposes other things, like
inputboxes, messageboxes etc. It can
also expose functions(written in evc) to the
JScript engine. Things like accessing the
Outlook ObjectModel for accessing all your
appointements, contacts, todo, calendar etc.
Or a procedure that can handle file reading/writing.
Or a procedure that can acces the registry.

[/example mode]

Not yet implemented but a great idea:
Cause C++ can handle runtime linked DLL's it
is also possible to link to dll's in your script.
That way other developers could add functionality
to the program. Things like User interface,
accessing GAPI, etc should than be possible.

Let me know what you think about it.

Kaiton
¿Could you post some example, source code or documentation about how to make it?

Thanks
Hi!

If you are wondering whats possible with
the JScript engine look at

http://forums.pocketmatrix.com/viewtopic.php?t=6884

and test the software.