appl3 Posted June 7, 2018 Share Posted June 7, 2018 So i would just like to say a huge thank you to the AutoIt team, Very smart individuals, With a couple days of researching i was FINALLY able to get ControlClick to work, Im very new to scripting.. And i've learned so much from just watching videos, Google, Searching Forums, Its amazing all the talented people in this community . Now i have a question, ControlClick is working great, But from all the research i have done. I cannot find anything about if you can get ControlClick to work if a window is minimized or not.. So is it possible ? Link to comment Share on other sites More sharing options...
TheXman Posted June 7, 2018 Share Posted June 7, 2018 (edited) 7 minutes ago, appl3 said: Now i have a question, ControlClick is working great, But from all the research i have done. I cannot find anything about if you can get ControlClick to work if a window is minimized or not.. So is it possible ? Have you thought about coding up a test of your own to see if it works? If you've gotten it to work for windows that aren't minimized, it doesn't seem like too big of a stretch to test it on a window that is minimized, Edited June 7, 2018 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
appl3 Posted June 7, 2018 Author Share Posted June 7, 2018 2 minutes ago, TheXman said: Have you thought about coding up a test of your own to see if it works? If you've gotten it to work for windows that aren't minimized, it doesn't seem like too big of a stretch to test it on a window that is minimized, I have not, I wouldn't even know where to start sadly. I was just seeing if it was possible? Seeing from you response it is possible.? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 7, 2018 Moderators Share Posted June 7, 2018 10 minutes ago, appl3 said: But from all the research i have done. I cannot find anything about if you can get ControlClick to work if a window is minimized or not.. So is it possible ? Your "reasearch" skills need some improvement, as this has been discussed literally hundreds of times on this forum. Also from the main FAQ on the Wiki: Quote Why doesn't my script work on a locked workstation? On a locked station any window will never be active (active is only dialog with text "Press Ctrl+Alt+Del"). In Windows locked state applications run hidden (behind that visible dialog) and do not have focus and active status. So generally don't use Send() MouseClick() WinActivate() WinWaitActive() WinActive() etc. Instead use ControlSend() ControlSetText() ControlClick() WinWait() WinExists() WinMenuSelectItem() etc. Doing so allows you to interact with an application regardless of whether it is active or not. It's possible to run such a script from scheduler on locked Windows stations. "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! Link to comment Share on other sites More sharing options...
TheXman Posted June 7, 2018 Share Posted June 7, 2018 11 minutes ago, appl3 said: With a couple days of researching i was FINALLY able to get ControlClick to work, But you stated that you were finally able to get it to work. If that's true, then minimize the window that you got it to work on and run your script on it. Skeletor 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
appl3 Posted June 7, 2018 Author Share Posted June 7, 2018 7 minutes ago, JLogan3o13 said: Your "reasearch" skills need some improvement, as this has been discussed literally hundreds of times on this forum. Also from the main FAQ on the Wiki: I guess it does, Lol.. Thank you sir! Link to comment Share on other sites More sharing options...
appl3 Posted June 7, 2018 Author Share Posted June 7, 2018 5 minutes ago, TheXman said: But you stated that you were finally able to get it to work. If that's true, then minimize the window that you got it to work on and run your script on it. It does work, But i figured out why as soon as Jlogan posted what he did.. I have a pixel search in there, and it obviously cant search for the pixel if the window is minimized. Thank you Xman ! Link to comment Share on other sites More sharing options...
AutoBert Posted June 7, 2018 Share Posted June 7, 2018 (edited) Maybe, it depends from the GUI you wan't to click. Quote from helpfile: Quote Remarks Some controls will resist clicking unless they are the active window. Use the WinActivate() function to force the control's window to the top before using ControlClick(). Edited June 7, 2018 by AutoBert Link to comment Share on other sites More sharing options...
appl3 Posted June 7, 2018 Author Share Posted June 7, 2018 4 minutes ago, AutoBert said: Maybe, it depends from the GUI you wan't to click. Quote from helpfile: Yeah i seen that, But i didn't know in what Instances would it not work ya know? Link to comment Share on other sites More sharing options...
AutoBert Posted June 7, 2018 Share Posted June 7, 2018 1 hour ago, appl3 said: Yeah i seen that, But i didn't know in what Instances would it not work ya know? Just try. 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