Jump to content

Need Help With ControlClick


AutoPM
 Share

Recommended Posts

#RequireAdmin
AutoItSetOption('MouseCoordMode', 0)
If WinExists("newtitle") Then
ControlClick('newtitle', '', 'Button1')
EndIf

a Simple script to click Button on GUI with title "newtitle". this script is working fine on my laptop on [windows 10, windows 7]

but on a different laptop. script is not clicking this button, is there any alternative to control click then please tell. don't want to use mouseclick 

 

Thank you

Link to comment
Share on other sites

  • Moderators

On the different laptop, you have used the AutoIt Window Info tool to ensure the window name and control name match? Have you tried going by the ClassName for the window rather than the title?

"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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...