Jump to content
Sign in to follow this  
tommeke228

Send something to a minimized program

Recommended Posts

tommeke228

Send something to a minimized program

this is what i though it must be but it isnt :D

ControlSend("sro_client", "", "[CLASS:CLIENT]", "{enter}")

thx

Edited by tommeke228

Share this post


Link to post
Share on other sites
somdcomputerguy

Try ControlClick


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
tommeke228

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 by tommeke228

Share this post


Link to post
Share on other sites
oMBRa

try this:

ControlSend("sro_client", "", "", "{enter}")

Share this post


Link to post
Share on other sites
tommeke228

try this:

ControlSend("sro_client", "", "", "{enter}")
nope

Share this post


Link to post
Share on other sites
oMBRa

then it's your game that blocks your input

Share this post


Link to post
Share on other sites
tommeke228

then it's your game that blocks your input

$handle = WinGetHandle("SRO_Client", "")

ControlSend($handle, "", "", "{enter}")

tried this now AND ITS WORKing xDxDxD

thx

Share this post


Link to post
Share on other sites
nguyenbason

$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

Share this post


Link to post
Share on other sites
smcombs

or you should use [Class:yourclientclass] instead "SRO_Client". I think so

Reading 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 :D

Share this post


Link to post
Share on other sites
oMBRa

The problem may become that if you want to do pixel searchs you wont be able to when its minimized

You 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×