Re: GTK2 Accessibility on Win32, Alternative GUi Libs?

2005-09-20 Thread jeff griffiths
ActiveState recently released the Tkx module on CPAN; Tkx works in a similar fashion to Python's Tkinter or the existing Tcl::Tk module. Tkx provides a clean interface into scripting Tk from Perl, and should support MSAA version 1 at least. Tkx also allows you to use themed Tk widgets; an examp

RE: Win32::OLE(0.1701) error 0x80005000 when adding a computer to AD using Perl

2005-09-20 Thread Peter Guzis
The line "This code works fine when I run it as a stand alone program" leads me to believe it is a permission issue. Integrated Windows Authentication does not work well when your script needs to access a third system (in this case the domain controller). Try switching to basic authentication

Win32::OLE(0.1701) error 0x80005000 when adding a computer to AD using Perl

2005-09-20 Thread Zeltov Alex
 I am running into a problem, when I execute a simple script to add a computer to an AD when I do it through a cgi script.This is the code that I am running:my $strBase = "OU=iLab - iLab Gatekeeper,OU=InfrApps - Infrastructure Managed Apps,OU=Applications,OU=US-DC1,DC=resdm50,DC=ilab,DC=sieme

GTK2 Accessibility on Win32, Alternative GUi Libs?

2005-09-20 Thread Veli-Pekka Tätilä
Hi list, The recent post about GTK on Win32 got me thinking of using that library in Perl applications intended for Win32. I'd like to do a GUI in perl but such that it is accessible to WIndows screen reader programs. That's because I have to use one myself. While the Win32::GUI package does

RE: Regex

2005-09-20 Thread Matthew Ryan
David wrote: >I thought this was working, but my logs just showed a case where it seems >not to do what I want. >Why does: >$OK_body=($body=~/library\s*?card\D*?(\d{7})\D/i) ; >Not become true when $body contains: >Library Card: 0240742 >Just possibly there's some dodgy html or something in the o

RE: Regex

2005-09-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > I thought this was working, but my logs just showed a case where it > seems not to do what I want. > Why does: > $OK_body=($body=~/library\s*?card\D*?(\d{7})\D/i) ; > Not become true when $body contains: > Library Card: 0240742 > > Just possibly there's some dodgy html

gtk2

2005-09-20 Thread Martin, Greg (RTIS)
Title: gtk2 I'm new to gtk and (not too experienced at Perl either!).  I'm taking a stab at porting NagiosWatch so it will run under Windows. The big problem was I couldn't find gtk1 .dlls so I switched it to gtk2.  It went well and I have a working version.  What I'm trying to solve at the mo

Re: Regex

2005-09-20 Thread $Bill Luebkert
David Budd wrote: > I thought this was working, but my logs just showed a case where it seems not > to do what I want. > Why does: > $OK_body=($body=~/library\s*?card\D*?(\d{7})\D/i) ; What's the last \D for ? '\s*?' should just be '\s*' - same with \D*?. > Not become true when $body contains:

Re: Regex

2005-09-20 Thread James Sluka
Perhaps you need to change the final \D to \D* since it is possible that there is nothing after the 7 digits. Or perhaps omit the last \D completely. Your code works with; $body='Library Card: 0240742 '; # has a character after the 7 digits but fails with; $body='Library Card: 0240742';

Re: Regex

2005-09-20 Thread Siebe Tolsma
The string $body ("Library Card: 0240740") does not end in \D ("not a number"). You might want to add a * to that if you want to make sure it matches strings that _do_ end in \D (ie. \n or \r\n or whatever stuff comes behind the "ID") and those that end in the ID itself. - Original Message

RE: Regex

2005-09-20 Thread Joe Discenza
Title: Regex David Budd wrote, on Tue 9/20/2005 10:57: : I thought this was working, but my logs just showed a case where it seems not to do what I want.: Why does:: $OK_body=($body=~/library\s*?card\D*?(\d{7})\D/i) ;: Not become true when $body contains:: Library Card: 0240742 Probably b

RE: Check for running process

2005-09-20 Thread Dirk Bremer
Here is another example by searching for the actual program-name in the process-list: use Win32::OLE qw(in); use Win32::OLE::Variant; # Find all PIDs, program-names, and executable paths for all running processes. for my $Process (sort{lc($a->{Name}) cmp lc($b->{Name})} in ($WMI->Instance

Regex

2005-09-20 Thread David Budd
I thought this was working, but my logs just showed a case where it seems not to do what I want. Why does: $OK_body=($body=~/library\s*?card\D*?(\d{7})\D/i) ; Not become true when $body contains: Library Card: 0240742 Just possibly there's some dodgy html or something in the original that doen't

RE: Check for running process

2005-09-20 Thread John Serink
Title: Message my @jim=`tasklist`;   now parse jim and find with you're looking for. ALternatively: my @jim=`tasklist|find "whatyou'relookingfor"`;   Jim will likely contain only one entry now, the thing you're looking for.   :) John -Original Message-From: [EMAIL PROTECTED]

Re: Check for running process

2005-09-20 Thread $Bill Luebkert
Darrell Snedecor wrote: > How do I use Perl to check for the existence of a running program in > Windows? You could use WMI or Win32::PerfLib or Win32::Process::Info depending on what you really need. The latter is probably your easiest choice. -- ,-/- __ _ _ $Bill Luebkert

RE: Check for running process

2005-09-20 Thread Dirk Bremer
Here is one way by searching for a window-name in the variable $Program: # Check for another instance of this program. use Win32::GUI; my $Desktop = GUI::GetDesktopWindow(); my $Window = GUI::GetWindow($Desktop, GW_CHILD); my $Nbr = 0; # $Program= ($HostName eq 'ma

Check for running process

2005-09-20 Thread Darrell Snedecor
How do I use Perl to check for the existence of a running program in Windows?     Best Regards Darrell Snedecor Director Harrisburg Project 800-635-5274  618-253-8504     ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To