1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Program Automation

Discussion in 'General Scripting Chat' started by drumltd, Oct 22, 2012.

  1. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    I want to automate pulling some data out of an application, I'm aware that there are several automation apps around that can automate clicks\key strokes, and these do 90% of what I want.

    The problem I have is that the apps are navigated through a table of contents, using key strokes I can work my way through the contents, and save the pages, and give me the documents I want. However doing this I lose all context, because I really need to know the structure of the table of contents and how it relates to the document. I can't find a way to read the line\position in the contents before I selectect it and grab the document.

    Anybody any ideas?
     
  2. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    I'm back looking at this problem again, does it really have everyone stumped?
     
  3. xrfanatic

    xrfanatic Jr. VIP Jr. VIP

    Joined:
    Aug 28, 2010
    Messages:
    386
    Likes Received:
    169
    Location:
    http://bit.ly/slb64
    Home Page:
    I think your description of problem is too broad. I'm almost certain what you are talking about, but to give you proper answer you should provide more details. What are you trying to automate ? Are you working with websites ? Are you working locally on Folders? Files ? What are you trying to achieve ?
     
  4. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    Sorry for the delay, I am automating an old bit of software from around 2007, that contains documents, I have looked at the files that the program access, and these are in a proprietary format so I can't simply access the files. So I am trying to automate the application to print the files to PDF documets so that I can use them for my own purposes. So to summarise, the application is running on XP, on a Local PC, and I need to automate the application.

    I have had some success with AutoIt which works fine although appears somewhat unstable, however I admit this could be down to the original application, that doesn't appear to be the most reliable app ever written.
     
  5. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,479
    Likes Received:
    10,232
  6. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    Thanks I've found 90% of what I need I think using AutoIt, however I have one control, that I can't access, it looks abit like a listview, however I suspect it written for the application.

    With autoit, I can interrogate listboxes etc to find how many items and the current selection, however this custom control doesn't appear to respond to anything, do you know of anything that I can poke it with to see what methods it responds to
     
  7. xrfanatic

    xrfanatic Jr. VIP Jr. VIP

    Joined:
    Aug 28, 2010
    Messages:
    386
    Likes Received:
    169
    Location:
    http://bit.ly/slb64
    Home Page:
    Have you tried navigating to certain x,y position then clicklinkg where the control shows on screen ?
     
  8. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    That helps me select items, I can also send it keyboard commands to achieve similar results, however I need to read the values once selected. It would also be nice to know the total rows while I'm processing it.
     
  9. xrfanatic

    xrfanatic Jr. VIP Jr. VIP

    Joined:
    Aug 28, 2010
    Messages:
    386
    Likes Received:
    169
    Location:
    http://bit.ly/slb64
    Home Page:
    Maybe there is another way to get the values of the variables. Once you select/apply the values, do they show up in different part of the application ? If so, maybe it would be easier/time saving to take them from another location.
     
  10. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    That would be too easy, the Main title is used on the document, but I also need a reference number that is in one of the columns, which is not reproduced as far as I can tell.