Jump to content

Recommended Posts

Posted (edited)

How to use ControlClick in button ToolStrip1?

 

Untitled.png

 

ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "ToolStrip1", "left", 1, 174)

 

??

 

that not work

Edited by piyanut
  • Moderators
Posted

Hi, piyanut, welcome to the forum. Can you please expand a little on your request? What is the application? What is the full AutoIt Window Info Tool output for that control?

"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!

Posted

Thanks, JLogan3o13

i would like to use function ControlClick in in button ToolStrip1  but when i using  this code

ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "ToolStrip1", "left", 1, 174)

nothing happen how to ?

This is info

Untitled.png

How to use function to click

 

Load User?

 

  • Moderators
Posted

The capitalization in your code if off, based on the Window Info. Have you tried it exactly as it is typed?

ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "toolStrip1")

 

"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!

Posted

WindowsForms10.window.8.app is not a Winwows-Standardcontrol !

Please search the forum for "ControlClick WindowsForms" and you will find a few threads on this subject.

change Name to Advanced Mode  ;)

Test this

$hWnd = "Camfrog Pro"
If WinExists($hWnd) Then WinActivate($hWnd)
WinWaitActive($hWnd)
ControlClick($hWnd, "", "[NAME:toolStrip1]","Left",1)

Thanks it work

 

i have new question how to detect messagebox and do something?

 

Untitled.png

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...