OK, harder question. Assuming I can make dll calls from VBScript (which I
can with a wrapper OCX I have), can I access Win32:GUI directly (no Perl
script)? By the way, this would be a standalone WSH script, not a web/HTML
embedded script.
The server I need to work on does not have Perl and probably never will
(long story, no point in retelling). Visual Basic would be the obvious
choice for this, but I want to avoid that option if I can.
------Original Message------
From: Aldo Calpini <[EMAIL PROTECTED]>
To: David Welden <[EMAIL PROTECTED]>
Sent: July 18, 2000 2:34:27 PM GMT
Subject: Re: [perl-win32-gui] Win32:GUI accessible from other scripting
languages?
David Welden wrote:
> Thanks for the swift reply. WSH 2.0 is exactly what I
> have in mind. Any suggestions/pointers/redirects to other
> resources on the process?
the resource: http://msdn.microsoft.com/scripting
basically, in WSH 2.0 you create a file, say named
script.wsf and put in:
<Job id="sample">
<script language="PerlScript" runat="Server">
use Win32::GUI;
sub CreateWindows {
# ...put all your stuff here
);
</script>
<script language="JScript" runat="Server">
CreateWindows();
</script>
</Job>
the available samples do not show if, and how, you
can share variables between scripting engines, or
how you can call a Perl function in another package
(eg. MyPackage::CreateWindows).
I will eventually make some testing here and let
you know...
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;
-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com