Re: I am making MORE!!! prgress with GenX!!!!
"Shawn A. Van Ness" <[email protected]> Fri, 18 Oct 2002 00:57:40 -0700
| Newsgroups | gmane.comp.windows.devel.genx |
|---|---|
| Message-ID | <001901c2767c$231cafa0$0d00a8c0@shawnvlaptop> |
The thing about learning script is this: you have to distinguish =
between the language features of VB/JScript, the features exposed by the =
hosting environment, and the features available to you in COM objects.
Unfortunately, most of the docs and sample code you'll find won't do =
much to help make that distinction clear...
In this case, GenX is the script host (not IE, not WSH). But we've =
tried to expose an object model that will be familiar to users of both =
IE and WSH... think: wizard.alert('hi') instead of window.alert('hi').
And you can get to a lot of WSH functionality, for example, via =
JScript's "new ActiveXObject" keyword (or VBS's CreateObject function). =
Here's how to get at the environment vars:
http://msdn.microsoft.com/library/en-us/script56/html/wsobjwshenvironment=
.asp
Other popular COM objects, useful in GenX wizards: =20
Scripting.FileSystemObject
Microsoft.XMLDOM
TLI.tliApplication
-S
----- Original Message -----=20
From: "David O. Hansen" <[email protected]>
Sent: Thursday, October 17, 2002 08:03
Subject: I am making MORE!!! prgress with GenX!!!!
> Other GenX Users
>=20
> First, thanks very, very much to Chris and Shawn for the quick =
response
> to my first message a couple of days ago.
>=20
> I have made a lot of progress, but I still working on my commandline
> Genx code generator. I will probably get to task of making it a a
> Wizard this weekend, I hope. Based on the advice from Chris and Shawn, =
I
> expect that to be fairly straightforward.
>=20
> While working on the command line code I ran into a couple of =
problems.
>=20
> First, is there a way to put up a message box from JScript while =
running
> in XCode?
>=20
> And, second, is there a way to get environment variables into GenX?
>=20
>=20
> The issue with both of these may be the same. I couldn't get a WScript
> object running in XCode.
>=20
>=20
>=20
> I will certainly appreciate any advice on either of these.
>=20
>=20
>=20
> And, thanks again for the help earlier.
>=20
>=20
>=20
> David O. Hansen
>=20
> This is a private list, meaning only subscribers may post to the list =
or view
> the online archives. Subscribers can read messages from the Gen<X> =
archive or
> unsubscribe from Gen<X> at http://discuss.develop.com/genx.html.
>
This is a private list, meaning only subscribers may post to the list or view
the online archives. Subscribers can read messages from the Gen<X> archive or
unsubscribe from Gen<X> at http://discuss.develop.com/genx.html.