Re: unix guy needs win32 API help
- From: ivowel <ivowel@xxxxxxxxx>
- Date: Fri, 11 Jul 2008 21:18:18 -0700 (PDT)
On Jul 8, 8:24 am, Ben Morrow <b...@xxxxxxxxxxxx> wrote:
Quoth Ben Bullock <benkasminbull...@xxxxxxxxx>:
On Mon, 07 Jul 2008 18:55:16 -0700,ivowelwrote:
* in the file explorer, right-click on a file [whose name my perl
program provides] and select a particular program to invoke on this
file. For example, this could be "Send To -> Compressed (zipped)
Folder" or "Send to Mail Recipient". In my specific case, I want to
right-click a file to "Abby Finereader -> Convert into ..." or
"OmniPage 16 -> Convert to PDF". Fortunately, there is nothing else
that these invoked programs require as subsequent input.
Then I want to wait until the invoked program is completed and
exits. This is it.
As Martijn Lievaart mentioned, this isn't a Perl problem. Altering the
behaviour of the right-click menu in "Explorer" is to do with the Windows
registry.
I believe (but ICBW) that this is not what the OP is asking. I think he
is trying to *invoke* an existing right-click option on a given file.
For ordinary options (those in the first section of the menu, and those
in Send To) this is easy: just incoke the appropriate command with the
appropriate options. For those provided by dlls, this is much harder,
and I'm afraid I don't know of any easy way to do it. I would advise
checking the documentation of your OCR programs to be sure they don't
provide some sort of command-line interface.
Ben
--
All persons, living or dead, are entirely coincidental.
b...@xxxxxxxxxxxx Kurt Vonnegut
Exactly. I really want to write a sub in Perl that does exactly the
same as right-clicking by hand would achieve. Yes, these menu options
are provided by programs. (I used "Send to" as an illustration,
because everyone has seen what it is.)
In some sense, all that I need is something like
my $process = $somefilename->rightclick("OmniPage 16", "Convert to
Pdf"); # do the same thing as a hand-rightclick first on OmniPage16
and then its submenu Convert to pdf"
wait($process); # wait until it completes
That's it. Does anyone know?
/iaw
.
- Follow-Ups:
- Re: unix guy needs win32 API help
- From: Thrill5
- Re: unix guy needs win32 API help
- References:
- unix guy needs win32 API help
- From: ivowel
- Re: unix guy needs win32 API help
- From: Ben Bullock
- Re: unix guy needs win32 API help
- From: Ben Morrow
- unix guy needs win32 API help
- Prev by Date: Re: Could someone give me suggestions with my code?
- Next by Date: reliability problem with Finance::QuoteHist::Yahoo
- Previous by thread: Re: unix guy needs win32 API help
- Next by thread: Re: unix guy needs win32 API help
- Index(es):