Toppy Posted April 16, 2005 Share Posted April 16, 2005 (edited) Hi, I've got a little script, that check for a mouseclick over a Firefox Control (MozillaWindowClass5)....However, the part below DOESN'T check for a click as one would expect, it actually DOES a click & closes the window What's wrong with the code below please ?It doesn't check for but executes the controlclick & directly closes the window "Resized" ?!?If ControlClick("Resized", "", "MozillaWindowClass5") = 1 Then WinClose ( "Resized" ) EndIf Edited April 16, 2005 by Toppy Link to comment Share on other sites More sharing options...
Ejoc Posted April 16, 2005 Share Posted April 16, 2005 Well the first line in the help file for controlclick:ControlClick --------------------------------------------------------------------------------Sends a mouse click command to a given control. Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
layer Posted April 16, 2005 Share Posted April 16, 2005 i dont think you need the "= 1" part either.. FootbaG Link to comment Share on other sites More sharing options...
Toppy Posted April 16, 2005 Author Share Posted April 16, 2005 So, there's NO way to CHECK FOR a ControlClick to happen then ? :"> Link to comment Share on other sites More sharing options...
layer Posted April 16, 2005 Share Posted April 16, 2005 sorry, i didnt read ur whole post about polling to see if that happens... umm, um going to say, im not sure, better ask one of the more experienced devs, but im leaning torwards no, but i could be wrong.. FootbaG Link to comment Share on other sites More sharing options...
Ejoc Posted April 16, 2005 Share Posted April 16, 2005 (edited) So, there's NO way to CHECK FOR a ControlClick to happen then ? :"><{POST_SNAPBACK}>There is no way to check for a mouse click on a controll using ControlClick. ControlClick will send a click and return if it was successful. Edited April 16, 2005 by Ejoc Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
Toppy Posted April 16, 2005 Author Share Posted April 16, 2005 So the definate answer is : NOT POSSIBLE ? Link to comment Share on other sites More sharing options...
Ejoc Posted April 16, 2005 Share Posted April 16, 2005 So the definate answer is : NOT POSSIBLE ? <{POST_SNAPBACK}>guess I'll use caps,The DEFINATE answer to YOUR QUESTION is NO Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
Toppy Posted April 16, 2005 Author Share Posted April 16, 2005 THANK YOU ! Link to comment Share on other sites More sharing options...
quaizywabbit Posted April 16, 2005 Share Posted April 16, 2005 wasn't the PRIMARY DOWN event included in the _IsPressed UDF? I remember seeing something like that somewhere on this forum..... [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
layer Posted April 16, 2005 Share Posted April 16, 2005 yea.. whats ur point FootbaG Link to comment Share on other sites More sharing options...
quaizywabbit Posted April 16, 2005 Share Posted April 16, 2005 check if control exists get the coordinates to the control if mouse left click in control coordinates, then do something [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
JSThePatriot Posted April 16, 2005 Share Posted April 16, 2005 Just to make sure no one is limiting AutoIt here, there is pretty much nothing it cannot do. You may have to figure out a way around some issues that come up, but I would say just about anything is possible. I am back on the forums. I know I havent been on in a while. Hello everyone. I have started my own computer business and have been kinda busy with that, among other things. Enjoy, JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
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