Click on another (non-.NET window)

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.
 
J

James A. Fortune

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top