Jump to content
Light0

Verify where my ControlClick is pressing?

Recommended Posts

Light0

So I made a script and I'd like to convert the MouseClick's to ControlClick's, I've kinda figured out how to do it, as my script now half-works after the conversion, but troubleshooting it is quite hard without seeing it in action for myself. Is there a way (even outside of Autoit itself) that would enable me to see where the ControlClick'ing is happening to verify my code?

Share this post


Link to post
Share on other sites
JLogan3o13

@Light0 how about posting your code so we can see what you're trying to accomplish, rather than having us guess ;)


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

Share this post


Link to post
Share on other sites
Light0
On 19/11/2017 at 11:45 PM, JLogan3o13 said:

@Light0 how about posting your code so we can see what you're trying to accomplish, rather than having us guess ;)

Yes sir, so here's the initial code, and the code I'm trying to use in place of it:

MouseClick("left",992, 622)

ControlClick("*appname*","","","left",1,992, 622)

The MouseClick is set to use Window Coords. I have simply switched the Mouseclick parts with the Controlclick parts, it worked with most of the Mouseclick lines, but not others, and its a pain because I can't verify where its clicking to know what is wrong haha.

Share this post


Link to post
Share on other sites
JLogan3o13

How about showing the output from the AutoIt Window Info Tool (in the same directory where you installed AutoIt) for this control you're trying to click on?


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

Share this post


Link to post
Share on other sites
BigDaddyO

unless the control you're trying to click on is huge, you don't need the coords

 

something like this should work fine as it automatically clicks center of the control.  AppName and Button1 would be identified by the Info tool.

 ControlClick("*appname*", "", "Button1")

 


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

×