jalin168 Posted November 25, 2021 Share Posted November 25, 2021 (edited) I want to click the button of a specific application ( application title is ICOS). The problem as follow: On computer A, WinActivate and MouseClick are work. On computer B, WinActivate is work but MouseClick fail (Mouse does not move then click). Both Computer A and B are Windows 10 Enterprise LTSC(Vesion 1809). AutoIt version: v3.3.14.5 / v3.3.14.2 Does anyone have this kind of problem? Does anyone have a solution? WinActivate("ICOS") Sleep(2000) MouseClick("LEFT",380, 969) Edited November 25, 2021 by jalin168 add autoit version Link to comment Share on other sites More sharing options...
crackdonalds Posted November 25, 2021 Share Posted November 25, 2021 6 hours ago, jalin168 said: I want to click the button of a specific application ( application title is ICOS). The problem as follow: On computer A, WinActivate and MouseClick are work. On computer B, WinActivate is work but MouseClick fail (Mouse does not move then click). Both Computer A and B are Windows 10 Enterprise LTSC(Vesion 1809). AutoIt version: v3.3.14.5 / v3.3.14.2 Does anyone have this kind of problem? Does anyone have a solution? WinActivate("ICOS") Sleep(2000) MouseClick("LEFT",380, 969) are both computers using the same screen resolution? Link to comment Share on other sites More sharing options...
jalin168 Posted November 29, 2021 Author Share Posted November 29, 2021 Yes , the same screen resolution. Link to comment Share on other sites More sharing options...
JockoDundee Posted November 29, 2021 Share Posted November 29, 2021 But your saying the mouse doesn’t even move? Never seen that. Try just a MouseMove command, just to test. Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
junkew Posted November 29, 2021 Share Posted November 29, 2021 You are clicking (at least in your example) independent from the window so it could be you are clicking at a location that has no element and it could be your mousepointer is back at the location where it was coming from. Could be better to try the controlclick. Add some checks after the click a sleep(5000) at the end of your script to see if the mousepointer at leased has moved (and jumps back when your script ends) add a mousegetpos to see if the mousepointer was movinghttps://www.autoitscript.com/autoit3/docs/functions/MouseGetPos.htm Change the speedhttps://www.autoitscript.com/autoit3/docs/functions/MouseClick.htm Change to a mousemove and mousedown/mouseup or click sequencehttps://www.autoitscript.com/autoit3/docs/functions/MouseMove.htmhttps://www.autoitscript.com/autoit3/docs/functions/MouseUp.htm 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...
Solution ad777 Posted December 3, 2021 Solution Share Posted December 3, 2021 try #RequireAdmin jalin168 1 iam ِAutoit programmer. best thing in life is to use your Brain to Achieve everything you want. 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