art777 Posted March 15, 2022 Posted March 15, 2022 (edited) Local $hwnd1 = WinGetHandle("Untitled") Sleep(2000) ControlSend($hwnd1, "", 59648, "^o") Sleep(250) Local $hwnd2 = WinGetHandle("Open") ControlSetText ($hwnd2, "", "Edit1", "FileDirectory") ControlClick($hwnd2, "", "[CLASS:Button; INSTANCE:1]") Sleep(2000) Local $hwnd = WinGetHandle("File") Sleep(2000) ControlClick($hwnd , "", 59648, "left", 1, 100 , 79) ControlClick($hwnd , "", 59648, "left", 1, 178 , 28) Hello guys I keep experimenting with Autoit and I need some advice here. I want to run a script on a small window on my left and working on the rest free space. I tried to simulate these conditions by running the script and start clicking manually out side of the window. The script is working until the Control Click. I know that some control resist clicking without the window being focus. Is it safe to assume that this is the case here ? Or there is some better way to achieve the above ? Thank you Art edit: Sorry for editing 100 times but it is important. The script is working until the second Control Click command. So the first Control Click which is clicking on button is working while I keep manually clicking outside of the window but the 2 Control Clicks with x and y dont work. Edited March 15, 2022 by art777
Moderators JLogan3o13 Posted March 15, 2022 Moderators Posted March 15, 2022 Hard to tell if it is being resistant without knowing what the window actually is. Is this a normal Windows dialog or window like Notepad, or a specific application pop up? "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!
art777 Posted March 15, 2022 Author Posted March 15, 2022 It is a third party application. Ok I know realized that the first click is made on a window dialog. This seems being the reason it is working and the other 2 not.
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