tommeke228 Posted June 20, 2009 Share Posted June 20, 2009 (edited) Send something to a minimized program this is what i though it must be but it isnt ControlSend("sro_client", "", "[CLASS:CLIENT]", "{enter}") thx Edited June 20, 2009 by tommeke228 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 20, 2009 Share Posted June 20, 2009 Try ControlClick - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
tommeke228 Posted June 20, 2009 Author Share Posted June 20, 2009 (edited) Try ControlClick its a game without control ID's so that wouldn't help ; ******************************************************* ; Example 2 - Same as Example 1, except instead of using click, give the element focus ; and then use ControlSend to send Enter. Use this technique when the ; browser-side scripting associated with a click action prevents control ; from being automatically returned to your code. ; ******************************************************* ; #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") $hwnd = _IEPropertyGet($oIE, "hwnd") _IEAction ($oSubmit, "focus") ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}") ; Wait for Alert window, then click on OK WinWait("Windows Internet Explorer", "ExampleFormSubmitted") ControlClick("Windows Internet Explorer", "ExampleFormSubmitted", "[CLASS:Button; TEXT:OK; Instance:1;]") _IELoadWait ($oIE) found this again >.< is there something else to do it ? Edited June 20, 2009 by tommeke228 Link to comment Share on other sites More sharing options...
oMBRa Posted June 20, 2009 Share Posted June 20, 2009 try this: ControlSend("sro_client", "", "", "{enter}") Link to comment Share on other sites More sharing options...
tommeke228 Posted June 20, 2009 Author Share Posted June 20, 2009 try this: ControlSend("sro_client", "", "", "{enter}") nope Link to comment Share on other sites More sharing options...
oMBRa Posted June 20, 2009 Share Posted June 20, 2009 then it's your game that blocks your input Link to comment Share on other sites More sharing options...
tommeke228 Posted June 20, 2009 Author Share Posted June 20, 2009 then it's your game that blocks your input$handle = WinGetHandle("SRO_Client", "")ControlSend($handle, "", "", "{enter}")tried this now AND ITS WORKing xDxDxDthx Link to comment Share on other sites More sharing options...
nguyenbason Posted June 21, 2009 Share Posted June 21, 2009 $handle = WinGetHandle("SRO_Client", "") ControlSend($handle, "", "", "{enter}") tried this now AND ITS WORKing xDxDxD thx or you should use [Class:yourclientclass] instead "SRO_Client". I think so UnderWorldVN- Just play the way you like it Link to comment Share on other sites More sharing options...
smcombs Posted June 21, 2009 Share Posted June 21, 2009 or you should use [Class:yourclientclass] instead "SRO_Client". I think soReading from above you should still be able to pull of controlclicks. Even though the game may not have identified controls in it, the window itself is a control(or may not really be a control). On a bot that I created it has no controls in it and the only thing you can get with the window info tool is the handle and the title of the window. Which was enough. And of course pixels and coords. The problem may become that if you want to do pixel searchs you wont be able to when its minimized Link to comment Share on other sites More sharing options...
oMBRa Posted June 21, 2009 Share Posted June 21, 2009 The problem may become that if you want to do pixel searchs you wont be able to when its minimizedYou are wrong, it is possible to do a screenshot of a window while it is minimized, look here, and then search the pixel from memory with this UDF of Manadar 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