bulzone Posted May 15, 2023 Posted May 15, 2023 I have an "Microsoft Windows" popup, where I need to click the "right button" - Button 2. I tried to handle the job with below simple script but without success. Winactivate("Microsoft Windows","") ; this command returned me the Success Sleep(2000) Send("{RIGHT}"); Here I tried to use just SEND RIGHT - > SEND ENTER or just SEND ESC / ESCAPE - none working ControlClick("Microsoft Windows","","[CLASS:Button; INSTANCE:2]") ; this also doesnt work, same for CLASSnameNN Maybe it's one of special MS widnows which is unclickable ?... I tried to use VB function with ActivateWindow - it brings me window to the front but returning false.. Can somone help or give the right direction ? Thanks
Moderators JLogan3o13 Posted May 16, 2023 Moderators Posted May 16, 2023 Moved to the appropriate forum. Moderation Team "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!
bulzone Posted May 16, 2023 Author Posted May 16, 2023 (edited) 4 hours ago, TimRude said: Try adding #RequireAdmin to your script. I already tried and it didn't help also I'm running script / autoit editor as an Admin. For tests I tried to run simply notepad.exe - > save as - > in window where was two buttons "Open" and "Cancel" - Controlclick was working with [CLASS:Button; INSTANCE:2] data - it clicked me the Cancel button.. I belive this is something about the window. That window comes up during Installation of Barco ClickShare Extention pack - with information about the reboot required with two options "do the reboot" / "not now" - I wanted to click simply "Not now" EDIT I didn't notice that the process which was running from installation was in SYSTEM context - when I run AutoIT in system context, it found the window and click proper button - anyway I will be appritiate for the information "what AutoIT can offer instead of ControlClick / MouseClick" - what can also be used to click the button for example, when we dont have the window name / ID etc ? Edited May 16, 2023 by bulzone found solution
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