Home > Archive > PERL Beginners > June 2005 > A question about Win32:OLE
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
A question about Win32:OLE
|
|
| J aperlh 2005-05-30, 3:56 am |
| A question about Win32:OLE!
Where can I get the program ID of an application?
Get it from OLE/COM Object Viewer or something else?
my $app =3D Win32::OLE->new('Word.Application', 'Quit');
!
| |
| Siegfried Heintze 2005-05-31, 8:56 pm |
| You can use regedit too. The OLE/COM Object Viewer is the favorite.
Well, actually, the documentation/tutorial for the function you are trying
to call is the favorite.
If you know the CLSID, you can call a function like CLSIDtoString (or
something like that) to get the progid.
Siegfried
-----Original Message-----
From: J aperlh [mailto:japerlh@gmail.com]
Sent: Sunday, May 29, 2005 8:10 PM
To: beginners@perl.org
Subject: A question about Win32:OLE
A question about Win32:OLE!
Where can I get the program ID of an application?
Get it from OLE/COM Object Viewer or something else?
my $app = Win32::OLE->new('Word.Application', 'Quit');
!
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>
| |
| J aperlh 2005-06-01, 3:55 am |
| Thanks for your help!
I have a application installed on my system.
I can start the application by using:
=09my $app =3D Win32::OLE->GetActiveObject('Aaa.Bbb');
The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
OLE-Browser.
I did a thorough search!
Another question is:
How do I shut the application down?
On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> You can use regedit too. The OLE/COM Object Viewer is the favorite.
>=20
> Well, actually, the documentation/tutorial for the function you are tryin=
g
> to call is the favorite.
>=20
> If you know the CLSID, you can call a function like CLSIDtoString (or
> something like that) to get the progid.
>=20
> Siegfried
>=20
>=20
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Sunday, May 29, 2005 8:10 PM
> To: beginners@perl.org
> Subject: A question about Win32:OLE
>=20
> A question about Win32:OLE!
>=20
> Where can I get the program ID of an application?
> Get it from OLE/COM Object Viewer or something else?
>=20
> my $app =3D Win32::OLE->new('Word.Application', 'Quit');
> !
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>
| |
| Siegfried Heintze 2005-06-01, 3:56 pm |
| Well I'm surprised that you cannot find with the OLE/COM viewer. Did you try
regedit like I recommended? You can search with regedit more easily than you
can OLE/COM viewer anyway.
But I don't' understand your problem: if your application is working, why do
you care if you can find it in OLE/COM viewer?
Re. shutdown: Check the documentation for Win32::OLE -- I remember there is
a way to shut down an application.
Now beware the some applications, like Microsoft Word, don't follow the
rules. You can observer this by creating an instance of Microsoft word and
$app->Visible = $true;
When you release the application, the application (and its window, of
course) is supposed to shut down but it does not. So maybe your application
misbehaves in the same manor. There may be a function you can call like
quit, or exit that will make the application shut down.
Siegfried
-----Original Message-----
From: J aperlh [mailto:japerlh@gmail.com]
Sent: Tuesday, May 31, 2005 6:48 PM
To: Siegfried Heintze
Cc: beginners@perl.org
Subject: Re: A question about Win32:OLE
Thanks for your help!
I have a application installed on my system.
I can start the application by using:
my $app = Win32::OLE->GetActiveObject('Aaa.Bbb');
The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
OLE-Browser.
I did a thorough search!
Another question is:
How do I shut the application down?
On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> You can use regedit too. The OLE/COM Object Viewer is the favorite.
>
> Well, actually, the documentation/tutorial for the function you are trying
> to call is the favorite.
>
> If you know the CLSID, you can call a function like CLSIDtoString (or
> something like that) to get the progid.
>
> Siegfried
>
>
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Sunday, May 29, 2005 8:10 PM
> To: beginners@perl.org
> Subject: A question about Win32:OLE
>
> A question about Win32:OLE!
>
> Where can I get the program ID of an application?
> Get it from OLE/COM Object Viewer or something else?
>
> my $app = Win32::OLE->new('Word.Application', 'Quit');
> !
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
| |
| J aperlh 2005-06-02, 3:56 am |
| Thanks for your help.
I can find it in regedit.
I have to find it out in OLE/COM Object Viewer or OLE-Browser
to get the methods and properties of this OLE server.
It's really not good that OLE/COM Object Viewer and OLE-Browser don't
have a search function...
On 6/2/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> Well I'm surprised that you cannot find with the OLE/COM viewer. Did you =
try
> regedit like I recommended? You can search with regedit more easily than =
you
> can OLE/COM viewer anyway.
>=20
> But I don't' understand your problem: if your application is working, why=
do
> you care if you can find it in OLE/COM viewer?
>=20
> Re. shutdown: Check the documentation for Win32::OLE -- I remember there =
is
> a way to shut down an application.
>=20
> Now beware the some applications, like Microsoft Word, don't follow the
> rules. You can observer this by creating an instance of Microsoft word an=
d
> $app->Visible =3D $true;
>=20
> When you release the application, the application (and its window, of
> course) is supposed to shut down but it does not. So maybe your applicati=
on
> misbehaves in the same manor. There may be a function you can call like
> quit, or exit that will make the application shut down.
>=20
> Siegfried
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Tuesday, May 31, 2005 6:48 PM
> To: Siegfried Heintze
> Cc: beginners@perl.org
> Subject: Re: A question about Win32:OLE
>=20
> Thanks for your help!
>=20
> I have a application installed on my system.
> I can start the application by using:
> my $app =3D Win32::OLE->GetActiveObject('Aaa.Bbb');
>=20
> The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
> OLE-Browser.
> I did a thorough search!
>=20
> Another question is:
> How do I shut the application down?
>=20
>=20
>=20
> On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote:
ing[color=darkred]
>=20
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>
| |
| Siegfried Heintze 2005-06-03, 3:56 am |
| If it is in regedit, then it is probably in the OLE/COM viewer too. Have to
clicked expert mode?
There is a search feature in the OLE/COM viewer: if you just start typing
the characters it will scroll down and search. If you wait too long between
keystrokes, it will assume you want to start a new search.
S
-----Original Message-----
From: J aperlh [mailto:japerlh@gmail.com]
Sent: Wednesday, June 01, 2005 9:08 PM
To: Siegfried Heintze
Cc: beginners@perl.org
Subject: Re: A question about Win32:OLE
Thanks for your help.
I can find it in regedit.
I have to find it out in OLE/COM Object Viewer or OLE-Browser
to get the methods and properties of this OLE server.
It's really not good that OLE/COM Object Viewer and OLE-Browser don't
have a search function...
On 6/2/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> Well I'm surprised that you cannot find with the OLE/COM viewer. Did you
try
> regedit like I recommended? You can search with regedit more easily than
you
> can OLE/COM viewer anyway.
>
> But I don't' understand your problem: if your application is working, why
do
> you care if you can find it in OLE/COM viewer?
>
> Re. shutdown: Check the documentation for Win32::OLE -- I remember there
is
> a way to shut down an application.
>
> Now beware the some applications, like Microsoft Word, don't follow the
> rules. You can observer this by creating an instance of Microsoft word and
> $app->Visible = $true;
>
> When you release the application, the application (and its window, of
> course) is supposed to shut down but it does not. So maybe your
application
> misbehaves in the same manor. There may be a function you can call like
> quit, or exit that will make the application shut down.
>
> Siegfried
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Tuesday, May 31, 2005 6:48 PM
> To: Siegfried Heintze
> Cc: beginners@perl.org
> Subject: Re: A question about Win32:OLE
>
> Thanks for your help!
>
> I have a application installed on my system.
> I can start the application by using:
> my $app = Win32::OLE->GetActiveObject('Aaa.Bbb');
>
> The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
> OLE-Browser.
> I did a thorough search!
>
> Another question is:
> How do I shut the application down?
>
>
>
> On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote:
trying[color=darkred]
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>
| |
| Japerlh 2005-06-10, 8:55 am |
| Siegfried,
Thanks for your help.
I got the CLSID of the application,
through CLSID, I got the progid of this application from regedit,
But I still cannot get any thing about the application from OLE/COM
Object Viewer.
At last, I found a good way to view it from OLE/COM Object Viewer,
File/View TypeLib...
and choose the application (.exe file),=20
and then I got what I want: detailed information about the interface,
like methods, paramter list...
Thank you.
On 6/3/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> If it is in regedit, then it is probably in the OLE/COM viewer too. Have =
to
> clicked expert mode?
>=20
> There is a search feature in the OLE/COM viewer: if you just start typing
> the characters it will scroll down and search. If you wait too long betwe=
en
> keystrokes, it will assume you want to start a new search.
> S
>=20
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Wednesday, June 01, 2005 9:08 PM
> To: Siegfried Heintze
> Cc: beginners@perl.org
> Subject: Re: A question about Win32:OLE
>=20
> Thanks for your help.
>=20
> I can find it in regedit.
>=20
> I have to find it out in OLE/COM Object Viewer or OLE-Browser
> to get the methods and properties of this OLE server.
>=20
> It's really not good that OLE/COM Object Viewer and OLE-Browser don't
> have a search function...
>=20
>=20
>=20
>=20
> On 6/2/05, Siegfried Heintze <siegfried@heintze.com> wrote:
u[color=darkred]
> try
n[color=darkred]
> you
hy[color=darkred]
> do
e[color=darkred]
> is
and[color=darkred]
> application
> trying
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>=20
--=20
Besh wishes,
Japerlh
|
|
|
|
|