-
window handle
Hi, All
Can I get the application window handle if I know the application name in
the process? The FindWindow function only can be used when the caption of
it is known.
Thanks,
andy
-
Re: window handle
Yes. You can get window handle through FindWindow either by supplying its
caption or by supplying its classname or both. For example to get a handle
to a running instance of Excel through its classname, the following can be
used:
hWindow=FindWindow(XLMain, vbNullString).
Classnames of applications can be obtained through spy++ utility.
Phani.
"andy" <andy_weihuang@yahoo.com> wrote:
>
>Hi, All
>
>Can I get the application window handle if I know the application name in
>the process? The FindWindow function only can be used when the caption of
>it is known.
>
>Thanks,
>
>andy
>
>
-
Re: window handle
Yes. You can get window handle through FindWindow either by supplying its
caption or by supplying its classname or both. For example to get a handle
to a running instance of Excel through its classname, the following can be
used:
hWindow=FindWindow(XLMain, vbNullString).
Classnames of applications can be obtained through spy++ utility.
Phani.
"andy" <andy_weihuang@yahoo.com> wrote:
>
>Hi, All
>
>Can I get the application window handle if I know the application name in
>the process? The FindWindow function only can be used when the caption of
>it is known.
>
>Thanks,
>
>andy
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks