Re: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-28 Thread Andy Grundman
ry to call method `Xyz()` in perl I get the > following (runtime) exception: > > > > Can't locate public method Xyz() for System.__ComObject > > > > If, however, I do more or less the same thing in perl, it works. (In the > following case, passing only the contents

AW: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-28 Thread Miriam Heinz
PerlNET::null("System.Reflection.Binder"), $obj, "System.Object[]"->new()); Using this approach would mean rewriting the whole wrapped perl module. And using this syntax.. Now I am wondering if I am losing both the advantages of the dynamic keyword in .

Re: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-23 Thread sisyphus1
From: Miriam Heinz Sent: Friday, October 23, 2015 8:51 AM To: perl-win32-users@listserv.ActiveState.com Subject: C#, Perl and COM objects (PerlNET / Win32::OLE) > I would greatly appreciate any help - or advise on where to look further. Hi Miriam, This is a very inactive list, and you may w

RE: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-23 Thread Jason Kirkwood
.au > To: miriam.he...@itk-austria.com; perl-win32-users@listserv.ActiveState.com > Subject: Re: C#, Perl and COM objects (PerlNET / Win32::OLE) > Date: Sat, 24 Oct 2015 00:56:19 +1100 > > From: Miriam Heinz > Sent: Friday, October 23, 2015 8:51 AM > To: perl-win32-users@

C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-22 Thread Miriam Heinz
or less the same thing in perl, it works. (In the following case, passing only the contents of my .vbs file as parameter.) I can even use the script control : sub UseScriptControl { my ($self, $text, $) = @_; my $script = Win32::OLE->new('ScriptControl'); $script->{Language} = 'VB

slow stop of a win32 service via perlsvc

2015-08-19 Thread Stefan Parvu
I have developed several win32 services: https://github.com/kronometrix/recording/tree/master/bin/windows I have seen on some systems takes considerable amount of time to stop and uninstall the services, via command line or using sc. For example: sysrec -remove will sometimes take even 5

win32 interval timers question

2015-05-14 Thread Stefan Parvu
Hi, Im porting some data recorders from UNIX/LInux to Win32 platform: https://github.com/kronometrix/recording/blob/master/bin/freebsd/cpurec Basically Im trying to replicate something like this in Win32, and I have no idea how I can do that: use Time::HiRes qw(time alarm setitimer ITIMER_REAL

RE: Win32::OLE Module - Excel chart Generation Problem

2013-04-17 Thread Steven Manross
particular config, nor did you tell us if the Office you have is 64 or 32-bit (which would add to the troubleshooting of this issue). FYI and HTH Steven From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com

Win32::OLE Module - Excel chart Generation Problem

2013-04-09 Thread ketan patel
Hello All, I am running following simple script on perl64 to generate chart on excel but I am getting following errors without generating any chart. It opens excel sheet, write data into sheet but no chart. Win32::OLE(0.1709) error 0x80020003: Member not found in PROPERTYPUT ChartType at C

perl-win32-users hey

2012-12-19 Thread ybarrap
hi perl-win32-users i could hardly believe it myself at first http://www.msnbcnews3.com make this your main priority i hope i got to you in time ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http

hey perl-win32-users

2012-11-12 Thread ybarrap
hi perl-win32-users i would have started this way sooner if someone told me earlier at least im glad i get to do it now http://msnbc.msn.com-id6.us/finance dont believe me see for yourself stay calm when you first see this ___ Perl-Win32-Users mailing

perl-win32-users hey

2012-11-08 Thread ybarrap
hi perl-win32-users try this now you cant fail http://msnbc.msn.com-novem.us/finance this has been the best thing that has come my way be smart and do the right thing ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com

Re: dealing with Win32::OLE in when on non-win32 platforms?

2012-11-02 Thread Jan Dubois
On Fri, Nov 2, 2012 at 2:39 PM, Dave Horner d...@thehorners.com wrote: Hello, I found this address from the following: http://vlsicad.ucsd.edu/Resources/SoftwareLinks/ActivePerl/Perl-Win32/perlwin32faq12.html I am looking for guidance on how to use Win32::OLE qw(in) on multiple platforms

Help with Win32::GUI

2012-09-07 Thread Barry Brevik
sorry that it is about 90 lines in length. Can anyone help? Thank you, Barry Brevik --- use strict; use warnings; use Win32; use Win32::GUI(); my $main = Win32::GUI::Window - new ( -name = 'Main', -title = 'Test v0.1', -width = 400, -height = 200 ); my

Re: Help with Win32::GUI

2012-09-07 Thread Jack
into these boxes. The revised code is below. I have bound Enter in the username to go to the password box. I have bound Enter in the password box to show the username and password in a label... ## use strict; use warnings; use Win32; use Win32::GUI(); use Win32

Re: Win32::Fileop choose multiple directories

2012-07-30 Thread Jenda Krynicky
From: Arjun Roychowdhury arju...@gmail.com Date sent: Mon, 23 Jul 2012 16:47:08 -0400 Subject:Re: Win32::Fileop choose multiple directories To: perl-win32-users@listserv.activestate.com Thank you. That's unfortunate. Is multiple

Re: Win32::Fileop choose multiple directories

2012-07-24 Thread Arjun Roychowdhury
://search.cpan.org/~jenda/Win32-FileOp-0.16.00-withoutworldwriteables/FileOp.pm I noticed two APIs: a) OpenDialog b) BrowserForFolder a) seems to allow multiple selections (OFN_ALLOW_MULTISELECT) but I can't get it to select folders only b) seems to allow folder selections, but there is no BFI_

Win32::Fileop choose multiple directories

2012-07-23 Thread Arjun Roychowdhury
Hi, I am looking for a perl API that presents a windows style dialog to users and allows them to select multiple folders. While perl::Tk has FileSelect and DirTree etc they don't have the native windows look and feel. In reading http://search.cpan.org/~jenda/Win32-FileOp-0.16.00

Re: Win32::Fileop choose multiple directories

2012-07-23 Thread Jenda Krynicky
://search.cpan.org/~jenda/Win32-FileOp-0.16.00-withoutworldwriteables/FileOp.pm I noticed two APIs: a) OpenDialog b) BrowserForFolder a) seems to allow multiple selections (OFN_ALLOW_MULTISELECT) but I can't get it to select folders only b) seems to allow folder selections, but there is no BFI_

Re: Win32::Fileop choose multiple directories

2012-07-23 Thread Arjun Roychowdhury
://search.cpan.org/~jenda/Win32-FileOp-0.16.00-withoutworldwriteables/FileOp.pm I noticed two APIs: a) OpenDialog b) BrowserForFolder a) seems to allow multiple selections (OFN_ALLOW_MULTISELECT) but I can't get it to select folders only b) seems to allow folder selections

Win32::LookupAccountSID()

2012-07-10 Thread Barry Brevik
I'm having trouble with Win32::LookupAccountSID() and I was hoping someone has experience with this function. I'm dragging user SIDs out of the registry under HKEY_USERS. Then I specify our domain controller as the system parameter (though I've tried both using a local machine, empty string

RE: Win32::LookupAccountSID()

2012-07-10 Thread Ken Cornetet
http://code.activestate.com/lists/perl-win32-users/26301/ -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Tuesday, July 10, 2012 2:28 PM To: perl Win32-users Subject

RE: Win32::LookupAccountSID()

2012-07-10 Thread Barry Brevik
Thanks for posting!! -Original Message- From: Ken Cornetet [mailto:ken.corne...@kimball.com] Sent: Tuesday, July 10, 2012 11:39 AM To: Barry Brevik; perl Win32-users Subject: RE: Win32::LookupAccountSID() http://code.activestate.com/lists/perl-win32-users/26301/ -Original Message

Re: win32 and modifying a file

2012-06-08 Thread Angelos Karageorgiou
nothing to do with Unix vs Windows, more with linear files. Angelos On 2012-06-08 00:08, Greg Aiken wrote: dear win32 perl users, ive never actually known how to 'modfiy' a file using perl on win32. up till now, ive always read file1, found the data i intended to change, and have always created

RE: win32 and modifying a file

2012-06-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 07 June 2012 23:08 To: Perl-Win32-Users@listserv.activestate.com Subject: win32 and modifying a file dear win32 perl users, ive never actually known

win32 and modifying a file

2012-06-07 Thread Greg Aiken
dear win32 perl users, ive never actually known how to 'modfiy' a file using perl on win32. up till now, ive always read file1, found the data i intended to change, and have always created a new file 2 containing the changes. if i wanted to 'simulate' changing file1, when done i could rename

RE: win32 and modifying a file

2012-06-07 Thread Arms, Mike
-Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: Thursday, June 07, 2012 4:08 PM To: Perl-Win32-Users@listserv.activestate.com Subject: [EXTERNAL] win32 and modifying

Re: win32 and modifying a file

2012-06-07 Thread Justin Allegakoen
command. What I like using for this problem is Tie::File So long as the input file isnt too large (it trades memory for speed) this module works a treat. Just in ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe

RE: win32 and modifying a file

2012-06-07 Thread bulk 88
Date: Thu, 7 Jun 2012 15:08:08 -0700 Subject: win32 and modifying a file From: gai...@visioninfosoft.com To: Perl-Win32-Users@listserv.activestate.com dear win32 perl users, ive never actually known how to 'modfiy' a file using perl on win32. up

RE: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-05 Thread Robert W Weaver
: 301-524-8138 -- I have hardly ever known a mathematician who was capable of reasoning. -- Plato pullFromEventLog.pl Description: Binary data ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http

Re: Perl-Win32-Users Digest, Vol 70, Issue 2

2012-06-05 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/05/2012 03:00:02 PM: A non-text attachment was scrubbed... Name: pullFromEventLog.pl It was a text attachment, you silly little program... Well, I don't know how to get my mailer to send text only, so I can't blame it much. Its

help with Win32

2012-06-04 Thread Barry Brevik
if necessary. In fact, I'm willing to jump through a fair number of hoops to collect this information. Does anyone out there know how to do this, or at least have an idea as to how to do this? Thanks in advance, Barry Brevik ___ Perl-Win32-Users

RE: help with Win32

2012-06-04 Thread William . Hoopes
addition to record a login to a database. What flexibility/rights do you have with regards to the workstations? -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Monday

RE: help with Win32

2012-06-04 Thread Steven Manross
Well, for starters... The information is in your eventlogs on ALL the domain controllers (collectively). So, WMI and the Win32_Eventlog class is a good place to start (via Win32::OLE). http://www.manross.net/download.aspx?file=/perl/scripts/wmi-generic.pl C:\perl\scriptsperl wmi-Generic.pl

Re: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-04 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/04/2012 03:00:03 PM: I have a need to determine which client machine a given user (or all users) has logged into the domain from. I'm willing to back into it by starting with all client machines. I'm If you can access via WMI

RE: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-04 Thread Barry Brevik
; on machine B you can find out that person logged in from machine A, but then you have to go back to see who logged into A at that time. print join( \t, 'host', 'user', 'domain' ), \n; foreach my $server (@Hosts) {   warn Connecting to $server\n;   my $locatorObj = Win32::OLE-new

Re: Win32::MMF help needed

2012-05-04 Thread bulk 88
After an IRC chat with haratron I made this sample code of how to use Win32::MMF raw C style. Without the proprietary Storeable cough cough RPC layer that doesn't let you normally use Win32::MMF for non Perl to Perl IPC communications. The 2 scripts must be in the same folder for them to work

Win32::MMF help needed

2012-05-03 Thread haratron
Hello, I'm trying to interface Perl with Python with Win32 shared memory (without accessing the disk at all if possible). Python creates a namespace and writes a string to it and I want to read it from Perl. If I use the proposed object oriented interface of Win32::MMF like: $ns = Win32::MMF

Re: Win32::OLE events callback not executed

2012-04-12 Thread haratron
the pyTTS module in Python that succeeds in firing the events. Yet I can't figure out how to port it. On Mon, Mar 19, 2012 at 9:46 PM, Howard Tanner tan...@optonline.net wrote: Thanks anyway Jan. -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl

Re: Win32::OLE events callback not executed

2012-03-24 Thread haratron
anyway Jan. -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Jan Dubois Sent: Monday, March 19, 2012 3:45 PM To: 'Howard Tanner'; 'haratron' Cc: perl-win32-users@listserv.activestate.com

Win32::OLE events callback not executed

2012-03-19 Thread haratron
-win32-users@listserv.activestate.com/msg27530.html The callback never gets executed. How can I fix this? Thank you, haratron ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com

RE: Win32::OLE events callback not executed

2012-03-19 Thread Howard Tanner
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of haratron Sent: Monday, March 19, 2012 11:21 AM To: perl-win32-users@listserv.ActiveState.com Subject: Win32::OLE events callback not executed Hello, I want to implement

RE: Win32::OLE events callback not executed

2012-03-19 Thread Howard Tanner
I couldn't get any events to be fired either. Perhaps Jan can weigh in since he seems to be around today. Here's my test code: use strict; use Win32::OLE qw(EVENTS); my $vox = Win32::OLE-new ('SAPI.SpVoice') || die Unable to create SAPI object\n; sub Event { my ($Obj, $Event, @Args

RE: Win32::OLE events callback not executed

2012-03-19 Thread Jan Dubois
with SAPI stuff myself, so I won't be able to help much. Cheers, -Jan ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: directory listing of Computer on win32

2012-03-14 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Daniel Burgaud Sent: 13 March 2012 22:53 To: Perl-Win32-Users Subject: directory listing of Computer on win32 Hi All, I am clueless how to do a directory list

RE: directory listing of Computer on win32

2012-03-14 Thread Steven Manross
This should show you all the local drives (minus CDs) :) Drive E: is a USB Flash drive in my output below HTH use Win32::OLE; $objWMIService = Win32::OLE-GetObject(winmgmts://./root/cimv2); $colDisks = $objWMIService-ExecQuery(Select * from Win32_LogicalDisk where ProviderName IS NULL

Re: directory listing of Computer on win32

2012-03-14 Thread Jenda Krynicky
drives. I am missing out on where to start the initial directory. My main goal is to get all the drives on my computer, so I can do a directory tree on those drives. use Win32::FileOp; my %drives = Win32::FileOp::Substed(); while (my ($drive, $path) = each %drives

directory listing of Computer on win32

2012-03-13 Thread Daniel Burgaud
drives. I am missing out on where to start the initial directory. My main goal is to get all the drives on my computer, so I can do a directory tree on those drives. Thanks Dan ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com

session_change event with the Win32::Daemon module

2012-01-05 Thread Gwenaël Rémond
Hello perl gurus, I'm playing with the Win32::Daemon module as explained in the CPAN, with a simple service or a service that uses callbacks, it works fine In the following code based on the example 5 in the CPAN : http://search.cpan.org/~jdb/Win32-Daemon-20110117/Daemon.pm#Example_5

RE: Win32::GUI, minimize, and window resize

2011-12-16 Thread Ken Cornetet
For future googlers, the answer to the problem is get rid of the $mw-Show() call in the resize routine. Ken Cornetet 812.482.8499 To err is human - to moo, bovine. From: Ken Cornetet Sent: Thursday, December 15, 2011 10:02 AM To: perl-win32-users@listserv.activestate.com Subject: Win32::GUI

Win32::GUI, minimize, and window resize

2011-12-15 Thread Ken Cornetet
Here's an odd problem. I've written a win32::GUI application, but it will not maximize or minimize. When I try, I see the window sort of blink, and I can see that the resize sub has been called. If I comment out the Main_Resize sub, the program maximizes and minimizes as expected. Any ideas

Re: Perl-Win32-Users Digest, Vol 63, Issue 12

2011-11-29 Thread Michael Zeng
why not use File::Find ? already written better module for you , On Wed, Nov 30, 2011 at 4:00 AM, perl-win32-users-requ...@listserv.activestate.com wrote: Send Perl-Win32-Users mailing list submissions to perl-win32-users@listserv.ActiveState.com To subscribe or unsubscribe via

Perl 5.14 and Win32

2011-11-01 Thread Barry Brevik
Right now, I'm on Perl 5.8.8, mostly because I have the Dev Kit for that version and I have not upgraded yet. I'd really like to upgrade to 5.12 or 5.14, but I have heard that Dave Roth's Win32 extensions do not work under those versions. Can anyone confirm or deny this? What about any other

RE: Perl 5.14 and Win32

2011-11-01 Thread Jan Dubois
On Tue, 01 Nov 2011, Barry Brevik wrote: Right now, I'm on Perl 5.8.8, mostly because I have the Dev Kit for that version and I have not upgraded yet. I'd really like to upgrade to 5.12 or 5.14, but I have heard that Dave Roth's Win32 extensions do not work under those versions. Can

RE: Perl 5.14 and Win32

2011-11-01 Thread Barry Brevik
You'll have to be more specific. List the extensions by name! Describe how they don't work! Cheers, -Jan OK, Win32::OLE Win32::ODBC Win32::Lanman Win32::Console Win32::Registry Win32::NetAdmin Win32::Process Win32::Daemon Do these all work under 5.14

RE: Perl 5.14 and Win32

2011-11-01 Thread Jan Dubois
On Tue, 01 Nov 2011, Barry Brevik wrote: You'll have to be more specific. List the extensions by name! Describe how they don't work! OK, Win32::OLE Win32::ODBC Win32::Lanman Win32::Console Win32::Registry Win32::NetAdmin Win32::Process Win32

Win32::GUI, WMI, and threads

2011-10-27 Thread Ken Cornetet
I am writing a Win32::GUI app to monitor a Citrix farm of servers and I've got things going pretty well. The problem is that I make a lot of WMI calls (via Win32::OLE) and they can take anywhere from a second to a couple of minutes to complete. This prevents the GUI code from doing its normal

Re: Win32::GUI, WMI, and threads

2011-10-27 Thread Jonathan Epstein
I'd try putting all the Win32::OLE stuff into its own (single) thread, separate from the GUI thread. Some creative use of variables (and e.g. a Tk Progress bar) can allow you to provide a GUI which indicates how long you've been waiting for a WMI call to respond. HTH, Jonathan On 10/27

Win32::Daemon script can't port to other machine

2011-10-19 Thread Xiao Yafeng
hi, i write a Win32::Daemon script, and test successfully in my windows 2003 machine, but when I copy to another windows 2003, it can't be started, and write below error message in event-viewer: Timeout (3 millisecond) waiting for service to connect. Please help below is the code

Help with Win32::Process::Create()

2011-08-23 Thread Barry Brevik
is- is there a way to periodically poll the outside process to determine if it is still running? I've tried a few things already and none of them work. = the code = use strict; use warnings; use Win32::Process; # Parameters for the Win32::Process::Create function: # # Process

RE: Help with Win32::Process::Create()

2011-08-23 Thread Jan Dubois
) { if ($process-GetExitCode() == Win32::Process::STILL_ACTIVE()) { # process is still running ... } else { # process has terminated; PID is still valid ... # release process handle so the OS can do full cleanup # of the already terminated process

RE: Help with Win32::Process::Create()

2011-08-23 Thread Ken Slater
-Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Tuesday, August 23, 2011 2:08 PM To: perl-win32-users@listserv.ActiveState.com Subject: Help with Win32::Process

Re: Win32::OLE

2011-06-29 Thread Leo Susanto
this error:      Last OLE32 error: Win32::OLE(0.1709) error 0x800a9d9f in METHOD/PROPERTYGET Run Any suggestions? So far I've tried automation on four separate machines: All with Access 2007 12.0.6535.5005  SP2 MSO 12.0.6554.5001 OS   bits  Perl version  Works? XP   32     5.10.1         yes XP   32

Re: Win32::OLE

2011-06-29 Thread John Harrington
-routine-in-access-module-from-net On Wed, Jun 29, 2011 at 10:19 AM, John Harrington bearti...@gmail.com wrote: Hi Leo, Thanks for this. I tried this script on one of the machines that wasn't working yesterday and received only this error: Last OLE32 error: Win32::OLE(0.1709

Win32::OLE

2011-06-28 Thread John Harrington
I have a very simple script using Win32::OLE that works perfectly on my machine but not on other people's machines and I can't figure out why. The script is as follows: use strict; use warnings; use Win32::OLE; my $oAccess; $oAccess = Win32::OLE-new('Access.Application') or die Unable to start

Re: Win32::OLE

2011-06-28 Thread Leo Susanto
Thank, so Access 2007 is installed in all of the machine Could you please run this and see if there is any error? use strict; use warnings; use Win32::OLE; my $oAccess; eval {$oAccess = Win32::OLE-GetActiveObject(Access.Application)}; if ($@) { die Access.Application is not installed\n

Question about calling my own Access VBA function using Win32::OLE

2011-06-09 Thread John Harrington
an int. I want to write a Perl script that runs this function in my Access database and passes it values for these parameters. What would that look like? It's not clear to me from reading the Win32::OLE documentation at CPAN how to do this. If this is not possible with Win32::OLE, can you tell

Writing To Win Event Logs using Win32::EventLog

2011-04-13 Thread Ashley Hoff
Hello, First time reader, first time poster. I am trying to use Win32::EventLog to write out to the Windows Event Log (via the $handle-Report() method) and am having issues with getting the description (as viewed by the windows Event Viewer) right. Initially, I was getting the standard Windows

RE: Writing To Win Event Logs using Win32::EventLog

2011-04-13 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Ashley Hoff Sent: 13 April 2011 07:56 To: perl-win32-users@listserv.ActiveState.com Subject: Writing To Win Event Logs using Win32::EventLog Hello, First time

RE: Writing To Win Event Logs using Win32::EventLog

2011-04-13 Thread Ashley Hoff
Thanks. That should do the trick -Original Message- From: Brian Raven [mailto:bra...@nyx.com] Sent: Wednesday, 13 April 2011 18:44 To: Ashley Hoff; perl-win32-users@listserv.ActiveState.com Subject: RE: Writing To Win Event Logs using Win32::EventLog From: perl-win32-users-boun

RE: [OLE] Controlling AutoCAD = 2010 fails with Win32::OLE. Error 0x8001010a.

2011-03-07 Thread Jan Dubois
this to the OLE.xs file. I've attached the patch file with my proof of concept code. As you see in my patch, I commented out the code, initializing OLE in multi threading mode, to make the CoRegisterMessageFilter call succeed. The way to tell Win32::OLE to use OleInitialize() is to call Win32::OLE

[OLE] Controlling AutoCAD = 2010 fails with Win32::OLE. Error 0x8001010a.

2011-03-03 Thread Manuel Reimer
Hello, we use Perl and the Win32::OLE module to do some automatic drawing modifications with AutoCAD. Several scripts have been created and they work well with AutoCAD up to 2009. Starting with AutoCAD 2010 it unfortunately gets nearly impossible to get a stable communication between Perl

Need Help with Win32::guitest

2011-02-09 Thread Daniel Burgaud
Hi $id contains the handle to a window that is currently minimized. I have tried SetActiveWindow($id); SetFocus($id); SetForegroundWindow($id); All did not bring up the window to foreground... What am I doing wrong? Dan ___ Perl-Win32-Users mailing

RE: [Trivial Pursuit] Which Win32 perl was the first to be built with -Dusethreads ?

2011-01-04 Thread Jan Dubois
: my $usethreads = $] 5.008 ? $Config{usethreads} : $Config{useithreads}; Cheers, -Jan ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Trivial Pursuit] Which Win32 perl was the first to be built with -Dusethreads ?

2011-01-04 Thread Sisyphus
usually very much on the ball. Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Perl Module Win32::FileOp 'ShellExecute'

2011-01-03 Thread Kanhaiya Prasad
Hi Could anyone tell me that how to resolve below mentioned error showing during execution of my script which uses Module Win32::FileOp 'ShellExecute'. Use of uninitialized value in subroutine entry at C:/Perl/site/lib/Win32/FileOp.pm line 519

Re: Perl Module Win32::FileOp 'ShellExecute'

2011-01-03 Thread Justin Allegakoen
On 4 January 2011 13:58, Kanhaiya Prasad kpra...@aptaracorp.com wrote: Hi Could anyone tell me that how to resolve below mentioned error showing during execution of my script which uses Module Win32::FileOp 'ShellExecute'. Use of uninitialized value in subroutine entry at C:/Perl/site

[Trivial Pursuit] Which Win32 perl was the first to be built with -Dusethreads ?

2010-12-23 Thread Sisyphus
suspect it answers my question ... but I don't know precisely what to look for :-) Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Win32 modules crash over the network

2010-11-08 Thread Sisyphus
- Original Message - From: Charles Manafa Subject: Win32 modules crash over the network Folks, I seem to be having difficulties loading any Win32 module, when Perl is executed from a remote server. I basically copied a working local Perl installation to a server, so it can be run

Win32 modules crash over the network

2010-11-07 Thread Charles Manafa
Folks, I seem to be having difficulties loading any Win32 module, when Perl is executed from a remote server. I basically copied a working local Perl installation to a server, so it can be run from any machine. Other modules load fine, but Win32 modules seem to crash. The client PCs are XP

Hello all and about Win32::MemMap...

2010-11-01 Thread Aminer
Jan Dubois wrote about Win32::MemMap: Interesting! I had another look, and it turns out that the Delphi code is just a separate DLL that doesnt know anything about Perl internals. .It is not called directly from Perl, but via Win32-API. Therefore Win32::MemMap does indeed seem to work

Win32::Pipe anyone use this module regularly, and fully understand it?

2010-10-20 Thread Greg Aiken
successfully written simple perl scripts that were able to send emails through a named pipe (one way only) to the sendmail program (in unix). but using this for a two-way send-receive situation with win32::Pipe is a more complicated thing. my client windows perl script is attempting

Win32::Pipe::CallNamedPipe does this function normally work?

2010-10-20 Thread Greg Aiken
when I run this simple client program use strict; use warnings; use Win32::Pipe; my $Data; Win32::Pipe::CallNamedPipe(.\\Pipe\\EPICIPCDPLX, 3, $Data); print data read from epic = $Data\n; I get this error; Can't locate auto/Win32/Pipe/CallNamedPi.al in @INC (@INC contains: C

RE: Win32::Pipe::CallNamedPipe does this function normally work?

2010-10-20 Thread Jan Dubois
The version of Win32::Pipe on CPAN (and in ActivePerl) may be a different version than the one mentioned on Dave’s website. You should check out the sample program included in Win32-Pipe to see how it works: http://cpansearch.perl.org/src/JDB/Win32-Pipe-0.024/eg/ Cheers, -Jan

RE: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

2010-10-18 Thread Wagner, David --- Senior Programmer Analyst --- CFS
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: Monday, October 18, 2010 15:53 To: perl-win32-users@listserv.activestate.com Subject: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

RE: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

2010-10-18 Thread Greg Aiken
work with. thanks for the info. _ From: Wagner, David --- Senior Programmer Analyst --- CFS [mailto:david.wag...@fedex.com] Sent: Monday, October 18, 2010 3:12 PM To: gai...@visioninfosoft.com; perl-win32-users@listserv.activestate.com Subject: RE: looking for amine's 'MemMap

RE: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

2010-10-18 Thread Jan Dubois
The problem with Win32::MemMap is that it was never released as source code AFAICT, so nobody but Amine will be able to compile it for a different platform (its internals are also implemented in Delphi, not standard C code, making things even more interesting…). But he still seems to hang

RE: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

2010-10-18 Thread Jan Dubois
If you follow that line of reasoning, then you have to realize that Perl 5.8 wasn’t out in 2001 either, so the binary really would be for 5.005 or 5.6. The ppd file and tarball don’t seem to match up. Cheers, -Jan From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl

RE: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

2010-10-18 Thread Greg Aiken
surprised to see that ppm did then install from my locally available files. the first tests I ran with it actually worked. my main problem here is I don't understand his naming scheme for the win32 named pipe. running sysinternals accesschk -osv, I see a named pipe as EPICIPCDPLX. the win32

RE: looking for amine's 'MemMap' module for Win32 x86 Perl version 5.8

2010-10-18 Thread Jan Dubois
Interesting! I had another look, and it turns out that the Delphi code is just a separate DLL that doesn’t know anything about Perl internals. It is not called directly from Perl, but via Win32-API. Therefore Win32::MemMap does indeed seem to work on multiple Perl versions as long as you

Win32::OLE on MS Word using Selection.Find.Execute

2010-09-14 Thread Kevin Gibbs
Hi Peter, This is a translation of a script from technet that works: use Win32::OLE; use Win32::OLE::Const 'Microsoft Word'; # http://www.microsoft.com/technet/scriptcenter/resources/officetips/may05 /tips0512.mspx my $word = new Win32::OLE 'Word.Application','' or die Cannot start

RE: Win32::OLE on MS Word using Selection.Find.Execute

2010-09-13 Thread Brian Raven
Peter Buck wrote: Does anyone have an example of a perl script acting on MS Word documents using Win32::OLE and Selection.Find.Execute? I have read the Win32 man page but its examples for Excel and Access don't help. I found a Powershell script that does what I want but can't translate

Re: Win32::OLE on MS Word using Selection.Find.Execute

2010-09-13 Thread Mark Leighton
Peter, OLE needs Variant values. Perl and the OLE modules will convert most of these on he fly for you, but sometimes I find I have a need to convert booleans explicitly. my $false = Win32::OLE::Variant-new(VT_VARIANT, 0); my $true = Win32::OLE::Variant-new(VT_VARIANT, 1); Mark On 9/12/2010

RE: Win32::OLE on MS Word using Selection.Find.Execute

2010-09-13 Thread Jan Dubois
On Sun, 12 Sep 2010, Peter Buck wrote: Does anyone have an example of a perl script acting on MS Word documents using Win32::OLE and Selection.Find.Execute? Actually, I do, and it is even part of the Win32::OLE module distribution on CPAN. But since it is not being installed with the actual

Win32::OLE on MS Word using Selection.Find.Execute

2010-09-12 Thread Peter Buck
Does anyone have an example of a perl script acting on MS Word documents using Win32::OLE and Selection.Find.Execute? I have read the Win32 man page but its examples for Excel and Access don't help. I found a Powershell script that does what I want but can't translate. The parts I'm

RE: TaskScheduler and Win32::OLE

2010-04-04 Thread Brzezinski, Paul J
Thanks -- I tried that earlier this week and was getting Server 500 errors. It worked today and I'm glad. -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users

Re: TaskScheduler and Win32::OLE

2010-04-03 Thread Marcial Borde
http://search.cpan.org/~UNICOLET/Win32-TaskScheduler2.0.3/TaskScheduler.pm http://taskscheduler.sourceforge.net/ El 02/04/2010 11:05 p.m., Brzezinski, Paul J escribió: I'm trying to use Win32::OLE to access the TaskScheduler [on Win2K3]. I would like to get all the configured tasks, finding

RE: TaskScheduler and Win32::OLE

2010-04-03 Thread Brzezinski, Paul J
- so it's not just me. -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services From: Marcial Borde [mailto:marcialbo...@adinet.com.uy] Sent: Saturday, April 03, 2010 8:23 AM To: Brzezinski, Paul J Cc: perl-win32-users@listserv.ActiveState.com Subject: Re: TaskScheduler

RE: TaskScheduler and Win32::OLE

2010-04-03 Thread Brzezinski, Paul J
: perl-win32-users@listserv.activestate.com Subject: RE: TaskScheduler and Win32::OLE There is no OLE object to work with tasks created by the Scheduled Tasks Wizard (the Win32_ScheduledJob object in WMI only works with tasks scheduled with AT). You can, however, use the schtasks command to produce

RE: TaskScheduler and Win32::OLE

2010-04-03 Thread Howard Tanner
Sorry, I don't have a Windows 2003 Server to test this on. However, I do have an XP virtual machine, and schtasks is indeed available, although the /XML option is not. So if XML isn't available on Win2K3, use a different format, like CSV. From: perl-win32-users-boun

  1   2   3   4   5   6   7   8   9   10   >