using Windows Script Host from PureBasic

Just starting out? Need help? Post your questions and find answers here.
^OO^
User
User
Posts: 27
Joined: Mon Apr 28, 2003 5:58 am
Location: United Kingdom
Contact:

Post by ^OO^ »

Hi Ricardo,

This whole thing points up the reason there should be a parser in PB already!
Does Linux have an equivalent to WSH?
I want my super duper calculator to be as universal as possible.

Gahhh, it SO annoying!

Oh, Fred - Help us, please!
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Spider Monkey

Post by CoderLaureate »

http://www.mozilla.org/js/spidermonkey/ ... guide.html

Here is a way you may be able to embed JavaScript into your PB programs. It's a bit beyond my capabilities, but perhaps the PB Gurus can come up with some ideas.


-Jim
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Spider Monkey

Post by ricardo »

Hi,

I have done other experiment.

Now i found a way to call a dll from within vbs!!
Then i use this method to call a dll that i code in PB, so i can interact betwen my dll and a vbs script in a clean mode.

No more VB stuff, just a vbs code and my PB dll.

Take a look!

download: http://www.getafile.com/cgi-bin/merlot/ ... LTEST1.zip
ARGENTINA WORLD CHAMPION
someone_else
New User
New User
Posts: 4
Joined: Sun Jan 15, 2006 11:23 pm

Call PB DLL from WSH

Post by someone_else »

ricardo wrote:Hi,

I have done other experiment.

Now i found a way to call a dll from within vbs!!
Then i use this method to call a dll that i code in PB, so i can interact betwen my dll and a vbs script in a clean mode.

No more VB stuff, just a vbs code and my PB dll.

Take a look!

download: http://www.getafile.com/cgi-bin/merlot/ ... LTEST1.zip

I was trying to figure out how to call a PB DLL from a WindowsScript, and I came across this post, but the file is no longer available. Can anyone help?
...
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

someone_else
New User
New User
Posts: 4
Joined: Sun Jan 15, 2006 11:23 pm

...

Post by someone_else »

Thanks.
...
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

for those that need the source code for Dynawrap.dll here's the Windows95 version and the WindowsNT version also see Born's Windows Scripting Host
and How to use function in dll from vbs?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i'd say a parser in pb would be easy, wouldn't it? just wrap all pb commands and run them through an interpreter, what's the problem?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

@Jack, that parser is already translated and posted in Tips & tricks: viewtopic.php?t=15762
Post Reply