thosewhoharp Posted March 4, 2014 Posted March 4, 2014 Hey All, I am just learning autoit and I'm having trouble with the first screen of an installer. I would like it to click the "Next" button. I figured it wouldn't be dissimilar to the WinZip tutorial, but I was wrong. I've tried using ControlClick and that didn't seem to work either, possibly because I wasn't using the correct information. Any help would be greatly appreciated! Failing script: (the var is just the title of the window) WinActivate($setup) WinWaitActive($setup) Send("!n") (or {ENTER}, etc, etc) AutoIt Info tool output: Class: Button Instance: 2 ClassnameNN: Button2 Name: Advanced Mode: [CLASS:Button; INSTANCE:2] ID: 1 Handle: 0x0000000000330438
abberration Posted March 4, 2014 Posted March 4, 2014 Try something like this: WinActivate("Text on the titlebar of installer") ControlClick("Text on the titlebar of installer", "", "[CLASS:Button; INSTANCE:2]") Easy MP3 | Software Installer | Password Manager
Moderators JLogan3o13 Posted March 4, 2014 Moderators Posted March 4, 2014 What is the software you're trying to install, and does it support silent install via switches? If you can install silently, it is always preferable to trying to automate the GUI. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
thosewhoharp Posted March 5, 2014 Author Posted March 5, 2014 JLo: I'm unsure about this. It's a standard installer for a PC game. Abb: Unfortunately this did not work :-(
Recommended Posts