Keithw Posted April 19, 2016 Share Posted April 19, 2016 (edited) Hi, I'm having a problem with automating a specific program. Before, I've been doing this: Send("Input") But I also want to send input when the window is inactive or minimized. So I found this: ControlSend("Application Name","","[CLASS:CLASSNAME]","Input") Works fine for notepad. However, the AutoIt Window Spy Tool doesn't give any control info. If I use ControlSend without controlID info then it only works when the window is active. What can I do if there is no control info? Edited April 19, 2016 by Keithw Link to comment Share on other sites More sharing options...
AutoBert Posted April 19, 2016 Share Posted April 19, 2016 (edited) 4 hours ago, Keithw said: What can I do if there is no control info? Without more info's nothing, maybe with some more info's @junkew has an idea. Edited April 19, 2016 by AutoBert Keithw 1 Link to comment Share on other sites More sharing options...
junkew Posted April 20, 2016 Share Posted April 20, 2016 Ideas are not that difficult ;-) but guessing what kind of application makes life difficult. 1. Do not minimize 2. Maximize and move it to second screen or 2nd desktop or virtual screendriver 3. Move window to corner so although window is there you can set values 4. Run it in a minimized virtual pc Making screenshots of minimized windows is impossible unless the AUT has functions for it to print on a devicecontext. Keithw 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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