Jump to content

Gorlash

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Gorlash

  1. First of all, I apologize to everyone for messing up my first intro to this group!! I'll be more careful in the future... And @ioa747, thank you for that link; I'll will pursue it further...
  2. Ummm... there were a number of subforums to choose from, I didn't know which to use... This seemed valid, sorry if I chose wrong.
  3. IrfanView can be used as scanner software?? Or are you referring to something else??
  4. 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?
  5. Hey, @Melba23... it turns out that your first suggestion (the AutoIt help file) is *exactly* where I should have started... It starts with the same three examples that the tutorial that I referenced did - except that they all work!!! Amazing... well, I'll continue working from there, as well as reading the other guide that you recommended...
  6. Hi @Melba23 !! Thank you for the prompt response!! I will check out all the leads that you offered...
  7. Oops, I should have included relevant data; apparently I cannot edit a message once posted... I am enclosing an image of the dialog that I'm getting, and will include the relevant couple of lines of code... WinClose("*Untitled - Notepad") WinWaitActive("Notepad", "Do you want to save changes to Untitled?") Send("!n") Note that the original example had "Do you want to save changes", which did not work, so I assumed that the function had to exactly match the text in the message box... but this doesn't work either... apparently something else is missing...
  8. Hi all; I have been a professional programmer for over 30 years, mostly in C/C++, but I am new to AutoIt... I am having quite a challenge finding example programs which actually work with AutoIt v3, on Windows 10 Pro ... After trying several other sources, I am currently working through "Learning to Script with AutoIt v3" by @BrettF, but it has a variety of errors already, even in the Notepad examples (section 2.3); some I can figure out, but others I have no idea!! As one example, I got WinClose() to work; I realized that it needed the star in the filename (indicating that the file had been modified)... I also needed to update the text in WinWaitActive() to actually match what the current message box displays... however: Send("!n") is not closing the program - and I have no idea what is wrong with the line!! I have tried several other tutorial sites, but most of them start with very advanced examples, and the ones that have simple examples, do not actually work... How do I proceed??
×
×
  • Create New...