Jump to content
Sign in to follow this  
piyanut

How to use ControlClick in button ToolStrip1?

Recommended Posts

piyanut

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

Share this post


Link to post
Share on other sites
JLogan3o13

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?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
piyanut

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?

 

Share this post


Link to post
Share on other sites
JLogan3o13

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

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
piyanut

Hello,

i try to use this code

 

Local $hWnd = WinWait("[CLASS:WindowsForms10.Window.8.app.0.2bf8098_r13_ad1]", "", 10)
WinActivate($hWnd)
Sleep(3)
ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "toolStrip1")

But  ControlClick not working

Share this post


Link to post
Share on other sites
Autolaser

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

Share this post


Link to post
Share on other sites
piyanut

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

 

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.