I'm trying to automate many repetitive tasks at work and this small problem got me stumped.
We are using an application for printing out labels for online-orders, the process is like this.
On busy days we gotta go trough this process for over 500 orders, because this task consumes a lot of useless time because of step 3. The user has to wait those 5 seconds before being able to click the Print button. Let's say we have 500 orders, that's 500 times 5 seconds, that's about 40 minutes. The entire sending process costs 2 hours, so 33% of all time is lost because of people waiting to click the button.
I'm trying to find a way to automate step 4 so users can stop interacting with the application after completing step 2.
So is there a way using C# to click a button in another form from a different application? The event has to trigger when the confirmation screen pops up. Note that this confirmation screen is not the default windows printing dialog, but a part of the application, so no messing with the preferences.
I think you should look into the UI scripting tools like AutoIt and AutoHotkey instead of writing your own.
This article on CodeProject might be useful to you:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With