Hi, Jim,

Have you tried:

my $mtq = Win32::OLE->GetActiveObject(yada yada)... #if it's already running
my $mtq = Win32::OLE->GetObject(blah blah)... #if it isn't

Kind regards,

Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.rbs.co.uk/GTrswi/


> -----Original Message-----
> From: Jim Hill [SMTP:[EMAIL PROTECTED]
> Sent: Friday, April 09, 2004 1:43 PM
> To:   [EMAIL PROTECTED]
> Subject:      Using ActiveXObject in perl
> 
> *** WARNING : This message originates from the Internet ***
> 
> Hi all
> 
> How do I initiate an ActiveXObject in perl? My code thus far ...
> 
> use Win32::OLE;
> use strict;
> use warnings;
> my $mtq = Win32::OLE -> new("Mailtraq.Control") or die $!;
> 
> I know that works, insofar as it goes, because it unhides the
> user interface (from behind a system tray icon) of that
> application (a win32 mail server) but the script hangs there
> until halted manually so the following, which might not be valid
> syntax, never gets executed ...
> 
> my $count = $mtq -> Config.UserCount();
> print "Count = $count\n";
> 
> I'm trying to reproduce the following in perl ...
> 
> | Mailtraq's objects are exposed via ActiveX
> | meaning in other applications (such as IIS) you can do
> | 
> |     var mtq = new ActiveXObject("Mailtraq.Control");
> |     mtq.Config.CreateUser("jsmith");
> 
> ... but with UserCount() instead of CreateUser() so that I don't
> bugger up anything whilst testing.
> 
> | Config
> | 
> | This object represents the current system configuration,
> | including user accounts and system setup. 
> | 
> | Properties
> | 
> | UserCount : integer
> | Returns the number of user accounts configured on the system.
> 
> Mailtraq does appear in perl's ole browser as "Mailtraq
> Interface" with a class named "Control" and a variant readonly
> property named "Config."
> 
> Can someone point me in the right direction, please? Is there any
> documentation for handling this sort of thing online?
> -- 
> 
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office: 
36 St Andrew Square, Edinburgh EH2 2YB

The Royal Bank of Scotland plc is authorised and regulated by the Financial Services 
Authority and represents The Royal Bank of Scotland Marketing Group. The Bank sells 
life policies, collective investment schemes and pension products and advises only on 
the Marketing Group's range of these products and on a With-Profit Bond produced by 
Norwich Union Life (RBS) Limited.

This e-mail message is confidential and for use by the addressee only. If the message 
is received by anyone other than the addressee, please return the message to the 
sender by replying to it and then delete the message from your computer. Internet 
e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept 
responsibility for changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of viruses, it is 
the responsibility of the recipient to ensure that the onward transmission, opening or 
use of this message and any attachments will not adversely affect its systems or data. 
No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the 
recipient should carry out such virus and other checks as it considers appropriate.

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to