Guest giuly95 Posted July 20, 2005 Share Posted July 20, 2005 Hi everybody ! I prefer ControlSend, but sometimes I MUST use MouseClick on some user-defined controls. Not very happy. The problem is I am not sure the click works on the correct window (in fact, sometimes it dous not for various reasons, like user interference). (Unfortunately WinActivate is not a 100% working solution). ControlSend allows to specify "Win Handle" as first parameter, while MouseCLick doesn't. ( Grrrrrr...) Is there a way to avoid this problem ? Thank you ! Link to comment Share on other sites More sharing options...
GaryFrost Posted July 20, 2005 Share Posted July 20, 2005 BlockInput(1) until script is done then BlockInput(0) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
seandisanti Posted July 20, 2005 Share Posted July 20, 2005 Hi everybody !I prefer ControlSend, but sometimes I MUST use MouseClick on some user-defined controls. Not very happy.The problem is I am not sure the click works on the correct window (in fact, sometimes it dous not for various reasons, like user interference).(Unfortunately WinActivate is not a 100% working solution).ControlSend allows to specify "Win Handle" as first parameter, while MouseCLick doesn't. ( Grrrrrr...)Is there a way to avoid this problem ?Thank you !<{POST_SNAPBACK}>are you checking to see if the window you want is the active window? should be able to use WinActive() to check the title of the active window after your winactivate() that way you can make sure you click the right window.... or could use a WinWaitActive() instead to wait for the right window to come up.... also, you say "WinActivate is not a 100% working solution", just want to say the only time i've ever had problems with it, were when I either didn't specify enough of a window title, creating an ambiguous parameter, or if i didn't give it enough time (by checking winactive or using winwaitactive) and my code tried to continue before the window was ready. 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