Click on another (non-.NET window)

  • Thread starter Thread starter Paul E Collins
  • Start date Start date
P

Paul E Collins

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.
 
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/library/ms726294(VS.85).aspx

James A. Fortune
(e-mail address removed)
 
Back
Top