Jump to content

Send something to a minimized program


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...