therks Posted September 2, 2007 Posted September 2, 2007 So I was experimenting with these two functions (MouseClick and ControlClick) and found that if I had my mouse buttons swapped, then MouseClick behaved as expected (left actually "clicked" the left button bringing up the menu) but ControlClick detected the change, and instead of "clicking" the left button (and activating the menu) it just acted like I clicked the primary button.So in summary, I had these results:(MC = MouseClick, CC = ControlClick)In "Left handed" mode (Left = secondary, right = primary):MC "Left": Secondary click ExpectedCC "Left": Primary click UnexpectedMC "Right": Primary click ExpectedCC "Right": Secondary click UnexpectedNot that I'm complaining, but I don't want to rely on this behaviour and then in the future find out it's a bug and it gets changed and my code is all screwey.I was actually thinking that perhaps we could have the "main" "menu" "primary" and "secondary" button keywords that MouseClick has incorporated into ControlClick, opinions?Then there'd be no confusion. "Want to bring up the context menu on that button? ControlClick(...'menu')" etc. My AutoIt Stuff | My Github
Moderators SmOke_N Posted September 2, 2007 Moderators Posted September 2, 2007 I can't imagine that being by design. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
therks Posted September 2, 2007 Author Posted September 2, 2007 That was my thought. My AutoIt Stuff | My Github
botanic Posted September 2, 2007 Posted September 2, 2007 (edited) i do think however that it would be better to have one function one way and on the other (just in case you NEVER know...) but i think it should be swapped MC should do the correct click command and CC should do the expected command... it would make more sense to me at least that way... Edited September 2, 2007 by botanic
therks Posted September 16, 2007 Author Posted September 16, 2007 Personally I think they should both behave the same way, and ideally both be able to use the same aliases for buttons. That way you don't have to read registry settings just to make sure you're doing the expected click on a control. Do I win for most delayed response time ever? My AutoIt Stuff | My Github
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now