Jump to content

Farns

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Farns

  1. Thanks for the lead on that. I read some of the gui functions and most of that blew straight over my head. The WinMenuSelectItem seemed to make a lot more sense but I can't get it to work - I'm using Acrobat Pro XI, and I wonder if this statement from the help file is a factor with acrobat: Does anybody have experience with this in Acrobat or know how their menus are structured? Farns
  2. Ok, so I used WinActivate and mouse controls to get the job done for now, since it is syntax that I understand a bit better. The whole thing worked great from start to finish. Now I want to simplify and improve the script. So I'm reading up on the Control Commands, and I'm unclear how to interact with the menubar and sub menus in there. (File, Edit, View, etc...) As I hover around those and their sub menus, I don't see anything revealed in the window spy app to help me see what I can reference there. It seems like the CLASS or ID properties should be able to identify those. I am working with Acrobat Pro XI, on Windows Server 2012. I'm presently using the mouse control and X/Y to navigate through 2 or 3 menu commands, but if there's a way to manipulate those through the Control Commands, it seems that would be more efficient (albeit less "showy" for making it look like the computer is possessed by spirits!). :-)
  3. Yes I can see there are ways to streamline the code. I've removed other lines from the script already because I discovered I was doing redundant things. This helpfile is extremely well written. Once I know the right words to look for, I'm able to connect a lot of dots. As a new user, I'm learning that I just don't know the right words to search for all the time. The last solution like this I tried was a lot more simplified in terms of the syntax. But not nearly as function as this, I don't believe. Right now I'm trying to figure out how to make a specific window become active. After some of my steps, the window I need to access is not on top, and I'm trying to find the right syntax to search and study on making a window active. I was just coming to the forum to search and I saw I had a couple more replies here.
  4. Thanks for the input. I put in the snippet you gave me, dropped in the proper window title, the button ID, and so far it's working great! So question - to help me understand better... I used X,Y coords to get the mouse to that button. But since I'm calling out the button with the button ID, there's no need for that, right? This is pretty cool watching stuff happen automatically. My head is spinning with ideas of how this can simplify my life. Wish I'd found AutoITScript years ago! Farns
  5. Good evening, I've had an enjoyable day getting acquainted with this scripting software, and as I mentioned in my first post, I can see there's a million things this can do, and I know I'm not going to be able to absorb it at the speed I'd like to. I dream of the day we can plug a jump drive into our head and download the knowledge like on the Matrix :-) I'm very close on completing this first big script, and I'm looking for a little explanation to help me figure out the rest. I have a valid AutoIt support question and kindly provide the details of my system: AutoIt Version: V3.3.10.2 [X32] Windows Version: WIN_2012 [X64] Language: 0409 So I have a nice stack of steps being handled automatically with the script, I've got the mouse moving and clicking where I need it to, everything's perfect but the very end. The final window that pops up is running a process. There's a "cancel" button on the screen during the process, and once the process is complete, it turns to a "Close" button. Same x/y location, just the name of the button changes. I'm trying If/Then expressions with no luck, I'm not very strong in general loop understanding, and I can't really think of any search terms (because I don't really know the technical jargon) for what I'm asking. So I haven't been able to find anything on the forum or the Help system that fits my needs. In English, what I'd like to communicate through the script, is: - as long as classNN="Cancel", do nothing. - if classNN = "Close", then go ahead and click. I have the mouse already in position, and I'm seeing the information from the window spy application, I'm just not having much luck with the syntax for that. Can somebody help me think this one through? I'd greatly appreciate it. Thanks so much! Farns
  6. Yep, it worked great. thank you very much! I'm off to learn what I need for the next step!
  7. Ahhh! Ok ShellExecute seems to be doing the trick. I'll dive deeper into my project later this afternoon, but I think this puts me on the right track, BrewMan, thank you! I can see this is extremely powerful and flexible software. 99% of it I will probably never use. All I need it for at this point in my life is to open a file, map some mouse coordinates and clicks, and that's it. Super simple. But I will study it's other features and see else I can learn how to make it do! Thanks so much! Farns
  8. Ahh. Well that would make sense why the open command wasn't working I did just try the Run command, to the path of my PDF, and again, no response. No errors, no result. I see Exit Code = 0 at the bottome of SciTE, so maybe I am getting some feedback, I just need to figure out how to interpret that. I hadn't noticed it before. I found a post where the application was defined as a variable, and the file was too, and then a run command to put the two together and make it launch and open the file in the same stroke, but that didn't seem to want to work either. If NONE of the commands were working, I'd assume an installation problem or something like that. But since I can launch apps, that all must be fine, and I'm just to dumb to figure this out :-) I will keep studying. Farns
  9. Good afternoon, I have a valid AutoIt support question and kindly provide the details of my system: AutoIt Version: V3.3.10.2 [X32] Windows Version: WIN_2012 [X64] Language: 0409 ################################################################## I'm a new user with this software, I downloaded it literally hours before the server died for several days, so I wasn't able to ask for help or read forums during that time. I'm trying to use AIS to automate a few simple tasks. Step one is to open a PDF file, and I can't even make it do that. I've searched the forums. I watched an hour's worth of 403Forbidden's tutorials and learned a ton of other stuff, but not this. Everything I'm reading seems to be from very advanced users, and so nobody's addressing the basics that I can find. I have made little actions work, and compiled them to EXEs, and most of it's going well. I can launch programs, do other things, but I cannot open a PDF file. I feel like I'm following the documentation, but it's not working. Can somebody please help me see what I'm doing wrong? Here is my script. It launches Acrobat and then nothing. No errors, no response, nothing. I apologize in advance for the newbie question, I'm not unfamiliar with this type of work, I've dones this and more with similar systems, but they lack functionality that I need in AutoIT so I want to migrate everything over. Thanks, Farns
×
×
  • Create New...