Jump to content

How to use ControlClick in button ToolStrip1?


Recommended Posts

  • Moderators

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!

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

  • Moderators

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!

Link to comment
Share on other sites

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)

 

Regards Autolaser

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • Moderators

What does the AutoIt Window Info Tool tell you about that popup? Follow the same methodology to detect that window as you did for the first one.

"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

  • Recently Browsing   0 members

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