Antwerp Posted November 20, 2013 Share Posted November 20, 2013 Hello AutoIt community! I've discovered AutoIt just 2 days ago, and it is amazing how much easier this stuff can make my daily job. The help file and the forum made a lot of things clear, and I've been playing with it for 2 days in a row now. I'm currently automating some software installations. I can manage to find a way to click the needed buttons most of the time. Except for an SAP front end installer I want to fully automate. As you can see in my image, I need to click the "Select all"-link I marked in red. Sadly, the AutoIt WIndow Info app doesn't seem to find a unique identifier to recognize this link, even not the text. I've try to work around this by specifying the x and y coördinates, but the install screen has a different sizes on different screen sizes, so that's not a solution for me. Does anyone have an idea? Any help would be greatly appreciated! Link to comment Share on other sites More sharing options...
lordofthestrings Posted November 20, 2013 Share Posted November 20, 2013 ehm... why don't you use the SAP package builder that comes with the full installation? you create a single executable that you launch with a /Silent option to detach it from it's console window. Link to comment Share on other sites More sharing options...
Antwerp Posted November 20, 2013 Author Share Posted November 20, 2013 Thanks lordofthestrings, that makes perfect sence indeed. But just for the fun of it, any ideas how to deal with this using AutoIt? Link to comment Share on other sites More sharing options...
MHz Posted November 20, 2013 Share Posted November 20, 2013 Looks like HTML embedded in the window. So you try using _IEAttach(). I have done that with similar installers that use a HTML embedded in the window. Link to comment Share on other sites More sharing options...
lordofthestrings Posted November 20, 2013 Share Posted November 20, 2013 @Mhz: That's an approach I never would have come up with myself I would have suggested to save that "select all" button-ish thing in a BMP/JPG and use the pixelsearch function for it or have you looked into controlclicking the controlclick Coordinates.. but this is a really terrible approach to automate software installation.. Link to comment Share on other sites More sharing options...
MystrE Posted November 21, 2013 Share Posted November 21, 2013 (edited) I found this in the faq section by Chimera : Maybe [Question]: How do i install a program silently [Answer]: Using a Silent switch /Examples of silent switches /msi and exe [Optional Example]: $scriptDir = "My Test Folder" ; the folder where your file is stored (amend accordingly) $fileName = "My file i want to install.exe" ; the filename to install (amend accordingly) $switch = "/S" ; the switch, there maybe multiple switches for different things check the manufacturers website (amend accordingly) RunWait('"' & $scriptDir & "\" & $fileName & '"' & " " & $switch) Maybe it's of any help to you? Edited November 21, 2013 by MystrE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now