Friday, July 29, 2005

Simulating Mouse Clicks...

I'm in the biz of automating/batching a number of different applications (MS Office and others). In some cases I run into modal dialogs, which my their nature hold up processing. I have one method of "Ok Killing" that works okay, mostly... The problem with it is that you have to be logged in for it to work (we run most of our app's via Terminal Services sessions). So I'm keeping my eyes open for other methods that might work better...

Mouse_Event/SendMessage/SendInput seem the most promising.

Here are a few links related to this that might come in handy...

C#: How to perform mouse click outside the application
Windows Messages
SendInput (user32)

No comments: