ffrankcool Posted May 3, 2008 Share Posted May 3, 2008 Is it possible to send a key/click to a window while it ain't on top of the others/focused !? If yes could link me the documentation to this. -Frank Link to comment Share on other sites More sharing options...
herewasplato Posted May 3, 2008 Share Posted May 3, 2008 Look at the sample code in this post:http://www.autoitscript.com/forum/index.ph...st&p=192713 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
ffrankcool Posted May 3, 2008 Author Share Posted May 3, 2008 (edited) Look at the sample code in this post:http://www.autoitscript.com/forum/index.ph...st&p=192713That's for sending text and I needed this:D but I also need to know what about Mouse clicks?Edit: So will this work for doing background clicks: ControlClick() ? Edited May 3, 2008 by ffrankcool Link to comment Share on other sites More sharing options...
Muchuchu Posted May 3, 2008 Share Posted May 3, 2008 Help menu, look for control() functions Link to comment Share on other sites More sharing options...
ffrankcool Posted May 3, 2008 Author Share Posted May 3, 2008 (edited) Help menu, look for control() functionsJust to clarify, so you guys are saying that all the control() functions can be sent to a minimized/running in background window!? Edited May 3, 2008 by ffrankcool Link to comment Share on other sites More sharing options...
Muchuchu Posted May 3, 2008 Share Posted May 3, 2008 Some controls will resist clicking unless they are the active window. Use the WinActivate() function to force the control's window to the top before using ControlClick(). Using 2 for the number of clicks will send a double-click message to the control - this can even be used to launch programs from an explorer control! Link to comment Share on other sites More sharing options...
herewasplato Posted May 4, 2008 Share Posted May 4, 2008 Just to clarify, so you guys are saying that all the control() functions can be sent to a minimized/running in background window!?Yes, run this sample code...Run("calc") WinWait("Calculator", "Backspace") WinSetState("Calculator", "Backspace", @SW_MINIMIZE) ControlClick("Calculator", "Backspace", "Button10", "", 3)...and you should have "555" entered in while it was minimized. [size="1"][font="Arial"].[u].[/u][/font][/size] 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