appl3 Posted June 7, 2018 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 ?
TheXman Posted June 7, 2018 Posted June 7, 2018 (edited) On 6/7/2018 at 9:35 PM, 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 ? Expand 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
appl3 Posted June 7, 2018 Author Posted June 7, 2018 On 6/7/2018 at 9:42 PM, 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, Expand 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.?
Moderators JLogan3o13 Posted June 7, 2018 Moderators Posted June 7, 2018 On 6/7/2018 at 9:35 PM, 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 ? Expand 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. Expand "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!
TheXman Posted June 7, 2018 Posted June 7, 2018 On 6/7/2018 at 9:35 PM, appl3 said: With a couple days of researching i was FINALLY able to get ControlClick to work, Expand 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
appl3 Posted June 7, 2018 Author Posted June 7, 2018 On 6/7/2018 at 9:47 PM, 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: Expand I guess it does, Lol.. Thank you sir!
appl3 Posted June 7, 2018 Author Posted June 7, 2018 On 6/7/2018 at 9:50 PM, 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. Expand 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 !
AutoBert Posted June 7, 2018 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(). Expand Edited June 7, 2018 by AutoBert
appl3 Posted June 7, 2018 Author Posted June 7, 2018 On 6/7/2018 at 9:59 PM, 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? Expand
AutoBert Posted June 7, 2018 Posted June 7, 2018 On 6/7/2018 at 10:04 PM, appl3 said: Yeah i seen that, But i didn't know in what Instances would it not work ya know? Expand Just try.
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