Re: Happy 20th Birthday, Perl!

2007-12-19 Thread Veli-Pekka Tätilä
ionally. It is a great lang for the file processing and text parsing I routinely do, as well as easy Win32 programming thanks to all the wonderful modules in the Win32::* namespace and the ease of use of PPM. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, s

Re: #ifdef-like way to make code work on both Windows/Linux?

2007-10-18 Thread Veli-Pekka Tätilä
ile::Spec::OS2 works on DJGPP. cygwin => 'Cygwin'); my $module = $module{$^O} || 'Unix'; require "File/Spec/$module.pm"; @ISA = ("File::Spec::$module"); etc... Hope this helps. BTW: this is the first time I'm viewing the File::Spec

Re: Registerhotkey() Using Win32 API and GUI

2007-09-24 Thread Veli-Pekka Tätilä
r32 => 'BOOL UnregisterHotKey(HWND w, int id)' ); # Hooking and calling after having created win. $win->Hook(WM_HOTKEY, \&key); RegisterHotKey ( $win->{'-handle'}, HOTKEY_ID, MOD_SHIFT | MOD_CONTROL, ord 'q'

Registerhotkey() Using Win32 API and GUI

2007-09-23 Thread Veli-Pekka Tätilä
e project. Googling for Win32 hooks produces some nice links, for instance. I've used hooks a bit in screen reading but the code is way too ugly to be published, . And for screen reading, Win32::ActAcc is infinitely better. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Acce

Multimedia Timers or Other Hi Res Timing

2007-09-13 Thread Veli-Pekka Tätilä
's a link to an early alpha version, though the GUi code is messy and the architecture could be much better: http://www.student.oulu.fi/~vtatila/beats_me.html Any help appreciated. I've already asked in the Win32::GUI list so appologies for any redundancy. -- With kind regards Veli-Pekka T

Re: Lib and Site Conflicts in PPM, Upgrading Perl Cleanly?

2007-08-22 Thread Veli-Pekka Tätilä
-+ (1 package installed matching 'readline') >perl -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 18 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Binary build 822 [280952] provided by ActiveState http:/

Re: Lib and Site Conflicts in PPM, Upgrading Perl Cleanly?

2007-08-22 Thread Veli-Pekka Tätilä
Sisyphus wrote: > From: "Veli-Pekka Tätilä" <[EMAIL PROTECTED]> > > If lib and site lib both have > > the same package, which one takes priority in use? > With build 822, site/lib is searched first, then lib, then the cwd > However, the order is different for

Lib and Site Conflicts in PPM, Upgrading Perl Cleanly?

2007-08-21 Thread Veli-Pekka Tätilä
talled module is not installed according to PPM, and needs to be reinstalled to site, for the PPM install of the desired module to succeed. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http:

Feedbac: Accessibility of Graphical PPM in Beta 2

2006-08-01 Thread Veli-Pekka Tätilä
owledge, GTK2 is still currently the only accessible major GUI library in Linux, although QT4 will follow. On the Macintosh, the Aqua UI generaly works, where as anything else including MacOS Classic, Carbon and X Window System does not. Well, hope this can be of help. I would appreciate

Re: PERL on a CD: Ini Association and relative Path Woes

2006-07-26 Thread Veli-Pekka Tätilä
ying to add new actions to folders. In my case, this Microsoft article helped: http://support.microsoft.com/?kbid=321186 -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.s

Re: Up-to-date Alternatives to Tiny Perl? (Was: PERL on a CD)

2006-07-25 Thread Veli-Pekka Tätilä
e licence policy, which wouldn't let me distribute such modified distroes if based on Active State. So any help greatly appreciated. I've Googled the Web and comp.lang.perl-misc with pretty bad results so far. Gotta go now. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTE

Re: $# and %s Crashing Perl V5.8.7

2006-06-21 Thread Veli-Pekka Tätilä
Joe Discenza wrote: "Veli-Pekka Tätilä" wrote, on Wednesday, June 21, 2006 1:54 PM $# = '%s'; # But an invalid format. print $pi; # crashes the interpreter. I'm running Active State Perl v5.8.7 build 815 [211909]. I just tested this with build 638, also XP Pro SP2, w

$# and %s Crashing Perl V5.8.7

2006-06-21 Thread Veli-Pekka Tätilä
Pro SP2 with all the latest fixes and this is an HP & Compaq NX8220 laptop, in case it has any relevance. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/

Re: Calling SetWindowsHookEx()?

2006-06-20 Thread Veli-Pekka Tätilä
wParam, lParam=$lParam\n"; $CallNextHookEx->Call(0, $nCode, $wParam, $lParam); } my $KeyboardHookCallback = new Win32::API::Callback(\&KeyboardHook, 'NNP', 'N'); my $ThreadId = $GetCurrentThreadId->Call(); my $Hook = $SetWindowsHookEx->Call($WH_KEYBOA

Re: PPM4 GUI and the Blind (Was: Beta of PPM version 4 released: Usability, Feature Suggestions)

2006-06-18 Thread Veli-Pekka Tätilä
d-line equivalent to my knowledge. Hope this clarifies matters. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-Users mailing l

Re: OT: Accessibility of CPAN Searches (Was: Beta of PPM version 4 released)

2006-06-18 Thread Veli-Pekka Tätilä
http://redish.net/content/papers/interactions.html -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-Users mailing list Perl-Win32-U

Re: Calling SetWindowsHookEx()?

2006-06-18 Thread Veli-Pekka Tätilä
Win32 hooks. I wrote it before having taken any courses in WIn32 programming so the code isn't that good to begin with. But I've tried to explain most of the concepts on the way. Here you are: http://tols17.oulu.fi/~vtatila/ohjy/english/ -- With kind regards Veli-Pekka

Re: Beta of PPM version 4 released: Usability, Feature Suggestions

2006-06-18 Thread Veli-Pekka Tätilä
mess around with class paths and so on, guess you get the picture. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-U

Re: Block Alt+TAB?

2006-06-13 Thread Veli-Pekka Tätilä
matter. Access to the taskkill program in XP or setting focus to task manager by windows+r, taskmgr would be fatal, too. Or a user simply bringing their own task manager with them on removable media, and written in PErl for good measure. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED

Re: OT: Basic Graphics (GD) Qs: Line Widths, Output Methods (Was: Simple APi for Raster Graphics)

2006-06-09 Thread Veli-Pekka Tätilä
out an unknown file format if I give it a dash input file, and attempt piping using the shell (cmd.exe in XP). I've checked Irfan's command-lien options but saw no mention of piping. Oh welll. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthes

Simple API for Drawing Raster Graphics?

2006-06-07 Thread Veli-Pekka Tätilä
familiar with Win32::GUI, though, and have never really programmed TK, but fortunately it would seem that displaying a bitmap or drawing requires minimal startup code. Any module suggestions appreciated. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, ga

Re: Catch ctrl-c

2006-05-07 Thread Veli-Pekka Tätilä
for me at least. Try the following: use strict; use warnings; $SIG{INT} = sub { print "Ctrl+c\n" }; local $_ = <>; # Opportunity for pressing ctrl+c. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programm

Re: Sort not fixing order in equivalent subsequences

2006-05-05 Thread Veli-Pekka Tätilä
be of help. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubsc

Re: Implementing or Emulating TSRs in Win32 Console Apps

2006-03-17 Thread Veli-Pekka Tätilä
u use the marginally shorter forms u and ur in stead of you and your. U renders quite well with a speech synth here, but ur is pretty much indistinguishable from err, . -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synth

Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread Veli-Pekka Tätilä
modules available via PPM if there are any. Lastly, out of curiosity how do these things work in Unix? I haven't used much of it but the first example that came to mind is the app which let's you know of new mail in SunOs. Any help appreciated as usual. -- With kind regards Veli-P

Re: Even after runtime eval with no __DIE__, can't avoid dying inside perldoc

2005-12-18 Thread Veli-Pekka Tätilä
rsing module/eval true (1)Executing an eval false (0) Otherwise The first state may happen in $SIG{__DIE__} and $SIG{__WARN__} handlers. End quote. Hope this helps. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.st

Re: CPU Usage in Percentages for Each Process?

2005-11-27 Thread Veli-Pekka Tätilä
y purposes. Lastly, seems the task info tool is an excellent 3rd party utility for the job. Very extensive info and a command-line interface, too. Nice. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.f

CPU Usage in Percentages for Each Process?

2005-11-26 Thread Veli-Pekka Tätilä
at kind of activity I should be looking for, that is by which name the function might go by. Any help greatly appreciated as usual. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ _

Retrofitting OOP Syntax for Array Builtins (e.g. $array->sort)

2005-11-15 Thread Veli-Pekka Tätilä
in the process. So, are there any strategies I might have overlooked or is this pseudo-OOP syntax simply something unreachable (without doing func specific work)? Also, any tips or general help would be appreciated as usual. PS: I reckon it is ok to ask this kind of question, even

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

2005-11-11 Thread Veli-Pekka Tätilä
Hi Randy and Lynn, And thanks for your quick and informative replies. Veli-Pekka Tätilä wrote: 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.

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

2005-11-10 Thread Veli-Pekka Tätilä
ot seem to find it, oh well. One way might be to have the person list his or her package directory with the tree command in a DOS Box. But this is still a manual method and requires a bit of hand holding, if the person at the other end has never used a command-line before. -- With kind reg

Re: PPM Questions: Unattended Upgrades, Beep for Input (Async I/O, open2)

2005-10-26 Thread Veli-Pekka Tätilä
$Bill Luebkert wrote: Veli-Pekka Tätilä wrote: problem is how do I wrap PPM so that I can both read from and write to it? Why not just modify this code in ppm3-bin starting around line 3109 : Well, I was hoping for a more generic solution so I might learn something new in the process, too

Re: PPM Questions: Unattended Upgrades, Beep for Input (Async I/O, open2)

2005-10-25 Thread Veli-Pekka Tätilä
. But I'll stop right here before this whole thing is totally OT. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-Users mailing

PPM Questions: Precious Switch, Unattended Upgrades, Beep for Input Prompt

2005-10-25 Thread Veli-Pekka Tätilä
imer running in another thread, when main is blocked in waiting for more input. Just some thoughts. I tried looking in the PPm FAQ but didn't find answers to these questions. By the way, I'm running Active State 5.8.6 on a Win XP Pro machine with all the latest fixes: -- With kind rega

Re: Regex Newbie Q: Non-Trivial Substitution and Modifying the MatchedString

2005-10-10 Thread Veli-Pekka Tätilä
Joe Discenza wrote: "Veli-Pekka Tätilä" wrote, on Sun 10/9/2005 15:58 replacement is so complex that it cannot be expressed as a straight substitution. So I would have to find a piece of text, process it in a separate function, and replace the matched text with the newly computed

Re: Regex Newbie Q: Non-Trivial Substitution and Modifying the Matched String

2005-10-10 Thread Veli-Pekka Tätilä
tch the whole thing. I'm currently going through a tutorial on recursive, descent parsers and writing the stuff in, you guessed it Perl, rather than Pascal. But this is getting OT, at least as far as my original problem goes, which was cleanly solved by at least two people already,

Regex Newbie Q: Non-Trivial Substitution and Modifying the Matched String

2005-10-09 Thread Veli-Pekka Tätilä
y or incomplete, just ask and I'll try to provide more info. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-

TK's Screen Reader and Keybord Accessibility, Win32::GUI Questions

2005-09-24 Thread Veli-Pekka Tätilä
greatly appreciated. System: -HP NX8220 laptop with 1 GB of RAM -Win XP SP 2 Pro English with latest fixes -Dolphin Supernova 6.03 -Active State Perl 5.86 -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synth

Re: TKX Installation: Required TCL Components? (Was: GTK2 Accessibility on Win32 etc...)

2005-09-22 Thread Veli-Pekka Tätilä
en the thing running in the first place. With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-Users mailing list Pe

GTK2 Accessibility on Win32, Alternative GUi Libs?

2005-09-20 Thread Veli-Pekka Tätilä
standard. But that is an OT:ish quibble, anyway. Any thoughts appreciated. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-Users mailing li

Re: perl2exe and the Missing Files: Problem Solved

2005-08-25 Thread Veli-Pekka Tätilä
in Supernova, isn't able to pull off yet, though it costs 1000 euros. Nice. With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ ___ Perl-Win32-User

Re: perl2exe and the Missing Files: Win32::ActAcc and Dlls

2005-08-23 Thread Veli-Pekka Tätilä
e of installation as I've added quite many of them afterwords. Searching based on date may also fail, because of a recently run update all style command in PPM. I didn't update precious, though, whatever that means. PS: OS is the English XP SP 2 with all the latest fixes applied.

Re: perl2exe and the Missing Files: Win32::ActAcc and Dlls

2005-08-22 Thread Veli-Pekka Tätilä
"Async flag: $const->{SVSFlagsAsync}\n"; # Win32::API Win32::API::Struct->typedef( POINT => qw { LONG x; LONG y; }); # point. Win32::API->Import('user32', 'BOOL GetCursorPos(LPPOINT lpPoint)'); my $point = Win32::API::Struct->new('POINT'); GetCurs

perl2exe and the Missing Files: Resolving Dependencies, Alternative Programs?

2005-08-20 Thread Veli-Pekka Tätilä
is there an easy manual method that I could apply systematically to find the files? Lastly, are there any other perl to exe converters worth trying? I'm still a perl newbie as you might have noticed but have programmed in some other languages both OOPy and procedural. Any and all help gre

Re: Getting the Mouse Pointer Location Regardless of Active Window

2005-08-17 Thread Veli-Pekka Tätilä
Sisyphus wrote: From: "Veli-Pekka Tätilä" <[EMAIL PROTECTED]> able to get the mouse pointer location in Perl regardless of whether mouse events are going to muy application window or to some other thread or process in stead. use Win32::API; Win32::API::Struct->typedef( PO

Getting the Mouse Pointer Location Regardless of Active Window

2005-08-16 Thread Veli-Pekka Tätilä
be written in C, because system wide hooks must reside in DLLs according to MSDN and thus Perl is out, I guess. With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ _

Re: Bug in OLE and Threading in V5.86?

2005-08-13 Thread Veli-Pekka Tätilä
Jan Dubois wrote: On Fri, 12 Aug 2005, Veli-Pekka Tätilä wrote: The issue occurs hwen trying to use OLE together with threading. Yes, that is a known issue. Don't use Win32::OLE with threading, it doesn't work. Ok, good to know and thanks for a quick reply. Is this fact already

Bug in OLE and Threading in V5.86?

2005-08-12 Thread Veli-Pekka Tätilä
some levle but am just experimenting with those of Perl. If the crashing problem is a real bug, will updating to the latest version of Win32::OLE and or Active State Perl fix it? Lastly, where can I get the latest version of Win32::OLE using PPM? Hope this can be of help and sorry in advance, i

Re: moving the focus using tab, Accessibility, UI Alternatives

2005-08-12 Thread Veli-Pekka Tätilä
edhat etc... using in ASCII wizards and can I get the same thing for Windows applications in Perl? With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila/ Octavian Rasnita wrote: Hi, I am trying to cre

Re: Implementing Active Accessibility Clients in Perl

2005-08-09 Thread Veli-Pekka Tätilä
ant methods won't work with 2.0 or the screen reader causes some side effects. Both explanations are very unlikely but I'm beginning to run out of ideas, , and thought I'd post some newbie Qs here, then. With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibili

Implementing Active Accessibility Clients in Perl

2005-08-09 Thread Veli-Pekka Tätilä
inally I should mention that it would probably be easiest to use MSAA, if there was a Perl module for it. I found a neat Python wrapper around MSAA at: http://www.cs.unc.edu/~parente/tech/tr09.shtml but haven't so far found anything equivalent implemented in Perl. With kind regards Veli-

OLE Automation of OmniPage 12: Newbie Qs

2005-08-05 Thread Veli-Pekka Tätilä
f I could do a little perl script that does the job it might help a great deal in interpreting textual but image based content quickly without having to fall back to full-screen magnification, or manual OCRing for that matter. Any help greatly appreciated as usual. With kind regards Veli-Pekka Tätilä