JohnRitter

Operating in windowed mode

5 posts in this topic

So I am having an issue, and I would like to know if anyone else has had the same issue...  If so how did you correct it?

The issue is this.. I wrote code based on the program being open and in full screen mode.. That part of my code works great..  I decided to change it to windowed mode... and this is where I am running into issues...

opt("Mousecoordmode",0)

Winactivate("xxxxx")

mouseclick("left",x,y,1,1)

and so forth... but it jumps to the specified window and then back to autoit.... Is there something that I am missisng here???

 

 

Share this post


Link to post
Share on other sites

What is the app you're trying to manipulate? Why are you Mouseclicking instead of using Control Click?


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

Share this post


Link to post
Share on other sites

mouseclick because that is what I am physically doing.... Will look into the control click...

Share this post


Link to post
Share on other sites

so if it is

Mouseclick("left",x,y,1,0)

how does that translate to control click? seems control click works from center of the window? is this correct?

Share this post


Link to post
Share on other sites

What is the window? You would use the AutoIt Window Info tool (same directory where you installed AutoIt) and hover over the control. Then you can ControlClick right on that control (button, combobox, whatever). Window doesn't even have to be active.


√-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