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:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...