I am new to AutoIt, though I am very experienced in C/C++ programming...
So I'm studying AutoIt, and will continue to do so, but the reason that I am here, today, is because I have a specific problem that I would like to solve.
I am hoping to get some hints on how to solve specific challenges in AutoIt, *without* having to do the six-month general learning curve, because I want to use it Now... I hope some folks here will be willing to help me!!
Here's my challenge... I'm scanning a book into PDF, using Windows Fax and Scan program... this task requires the following iterative steps:
(0). Windows Fax and Scan is already running; my system is Windows 10 Pro
1. click "New Scan" button
this opens the "Select Device" dialog
2. double-click (or otherwise select) the second scanner in the "Select Device" dialog.
this opens the "New Scan" dialog
I have a custom printer profile set up as default in the "New Scan" dialog, so:
3. click the Scan button
rinse and repeat many many times...
I've been clicking these buttons myself for hours recently, but it seems like a perfect job for an automation program...
So, I'm doing some researching into how to write an AutoIt script to iterate on 1-3 above...
Here are my thoughts, and my existing questions:
1. The first thing I have to do, is attach the AutoIt script to my application... Is this what I do??
WinActivate("Windows Fax and Scan")
2. How do I click a specific button?? ('New Scan', in this case)
Maybe use WinActivate() with the button label?
3. How do I select an element in the 'New Scan' item list??
One possibility is 'right arrow' followed by {Enter}, which works from the keyboard...
Is there some other method that is more thematic??
4. click the Scan button...
Actually, that is the default operation on this page, so I probably can use
Send("{Enter}")
but again, I would rather use something that is more thematic - i.e., something that actually clicks the Scan button,
so that a person reading the code, understands what I am doing...
Any suggestions or thoughts, or example programs that already do this type of task with arbitrarily-selected applications?