Re: win32 issue

2006-04-26 Thread Lynn. Rickards
Timothy Johnson wrote: I don’t think this is enough information. * What is the value of $wordfile? * I’m assuming you’re trying to launch an instance of Microsoft Word. Is it installed on both systems? * What is your permission level on the systems? * What is the value

Re: Opening an Excel workbook with links to other data sources

2006-04-19 Thread Lynn. Rickards
Suresh Govindachar wrote: Hello, Issue: opening an excel file brings up a dialog box stating that the "workbook contains links to other data sources" and asks if the data should be updated. Just-in's suggestion of adding "$Excel->{DisplayAlerts} = 0;" to

Re: Battery info on a laptop

2006-03-05 Thread Lynn. Rickards
andrew Black wrote: $Bill Luebkert wrote: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp ... Power Classes The Power subcategory groups classes that represent power supplies, batteries, and events related to these devices.

Re: TK question

2006-02-07 Thread Lynn. Rickards
Spencer_Lists wrote: Greetings perl-win32-users, This is really a TK question but I can't find a way to join the TK list in order to post. It does not show up in the subscriptions list. I have a TK Canvas on which I have drawn 128 polygons representing the extended MIDI piano keyboard. I have t

Re: Win32::OLE and Acroread anybody?

2006-01-16 Thread Lynn. Rickards
:OLE->new("AcroExch.PDDoc"); > > HTH- > Thanks - though the first is indicated valid in acrord32.dll these and anything else I tried thus far, return "Invalid class string" I'm starting to think Adobe have crippled the Reader API.

Re: Win32::OLE and Acroread anybody?

2006-01-16 Thread Lynn. Rickards
; > HTH- > Thanks - though the first is indicated valid in acrord32.dll these and anything else I tried thus far, return "Invalid class string" I'm starting to think Adobe have crippled the Reader API. Maybe time to try working with SendKeys... :-( > > On 1/16/

Win32::OLE and Acroread anybody?

2006-01-16 Thread Lynn. Rickards
Greetings, Wondering if anyone has had any success controlling Adobe Acroreader thru OLE. There appears to be limited functionality exposed, as seen in OLE browser, but I didn't get past the first hurdle $acroApp = Win32::OLE->new('???'); Any clue most welcome. TIA - Lynn. ___

Re: converting from Row, Column to Cell Name, and back, in Excel

2006-01-04 Thread Lynn. Rickards
> From: Glen Plantz <[EMAIL PROTECTED]> > > Hi Folks, > > > Could someone tell me how to convert from the "Row, Column" ( 1,1) > reference to a Cell to using the "Cell Name" ( A1) ? > > > I know this is an FAQ, but I can't seem to find an answer. > > > Thanks for the help.

Re: uninitialized value in numeric gt ???

2006-01-03 Thread Lynn. Rickards
Michael D Schleif wrote: Happy New Year! I just installed spamassassin 3.1.0 (2005-09-13) on a debian box. Everything appears to be running OK, except these incessant errors: Use of uninitialized value in numeric gt(>) at /usr/lib/perl/5.8/DB_File.pm line 271. I have googled to no avail.

Win32, Excel CommandButtons, picture=>bitblt

2006-01-03 Thread Lynn. Rickards
Greetings, Finally figured that CommandButtons don't take an image filename but need the bitblt thingy available from LoadPicture in stdole.tlb library. Eg: my $cellHeight = 12.75; #Standard cell my $NewButton = $workSheet->OLEObjects->Add("Forms.CommandButton.1"); # Can set a bunch of propert

Re: Win32::OLE to write macro to Excel workbook?

2006-01-01 Thread Lynn. Rickards
Jan Dubois wrote: On Thu, 29 Dec 2005, Lyndon Rickards wrote: I'm looking to add some controls to a workbook, not possible using Spreadsheet::WriteExcel, with which I create the workbook. Advice, pointers anyone? Specifically Activate and deActivate routines to be written to ThisWorkbook and e

Re: Win32::OLE to write macro to Excel workbook?

2005-12-30 Thread Lynn. Rickards
Jan Dubois wrote: On Fri, 30 Dec 2005, Lynn. Rickards wrote: Thanks - that's a whole lot of steps in the right direction, but brings up the question what is perlCOM? I have the PDK but no sign there, and all the refs seem to indicate that is where it should be. PerlCOM used to be pa

Re: Win32::OLE to write macro to Excel workbook?

2005-12-30 Thread Lynn. Rickards
Jan Dubois wrote: On Thu, 29 Dec 2005, Lyndon Rickards wrote: I'm looking to add some controls to a workbook, not possible using Spreadsheet::WriteExcel, with which I create the workbook. Advice, pointers anyone? Specifically Activate and deActivate routines to be written to ThisWorkbook and e

What's up with AS ppm repository? (was - Why do they insist on making PPM so difficult to troubleshoot ??)

2005-12-23 Thread Lynn. Rickards
Lynn. Rickards wrote: Sisyphus wrote: Hi, D:\pscrpt>ppm install DBI PPM::PPD::init: not a PPD and not a file: Ok ... something funny is happening here. First thing I'd like to do is take a look at the PPD file. Where is it ? More importantly, where is the documentation that enabl

Re: Why do they insist on making PPM so difficult to troubleshoot ??

2005-12-23 Thread Lynn. Rickards
Sisyphus wrote: Hi, D:\pscrpt>ppm install DBI PPM::PPD::init: not a PPD and not a file: Ok ... something funny is happening here. First thing I'd like to do is take a look at the PPD file. Where is it ? More importantly, where is the documentation that enables me to find its location ? That r

Re: [aswin32] Re: How to disable a control without changing appearance

2005-12-19 Thread Lynn. Rickards
-left=>200,-top=>200, -width=>100,-height=>20, -onClick=>sub{}, ); On 12/18/05, *Robert May* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Lynn

Re: How to disable a control without changing appearance

2005-12-17 Thread Lynn. Rickards
Chris Rogers wrote: I'm looking for a way to disable a control (widget) without changing it's appearance. I would like to be able to do this for any type of control. Any help would be greatly appreciated. Thanks, Chris Tk? Win32? Either way, what comes to mind instead of disabling, is con

Re: List of Packages Supplied with ActivePerl Vx.y.z?

2005-11-10 Thread Lynn. Rickards
Randy Kobes wrote: On Thu, 10 Nov 2005, Veli-Pekka Tätilä wrote: Hi, A quick and simple question: How can I tell which packages are supplied with a given Active State Perl release? I've often been wondering this when distributing some of my own scripts to other people running Windows. Provide

RE: perl56 to 58...delay on line prints

2005-04-23 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Paul Rogers > Sent: Saturday, April 23, 2005 6:04 PM > To: Perl-Win32-Users > Subject: perl56 to 58...delay on line prints > > > I just upgraded to 5.8. One thing I noticed is that it treats > line p

RE: Can a variable be made like this?

2004-03-24 Thread Lynn. Rickards
> > > No... > > you [don't really] want > > perl -e "$x='hello';${$x}='Check this';print $hello;" > > YOU WOULD BE BETTER TO USE A HASH... Why do you need this > [very unsafe] > construct? > > Kind regards, > > Mark Anderson > SMS Deployment Good advice. #!perl -w use strict; my %greetin

RE: Windows not passing args. in @ARGV - why not???

2004-03-05 Thread Lynn. Rickards
>I need some help with a dumb problem I've got: > >For some reason, arguments from the Windows cmd.exe command line are no longer being >passed into my Perl >scripts via @ARGV. > >Used to work fine. > >I tried removing Perl. Reinstalled (ActiveState) Perl (5.8.3.809-MSWin32-x86.msi) (on >XP). No

RE: Win32::FileOp - BrowseForFolder

2004-03-03 Thread Lynn. Rickards
> > > Hi all, > > I'm using the function BrowseForFolder from the Win32::FileOp module. > Is there a possibility to use a root folder that is not a > CSIDL_... constant > (e.g. like c:/perl/site/lib or so)? > > The user of my application has to browse for a folder multiple times. > If he alwa

RE: Perl and delphi interaction query.

2004-02-10 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Beckett Richard-qswi266 > Sent: Tuesday, February 10, 2004 12:13 PM > To: '[EMAIL PROTECTED]' > Subject: Perl and delphi interaction query. > > > Guys, > > I inherited a delphi GUI, which is too comp

RE: Perl 5.8 IIS 5.0 hangs on script failure

2004-01-08 Thread Lynn. Rickards
> > > [EMAIL PROTECTED] wrote: > > > Yes, I understood that in the very first email you adviced > me to use eval. In fact, I replied to you saying that the > script printed the error and PerlIS did not hang. But... what > if I have dozens of scripts I have coded in years and all of > them us

RE: Read Fixed width database

2004-01-07 Thread Lynn. Rickards
> > > Hi All! > > Is there an easy way (or module) to turn a flat fixed-width > database into > useful data? I would like to dump particular database fields > into a hash. > > > Tom Jones12345 Something Dr. Atlanta GA25467 > JohnDoe 1704 Green Street Boston

RE: Win32 PPT Adding Autoshapes

2004-01-07 Thread Lynn. Rickards
> > I am trying to add autoshapes to an embedding Excel slide. > The VBA code I > have works so I should only need to make a few modifications > to get it to > work in perl but I am having problems: > > Can't call method "Win32::OLE=HASH(0x19df12c)" on an > undefined value at > test.pl > lin

Re: subroutine name

2003-12-19 Thread Lynn. Rickards
On Friday 19 December 2003 15:41, Eckart Uhlig wrote: > Hi all, > is there a way to determine the name of the current called subroutine? I > don't want to print out the subroutine's name explicitly, I'm hoping for > a 'magic' variable/ function or something like that, which I can pass to > a plain

RE: Capturing X.

2003-12-18 Thread Lynn. Rickards
> Beckett Richard-qswi266 > Guys, > > Does anyone know how to catch the user pressing the X in the > corner of the > window, like I can catch the Control-C? > > $SIG{"INT"} = \&control_c; > That's a function of the wm - use protocol to trap the event: $mw->protocol('WM_DELETE_WINDOW', [ sub

RE: unlink

2003-12-16 Thread Lynn. Rickards
> > Hey Listers- > This is not homework. I am teaching myself perl. > Question: > Does the unlink command not work on windows? The book I am > using has some > code examples using it but I am wondering if it might be UNIX > specific. I > hope my code isn't that bad. > Thanks! > Eric > Unlink

RE: What about Win32-MAPI?

2003-11-20 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Guillermo Lopez > Sent: Thursday, November 20, 2003 10:51 AM > To: '[EMAIL PROTECTED]' > Subject: What about Win32-MAPI? > > > Hi all, > > Does anybody know anything about Win32-MAPI? I can not find

RE: How to install modules that aren't available in ActiveState's repository?

2003-11-11 Thread Lynn. Rickards
perl -MCPAN -e "install XML::SAX::Machines"   There is a ton of dependencies and you will need either to ppm those with XS content first (hope they're all available...) or have MSVC installed to compile the DLLs.   Checking the buildstatus pages on http://ppm.activestate.com there appea

RE: Looking for a window

2003-11-08 Thread Lynn. Rickards
Maybe useful to mention that there are a number of sample scripts included with the CPAN distro that you won't find in the ppm. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Messenger, Mark > Sent: Friday, November 07, 2003 8:52 PM > To: [EMAIL PROT

RE: HTML::Parser

2003-10-16 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Noushad Dawood > Sent: Thursday, October 16, 2003 11:25 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: HTML::Parser > > > > Lynn, > > I've 2 sets of lib. May be it is conflicting.

RE: Tk forgetting grid labels.

2003-10-16 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Beckett Richard-qswi266 > Sent: Thursday, October 16, 2003 11:07 AM > To: '[EMAIL PROTECTED]' > Subject: Tk forgetting grid labels. > > > Guys, > > I have a Tk GUI, which contains a notebook. > > On

RE: HTML::Parser

2003-10-16 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Noushad Dawood > Sent: Thursday, October 16, 2003 10:14 AM > To: [EMAIL PROTECTED] > Subject: HTML::Parser > > > I don't know why this error still comes up? I got all these > files properly > install

RE: TK positioning viewable area of scrolled rotext

2003-10-08 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Beckett Richard-qswi266 > Sent: Wednesday, October 08, 2003 6:52 AM > To: '[EMAIL PROTECTED]' > Subject: TK positioning viewable area of scrolled rotext > > > Guys, > > I am using a scrolled rotext wid

RE: Capturing the output of a sytem() command

2003-10-06 Thread Lynn. Rickards
> -Original Message- > From: Lynn. Rickards [mailto:[EMAIL PROTECTED] > Sent: Monday, October 06, 2003 12:43 PM > To: 'George Gallen'; '[EMAIL PROTECTED]' > Subject: RE: Capturing the output of a sytem() command > > > > > >

RE: Capturing the output of a sytem() command

2003-10-06 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Thomas, Mark - BLS CTR > Sent: Monday, October 06, 2003 11:21 AM > To: 'George Gallen'; [EMAIL PROTECTED] > Subject: RE: Capturing the output of a sytem() command > > > > Let me clarify ths slightly.

RE: Spreadsheet-like data entry/editing in PerlTk?

2003-09-30 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Dax > T. Games > Sent: Tuesday, September 30, 2003 8:12 AM > To: [EMAIL PROTECTED] > Subject: Spreadsheet-like data entry/editing in PerlTk? > > > Does anyone know of a Tk widget or have some sample

RE: Perl editors

2003-09-23 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > $Bill Luebkert > Sent: Monday, September 22, 2003 8:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Perl editors > > > Cameron Dorey wrote: > > > REAL (old) men use the toggle switches on the front of t

RE: What is wrong with this?

2003-08-14 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > steve silvers > Sent: Tuesday, August 12, 2003 9:53 AM > To: [EMAIL PROTECTED] > Subject: What is wrong with this? > > > I don't understand why the output of the below snippet kind > of blows up.. >

RE: empty versus zero

2003-08-14 Thread Lynn. Rickards
[EMAIL PROTECTED] Behalf Of > Will of Thornhenge > Sent: Wednesday, August 13, 2003 8:36 PM > To: [EMAIL PROTECTED] > Cc: 'David Byrne' > Subject: Re: empty versus zero > > > I prefer Lynn. Rickards' method to the others I've seen mentioned. > Testing

RE: empty versus zero

2003-08-14 Thread Lynn. Rickards
> I think this is a fairly simple question... > How can I count empty values in an array? This count > should not include zeros or non-empty values. Below > is my current script, but it isn't working properly. > > I appreciate any assitance that you may provide. > > Thank you, > David > > #!