PC Review


Reply
Thread Tools Rate Thread

Click on another (non-.NET window)

 
 
Paul E Collins
Guest
Posts: n/a
 
      9th Sep 2011
Hi,

I'd like to simulate a click on another window. The other window doesn't
belong to my application and doesn't even use .NET, so presumably I'll
need to call some WinAPI thing.

Could someone please point me to the appropriate function call, and how it
can be used from C#? Also, is it possible to click a "hidden" part of a
window, or does it have to be visible at the top level of the desktop even
to fake a click?

Thanks,

Eq.
 
Reply With Quote
 
 
 
 
James A. Fortune
Guest
Posts: n/a
 
      9th Sep 2011
On Sep 8, 9:25*pm, "Paul E Collins" <equi+...@cl4.invalid> wrote:
> Hi,
>
> I'd like to simulate a click on another window. The other window doesn't *
> belong to my application and doesn't even use .NET, so presumably I'll *
> need to call some WinAPI thing.
>
> Could someone please point me to the appropriate function call, and how it *
> can be used from C#? Also, is it possible to click a "hidden" part of a *
> window, or does it have to be visible at the top level of the desktop even *
> to fake a click?
>
> Thanks,
>
> Eq.


There are both managed and unmanaged flavors of UI Automation. Here's
a link:

Windows Automation API: UI Automation
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx

James A. Fortune
(E-Mail Removed)
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
L click'g folder goes to c prompt or R click'g folder displays "open command window here" Wesley Vogel Windows XP Customization 3 9th Apr 2007 05:01 AM
IE wont open window if Right click open in new OR target _blank Or javascript Popup new window Windows XP Internet Explorer 2 9th Dec 2005 01:34 AM
when I click on an email, the window is small and I have to click. =?Utf-8?B?UGF0dHk=?= Microsoft Outlook BCM 0 21st Nov 2005 02:05 PM
Click link, new window, old window closes HELP! =?Utf-8?B?c2hlcm0=?= Windows XP Internet Explorer 5 11th Jun 2004 11:31 AM
New window freezes when I click link that opens new window Windows XP Internet Explorer 1 15th Jan 2004 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.