Then delete all the sheets that start with sheet
$SheetTabName = $Book- Worksheets($_)-{Name};
foreach ( 1...$SheetCnt)
{
$SheetTabName = $Book- Worksheets($_)-{Name};
if ( $SheetTabName =~ /^sheet/i )
{
Hi,
Does someone know of another method of naming the Excel sheets?
Currently I am using:
...
$Worksheet = $Workbook-Worksheets()-Add();
$Worksheet-{Name} = test $i;
...
The sheet names are still Sheet1, Sheet2, etc...
Thanks,
David
___
@listserv.ActiveState.com
Subject: Win32:OLE Excel
Hi,
Does someone know of another method of naming the Excel sheets?
Currently I am using:
...
$Worksheet = $Workbook-Worksheets()-Add();
$Worksheet-{Name} = test $i;
...
The sheet names are still Sheet1, Sheet2, etc...
Thanks,
David
Hsu, David wrote:
Hi,
Does someone know of another method of naming the Excel sheets?
Currently I am using:
...
$Worksheet = $Workbook-Worksheets()-Add();
$Worksheet-{Name} = test $i;
...
The sheet names are still Sheet1, Sheet2, etc...
my $workbook = $Excel-Workbooks-Add();
my
Ken,
I am using Win32::OLE. Add_worksheet uses the Spreadsheet:WriteExcel
module.
Thanks,
David
-Original Message-
From: Ken Barker [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 12:07 PM
To: Hsu, David; Perl-Win32-Users@listserv.ActiveState.com
Subject: RE: Win32:OLE Excel
@listserv.ActiveState.com
cc:
Subject: RE: Win32:OLE Excel
Ken,
I am using Win32::OLE. Add_worksheet uses the Spreadsheet:WriteExcel
module.
Thanks,
David
-Original Message-
From: Ken Barker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 04, 2005 12:07 PM
To: Hsu, David; Perl-Win32
request with InternetExplorer.Application
but the object refuses to do it and always does a GET request.
Searching in MSDN i have found :
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/n
avigate.asp
and my Code is :
use Win32::OLE qw(EVENTS);
use strict
Hi, i am triying to do a POST request with InternetExplorer.Application but
the object refuses to do it and always does a GET request.
Searching in MSDN i have found :
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/navigate.asp
and my Code is :
use Win32::OLE qw
is :
use Win32::OLE qw(EVENTS);
use strict ;
my $IE = Win32::OLE-new(InternetExplorer.Application);
my $respuesta = X x 2000 ;
$IE-Navigate('http://192.168.7.1',0,'_BLANK',$respuesta,undef);
Why not use LWP instead or do you need the browser window ?
Maybe a little background on what
Why does the use find the file and the require does not?
The Win32.pm is located in, C:\Perl\lib\Win32.pm
Can't locate Win32::OLE qw(in with) in @INC (@INC contains:
/package0/filpods/loaders . C:\Program Files\ActiveState Komodo
3.1\dbgp\perllib C:\perl\lib C:\perl\site\lib C:\Program
Files
-win32-users@listserv.ActiveState.com
Subject: Use works but require does not! what do I need to change to get
ridof this error Can't locate Win32::OLE qw(in with) in @INC
Why does the use find the file and the require does not?
The Win32.pm is located in, C:\Perl\lib\Win32.pm
Can't locate Win32::OLE
Drobnis, Mark wrote:
: Why does the use find the file and the require does not?
:
: The Win32.pm is located in, C:\Perl\lib\Win32.pm
:
: Can't locate Win32::OLE qw(in with) in @INC (@INC contains:
: /package0/filpods/loaders . C:\Program Files\ActiveState Komodo
: 3.1\dbgp\perllib C:\perl\lib C
Trying write code that work for both UNIX and MSWin32 Mail.
This runs on Solaris but doesn't work on windows
$win32ole = 'Win32::OLE qw(in with)';
$winconst = Win32::OLE::Const 'Microsoft Outlook';
if ($^O eq 'MSWin32'){
require $win32ole;
require $winconst;
$Win32::OLE::Warn = 3
Hello, Mark,
Wednesday, July 06, 2005, 4:11:12 PM, You wrote:
DM Trying write code that work for both UNIX and MSWin32 Mail.
DM This runs on Solaris but doesn't work on windows
DM $win32ole = 'Win32::OLE qw(in with)';
DM $winconst = Win32::OLE::Const 'Microsoft Outlook';
DM if ($^O eq
Trying write code that work for both UNIX and MSWin32 Mail.
This runs on Solaris but doesn't work on windows
$win32ole = 'Win32::OLE qw(in with)';
$winconst = Win32::OLE::Const 'Microsoft Outlook';
if ($^O eq 'MSWin32'){
require $win32ole;
require $winconst;
$Win32::OLE
As well as looking at $!, you might also try looking at
Win32::FormatMessage(Win32::GetLastError()), as that often gives much
a better indication of the problem where windows processes are
involved. (You have to 'use Win32;' to do that.)
You can use $^E instead of Win32::GetLastError(). It
Jon Bjornstad wrote:
This code:
use Win32::Ole;
my $voice = Win32::Ole-new(Speech.VoiceText);
$voice-Register('', 'Perl');
$voice-speak(hello world);
STDIN;# wait til it finishes speaking
has been used succesfully on Windows98 (with the
Microsoft Speech SDK installed
Oh great! It works this way.
Teddy
- Original Message -
From: Jan Dubois [EMAIL PROTECTED]
To: 'Sisyphus' [EMAIL PROTECTED];
perl-win32-users@listserv.ActiveState.com; 'Jon Bjornstad'
[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 5:19 AM
Subject: RE: Win32:OLE - Speech.VoiceText
, and it might have a little
different syntax...
But I am wondering why this script doesn't work...
use strict;
use warnings;
use Win32::OLE;
my $voice = Win32::OLE-new(Speech.VoiceText);
$voice-Register('', 'Perl');
$voice-speak(hello world);
STDIN;# wait til it finishes speaking
Win32::OLE;
my $voice = Win32::OLE-new($speech_object);
and all will be well.
Thanks a Million!
Jon
On Jun 13, 2005, at 11:27 PM, Octavian Rasnita wrote:
I have also tried the following script under Windows 2000 but it
doesn't
work and it doesn't give any error.
The SAPI 4 is installed
This code:
use Win32::Ole;
my $voice = Win32::Ole-new(Speech.VoiceText);
$voice-Register('', 'Perl');
$voice-speak(hello world);
STDIN;# wait til it finishes speaking
has been used succesfully on Windows98 (with the
Microsoft Speech SDK installed) and on Windows 2000
(which has
--8---
has been used succesfully on Windows98 (with the
Microsoft Speech SDK installed) and on Windows 2000
(which has it installed by default, apparently).
The same code does not, however, work on Windows XP.
What has changed?
There IS a text-to-speech service on XP.
How do I
- Original Message -
From: Jon Bjornstad [EMAIL PROTECTED]
To: perl-win32-users@listserv.ActiveState.com
Sent: Tuesday, June 14, 2005 9:26 AM
Subject: Win32:OLE - Speech.VoiceText
This code:
use Win32::Ole;
my $voice = Win32::Ole-new(Speech.VoiceText);
$voice-Register('', 'Perl
On Mon, 13 Jun 2005, Sisyphus wrote:
- Original Message -
On Tue, 14 Jun 2005, Jon Bjornstad [EMAIL PROTECTED] wrote:
This code:
use Win32::Ole;
my $voice = Win32::Ole-new(Speech.VoiceText);
$voice-Register('', 'Perl');
$voice-speak(hello world);
STDIN;# wait til
= Win32::OLE-new('Speech.VoiceText');
die no voice: $!\n unless $voice;
$voice-Register('', 'Perl');
while (STDIN) {
$voice-Speak($_, 0);
}
On XP it dies with no voice: and nothing in $!.
On XP I can go into the Control Panel and choose
Speech and in the Text to Speech tab I can set the voice
On Mon, 13 Jun 2005, Jon Bjornstad wrote:
This code does work on Win98 (with the Speech SDK installed)
and Win2000 (stock) but not on XP:
use Win::OLE;
my $voice = Win32::OLE-new('Speech.VoiceText');
die no voice: $!\n unless $voice;
$voice-Register('', 'Perl');
while (STDIN
- Original Message -
From: Jon Bjornstad [EMAIL PROTECTED]
To: Jan Dubois [EMAIL PROTECTED]
Cc: 'Sisyphus' [EMAIL PROTECTED];
perl-win32-users@listserv.ActiveState.com
Sent: Tuesday, June 14, 2005 1:13 PM
Subject: Re: Win32:OLE - Speech.VoiceText
Sisyphus, Jan, all,
Right. I'm
I have been having pretty good success wrapping some ActiveX objects
into Wx perl modules for a project I am working on, but I came across
one such object that required an IFontDisp pointer.
I have been struggling ever since to figure out if I can actually get
access to the stdole (OLE
The following article shows a good example:
Automating Windows Applications with Win32::OLE
by Henry Wasserman
April 21, 2005
On 6/6/05, Sisyphus [EMAIL PROTECTED] wrote:
- Original Message -
From: J aperlh [EMAIL PROTECTED]
To: perl-win32-users@listserv.ActiveState.com
Sent
- Original Message -
From: J aperlh [EMAIL PROTECTED]
To: perl-win32-users@listserv.ActiveState.com
Sent: Monday, June 06, 2005 12:48 PM
Subject: A question about Win32::OLE. Really need you help!!!
A question about Win32::OLE. Really need you help!!!
There is a standalone
Difference between Win32::API and Win32::OLE.
As I know, Win32::API can import and call functions from Win32's
Dynamic Link Libraries (DLL),
I was wondering if it can import and call functions from standalone
executables, just like Win32:OLE does.
I tried Win32::OLE to call serveral funtions
A question about Win32::OLE. Really need you help!!!
There is a standalone executable written in C/C++.
What I am going to do is to write a perl script to call several
functions available in this executable.
From the following article, I thought the job is very easy.
#10 - Win32::OLE
It seems that Win32::OLE::Variant doesn't work!
Below is the script:
#! perl -W
use strict;
use Win32::OLE;
use Win32::OLE::Variant;
my $Array = Variant(VT_ARRAY|VT_R8, [1,2], 2);
$Array-Put([[1,2], [3,4]]);
Below
perl 5.8.4 on NT4
C:\perl -e use Win32::OLE;use Win32::OLE::Variant; my
$Array=Variant(VT_ARRAY|
VT_R8,[1,2],2); $Array-Put([1,2],[2,3]);
Win32::OLE(0.1701): Win32::OLE::Variant-Put(): Wrong number of indices;
dimension of SafeArray is 2 at -e line 1.
This works fine... it's normally easier
Thanks for you guys help.
$Bill Luebkert [EMAIL PROTECTED] found that is a typo of the
document: ActivePerl User Guide.
Win32::OLE::NEWS - What's new in Win32::OLE
The VARIANT-Put(ARRAYREF) form allows assignment to a complete SAFEARRAY
This allows automatic conversion from a list of lists
Thanks for you guys' help!
I have a application installed on my system.
I can start the application by using:
my $app = Win32::OLE-GetActiveObject('Aaa.Bbb');
The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
OLE-Browser.
I did a thorough search!
Another question
:[EMAIL PROTECTED] On Behalf Of
J aperlh
Sent: Sunday, May 29, 2005 7:09 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: A question about Win32:OLE!
A question about Win32:OLE!
Where can I get the program ID of an application?
Get it from OLE/COM Object Viewer or something else?
my $app
A question about Win32:OLE!
Where can I get the program ID of an application?
Get it from OLE/COM Object Viewer or something else?
my $app = Win32::OLE-new('Word.Application', 'Quit');
___
Perl-Win32-Users mailing list
Perl-Win32-Users
I am new to the mail list. I was looking for any examples in formatting cells
in Excel using Win32:OLE.
Any help would be much appreciated.
Ken Barker
[EMAIL PROTECTED]
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
Title: Win32::OLE Can you call ShowOpen Method
Hello All,
I would like to use OLE to access the common dialog control. I can get access to a number of methods however the ShowOpen does not work. Is it possible to use show open to get a File Open Dialog. I can do this using Win32::GUI
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: May 23, 2005 7:01 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Win32::OLE Can you call ShowOpen Method
Hello All,
I would like to use OLE to access
Does anybody know when/if Win32::OLE is going to be made threadsafe? It
would be unbelievably useful... I only wish I had the C knowledge to do
it myself!
Cheers,
Paul
*
Gloucester Research Limited believes the information
provided
I have a line of code that gives an error. This line of code:
my $dll = new Win32::OLE(Artwork.db.api);
Gives this error:
Win32::OLE(0.1403) error 0x800401f3: Invalid class string at (eval 34)
line 1
To me this indicates that the dll is not registered correctly with
windows
:
I have a line of code that gives an error. This line of code:
my $dll = new Win32::OLE(Artwork.db.api);
Gives this error:
Win32::OLE(0.1403) error 0x800401f3: Invalid class string at (eval 34)
line 1
To me this indicates that the dll is not registered correctly with
windows. That is not however
I am trying to use Win32::OLE from a test_control computer
(Windows2003Server) to manipulate IE browsers on other computers (WindowsXP and
Windows2000 workstations). It works fine if I specify the localhost
instead of a remote machine (remote only in the sense of being different
computers
Here's the situation. I have some perl code running fine on one windows
box. I moved it to another box and installed all the appropriate
modules.
I am now getting the following message in my error log:
Win32::OLE object version 0.1702 does not match $Win32::OLE::VERSION
0.1403 at C:/Perl/lib
-How much did you copy and how did you go about it? It sounds like you
partially overwrote the -second computer's copy of Win32::OLE with a
different version. Try using PPM to reinstall -Win32::OLE.
I didn't copy any of the perl stuff. I installed a fresh copy of perl
and then used PPM
How much did you copy and how did you go about it? It sounds like you
partially overwrote the second computer's copy of Win32::OLE with a different
version. Try using PPM to reinstall Win32::OLE.
Make sure you are only copying the modules you need. Overwriting important
modules
Chris Cappelletti wrote:
I have a perl program that sends email via win32-ole cdo.
I started having the 2 dialogs since upgrading :-( to outlook 2003.
The dialogs read:
Here's the situation. If I remember correctly (and I probably don't)
there are three normal ways to use MAPI to send email
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bob Davis
Sent: Tuesday, April 19, 2005 9:44 PM
To: Perl-Win32-Users@listserv.ActiveState.com
Subject: cdo win32-ole object model guard
Hi
I have a perl program that sends email via win32-ole cdo.
I started having the 2 dialogs since
return either SERVERCALL_RETRYLATER if I can't handle
the request now, or SERVERCALL_ISHANDLED if I want the request to be
processed. The problem it seems that when I make 2 simultaneous calls
from Win32::OLE into my server, one of them returns the error call
was rejected by callee. It is as if instead
actually retries the call
while Perl Win32::OLE does not provide this implementation. I did a
quick grep of the Win32::OLE source and found no references to
IMessageFilter, RetryRejected, or anything like that but I could have
missed something.
All I want is for my COM call to be retried until
On 4/13/05, Jan Dubois [EMAIL PROTECTED] wrote:
Win32::OLE only implements OLE Automation (access to IDispatch interfaces).
If you want transparent retries from scripting languages then you need
to implement this in your IDispatch interface implementation yourself.
Thanks for the response
Hello perl-win32-users,
I use Win32::OLE to read EXCEL files, like this:
use Win32::OLE;
use Win32::OLE::Variant;
use Win32::OLE::Const 'Microsoft Excel';
our $Excel = Win32::OLE-GetActiveObject('Excel.Application')
|| Win32::OLE-new('Excel.Application', 'Quit');
my $Book = $Excel
I have this:
--Begin STDOUT
--
1
2
Win32::OLE(0.1702): GetOleObject() Not a Win32::OLE object at
C:/Perl/site/lib/Win32/OLE/Lite.pm line 154.
Win32::OLE(0.1702): GetOleObject() Not a Win32::OLE object at
C
Hello,
If myDestination is a folder in Microsoft Outlook VBA code,
it is possible to execute a VBA line such as the following:
myDestination.Items(1).UnRead = 1
This will mark the first mail inside the folder
myDestination as unread (setting the mail item's UnRead
property to true).
I tried
On Tue, 08 Mar 2005, Suresh Govindachar wrote:
Hello,
If myDestination is a folder in Microsoft Outlook VBA code,
it is possible to execute a VBA line such as the following:
myDestination.Items(1).UnRead = 1
This will mark the first mail inside the folder
myDestination as unread
Hello again,
In VBA and in Win32::OLE perl, I have code to traverse the
folders in Microsoft Outlook and to figure out which folders
have unread messages.
My goal is that every folder that has unread messages should
have all its parent-folders displayed in Outlook with [-].
By trial and error
Has anything happened to solve this clean up issue with Win::OLE and threads?
Free to wrong pool ... during global destruction
I am avoiding the error at the moment by taking jan and paul's advice (thanks)
collectively:
- require not use Win32::OLE and do it inside the thread sub
I have also
) collectively:
- require not use Win32::OLE and do it inside the thread sub
I have also had to comment out using Win32:OLE:Constants and revert to the
actual numbers I need (E.g 65001 instead of Win32::OLE::CP_UTF8() ). I
couldn't get them to work with use or require either inside or outside
-Original Message-
From: Kevin Carothers [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 6:59 PM
To: Neil Burnett
Cc: [EMAIL PROTECTED]
Subject: Re: Win32:OLE - Threadsafe?
On Mon, 28 Feb 2005 13:12:40 +0100, Neil Burnett [EMAIL PROTECTED] wrote:
Has anything happened
I use events with IE automation.
use Win32::OLE qw(EVENTS)
Then check the Win32::OLE docs or the archive lists to see how to use
them.
Steven
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Kevin Carothers
Sent: Tuesday, February 22, 2005 4:21 PM
I think that I'm seeing a but in the Win32::OLE::Lite::in method. When I
turn on
event handling and then iterate through a collection of IE browser objects:
my $objectCollection = $document-All();
foreach my $object( in $objectCollection ) {
# Blah, blah
On Wed, 23 Feb 2005, Andrew McFarlane wrote:
I think that I'm seeing a but in the Win32::OLE::Lite::in method.
[...]
How do I alert the powers that be about this potential defect?
Can you send me a complete program that I can use to reproduce the
problem?
Cheers,
-Jan
:
I need help in figuring out how to prevent an exception from occurring when
I try to examine Internet Explorer browser events using Win32::OLE. Thanks
in advance for your help.
I have a library that allows one to drive Internet Explorer. My code runs
well until I try to examine the window
I need help in figuring out how to prevent an exception from occurring when
I try to examine Internet Explorer browser events using Win32::OLE. Thanks
in advance for your help.
I have a library that allows one to drive Internet Explorer. My code runs
well until I try to examine the window
Are you running XP SP2 or recently upgraded?
Yes to SP2, but not recent. Recent hot fixes.. auto applied by windows
update. Recently trying to use Win32::OLE though, so no help in finding out
if this is something new.. but others seem to have similar problems. This
returns the value zero:
use
I have the same problem with new MSN Messenger
El Jueves 20 Enero 2005 23:05, [EMAIL PROTECTED] escribió:
Richard,
I've been having similar difficulty using Win32::OLE with Internet Explorer
recently. I wrote code that worked a month ago that doesn't work today.
Perl simply can't get
::OLE-GetActiveObject not working!
Richard,
I've been having similar difficulty using Win32::OLE with Internet
Explorer recently. I wrote code that worked a month ago that doesn't
work today. Perl simply can't get an OLE connection to Internet
Explorer anymore, even though I can still connect
For those who haven't seen this yet, it was in today's edition of
Microsoft's TechNet newsletter. I didn't find it all that useful, but maybe
someone on this list will.
Cool Tool: Scriptomatic 2
It's a brand-new version of what is probably the
At 15:59 2005-01-20, Chris wrote:
For those who haven't seen this yet, it was in today's edition of
Microsoft's TechNet newsletter. I didn't find it all that useful, but maybe
someone on this list will.
I just tried it, and the .hta file worked once this was installed:
Title: Scriptomatic 2 (Win32::OLE)
Chris wrote, on Thu
1/20/2005 09:59
: For those who haven't seen this yet, it was in today's
edition of Microsoft's TechNet newsletter. I didn't find it all that useful, but
maybe someone on this list will.: http://www.microsoft.com/downloads
Here is a snippit based on the example in the ActivePerl User Guide with iTunes
instead of Excel..
# use existing instance if iTunes is already running
eval {$iTunesHandle = Win32::OLE-GetActiveObject('iTunes.Application')};
die iTunes not installed if $@;
unless (defined $iTunesHandle
20, 2005 3:30 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Win32::OLE-GetActiveObject not working!
Here is a snippit based on the example in the ActivePerl User Guide with
iTunes instead of Excel..
# use existing instance if iTunes is already running
eval {$iTunesHandle =
Win32::OLE
with it using Win32::OLE, just this
function seems to be acting odd. And it seems to be something that is part
of a recent pattern that has root in the RPC layer.
Richard
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe
Richard,
I've been having similar difficulty using Win32::OLE with Internet Explorer
recently. I wrote code that worked a month ago that doesn't work today. Perl
simply can't get an OLE connection to Internet Explorer anymore, even though I
can still connect to Excel, etc. Something must
Hello,
I am trying to change parameters of a pivot table use
Win32::OLE.
# Set pivot fields...
$tbl-AddFields(DATE, NETWORK);
$tbl-PivotFields(PPPFAILPPPNEGOTIATION)-{Orientation}
= 4;
$tbl-PivotFields(TFEPINFOUNAVAILABLE)-{Orientation}
= 4;
Is there a way or does anyone know
made no changes to Perl or the code. I've
tried to track down a solution with no luck. Any ideas?
Thanks in advance,
Mike
-
$Bill Luebkert wrote:
Share some minimal code snippet.
use strict;
use Win32::OLE;
my $IEWin = Win32::OLE- GetActiveObject
:-Original Message-
:From: [EMAIL PROTECTED]
:[mailto:[EMAIL PROTECTED] Behalf Of
:Matthew Bertrand
:Sent: Friday, 31 December 2004 12:29 PM
:To: perl-win32-users@listserv.ActiveState.com
:Subject: Re: Win32::OLE::GetActiveObject problem
:
:
:$Bill Luebkert wrote:
:
:Share some minimal
May be http://www.winguides.com/registry/display.php/964/ will help
WBR
Dmitry Bolshakoff
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: perl-win32-users@listserv.ActiveState.com
I wrote a Perl script that uses the Win32::OLE::GetActiveObject method to
grab any
looked at DCOMCNFG
just in case it was a perms problem.
use Win32::OLE;
$Count = Win32::OLE-EnumAllObjects(sub {
my $Object = shift;
my $Class = Win32::OLE-QueryObjectType($Object);
printf # Object=%s Class=%s\n, $Object, $Class;
});
That works for me at least with Excel objects
I wrote a Perl script that uses the Win32::OLE::GetActiveObject method to grab
any existing IE browser windows and close them. The GetActiveObject() method
has no problem grabbing an existing IE browser on my laptop.
Unfortunately, GetActiveObject() cannot find any existing IE browsers when
[EMAIL PROTECTED] wrote:
I wrote a Perl script that uses the Win32::OLE::GetActiveObject method to
grab any existing IE browser windows and close them. The GetActiveObject()
method has no problem grabbing an existing IE browser on my laptop.
Unfortunately, GetActiveObject() cannot find
objects -- I looked at DCOMCNFG
just in case it was a perms problem.
use Win32::OLE;
$Count = Win32::OLE-EnumAllObjects(sub {
my $Object = shift;
my $Class = Win32::OLE-QueryObjectType($Object);
printf # Object=%s Class=%s\n, $Object, $Class;
});
But of course, I can create either
Use Win32::GuiTest or Win32::ActAcc (active
accessibility).
--- Jim Guion [EMAIL PROTECTED] escribió:
These windows popup when changing from a non-secure
to secure connection
and vice-versa, which is part of the application I
am writing tests for.
I need to be able to detect that the alert
These windows popup when changing from a non-secure to secure connection
and vice-versa, which is part of the application I am writing tests for.
I need to be able to detect that the alert window opened and close it
appropriately so that the application can continue.
Thanks for any guidance!
Jim
Title: Win32::OLE-new(MAPI.Session) generates Cannot change thread mode after it is set.
I am using the example code in the Active State documentation under the title, Is there a way to access MAPI from my Perl script?, at http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/faq/Windows
Title: Message
Win32::OLE-Initialize(Win32::OLE::COINIT_OLEINITIALIZE);my
$session =
Win32::OLE-new("MAPI.Session");
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Warner, JimSent: Friday, November 12, 2004 1:21
PMTo:
Just realised if you turn that use into a require Win32::OLE after the threads
have been spawned, it works ok. Anyone know why this should be so? I thought I
read somewhere that Win32::OLE was threadsafe but it seems not!
P.
-Original Message-
From: $Bill Luebkert [mailto:[EMAIL
Paul Sobey wrote:
Just realised if you turn that use into a require Win32::OLE after
the threads have been spawned, it works ok. Anyone know why this
should be so? I thought I read somewhere that Win32::OLE was
threadsafe but it seems not!
Seeing as Jan occasionally mentions that he wuld like
On Thu, 11 Nov 2004, Jeff Griffiths wrote:
Paul Sobey wrote:
Just realised if you turn that use into a require Win32::OLE after
the threads have been spawned, it works ok. Anyone know why this
should be so? I thought I read somewhere that Win32::OLE was
threadsafe but it seems not!
Seeing
Hi
Guys,
On my machine (AP
5.8.4), the following code runs fine when the use Win32::OLE line is commented,
but throws an exception at the end when it is not. Anybody know why? Am I doing
something silly, or is this module known to have problems with
threads?
Cheers,
Paul
use threads
Paul Sobey wrote:
Hi Guys,
On my machine (AP 5.8.4), the following code runs fine when the use
Win32::OLE line is commented, but throws an exception at the end when it
is not. Anybody know why? Am I doing something silly, or is this module
known to have problems with threads?
Cheers
win32com.client
gp = win32com.client.Dispatch(esriGeoprocessing.GpDispatch.1)
testtext = gp.Usage(Buffer_analysis)
print testtest
Here's my perl script - which doesn't work.
use Win32::OLE;
# Set some variables
my $Class = esriGeoprocessing.GpDispatch.1;
my $gp = Win32::OLE-new($Class)
|| die Could
On Fri, 05 Nov 2004, Celeste Suliin Burris wrote:
testtext = gp.Usage(Buffer_analysis)
...
$testtext = $gp-{Usage}-(Buffer_analysis);
Try:
$testtext = $gp-Usage(Buffer_analysis);
Cheers,
-Jan
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
Unfortunately, that doesn't work either. I think I tried it before in
my thrashing around.
Thanks for the help, anyway
On Nov 5, 2004, at 13:02, Jan Dubois wrote:
On Fri, 05 Nov 2004, Celeste Suliin Burris wrote:
testtext = gp.Usage(Buffer_analysis)
...
$testtext =
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Celeste Suliin Burris
Sent: Friday, November 05, 2004 3:57 PM
To: [EMAIL PROTECTED]
Subject: Convert Python Com Code to Win32::OLE
I'm a Unix systems administrator who is making the transition to
Windows. I am trying to access some COM
, this is the simplest sample in the book...
use Win32::OLE;
my $Class = esriGeoprocessing.GpDispatch.1;
my $gp = Win32::OLE-new($Class)
|| die Could not create a COM '$Class' object;
my $testtext = $gp-Usage('Buffer_analysis');
print $testtext;
On Nov 5, 2004, at 15:15, Celeste Suliin Burris wrote
is
printed to the screen.
Here is my perl code:
use strict;
use Win32::OLE;
my( $objWMI, $objNewJob, $strError, $strJobID );
$objWMI = Win32::OLE-GetObject( winmgmts:.\\root\\cimv2 );
$objNewJob = $objWMI-Get( Win32_ScheduledJob );
$strError = $objNewJob-Create('Notepad.exe
I found the below example in a previous post. When I attempt to change
olFolderInbox to any other folder (i.e. olFolderStuff) it fails. Can someone
send me an example of how to do this or point me in the right direction?
When I try the change the folder name I get:
Win32::OLE(0.1601) error
201 - 300 of 468 matches
Mail list logo