Sign in to follow this  
Followers 0
Jammer

Sending Keypresses...

7 posts in this topic

Is it possible to send key presses to a window witch is not active? The window is opengl or directx...

I wan't to make a World of Warcraft bot with which you could control a server while playing a gamemaster account...We would host the controling program on one server but the server has to have some other windows active so I can't run warcraft as the active one...

So is there a way to send keypresses not to active windows if the windows use OpenGl or DirectX?

Share this post


Link to post
Share on other sites



Is it possible to send key presses to a window witch is not active? The window is opengl or directx...

I wan't to make a World of Warcraft bot with which you could control a server while playing a gamemaster account...We would host the controling program on one server but the server has to have some other windows active so I can't run warcraft as the active one...

So is there a way to send keypresses not to active windows if the windows use OpenGl or DirectX?

<{POST_SNAPBACK}>

Try controlsend

.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

DirectX:

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  World of Warcraft
Class:  GxWindowClassD3d
Size:   X: 0    Y: 0    W: 808  H: 627
>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 188  Y: 413
Cursor ID:  0
>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0x51311D   Dec: 5320989
>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:
Control ID:
ClassNameNN:
Text:
>>>>>>>>>>> Status Bar Text <<<<<<<<<<<
>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

OpenGL:

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  World of Warcraft
Class:  GxWindowClassOpenGl
Size:   X: 0    Y: 0    W: 808  H: 627
>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 278  Y: 282
Cursor ID:  0
>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0x50544E   Dec: 5264462
>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:
Control ID:
ClassNameNN:
Text:
>>>>>>>>>>> Status Bar Text <<<<<<<<<<<
>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

could u make me an example line of this? cuz there is no control id ;/

i guess that it should look like this...

ControlSend("World Of Warcraft", "", "", "the text")

right?

Edited by Jammer

Share this post


Link to post
Share on other sites

ok this does not work... any ideas?

Share this post


Link to post
Share on other sites

ControlSend("title", "text", controlID, "string" [,flag])

Suggestion:

ControlSend("World of Warcraft", "", "", "SomeStringHere")

Hopefully it should still work with/out a control ID


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

it didin't work the first time but it works now...

dunno why..

maby the title is CaSeSenSeTive

Share this post


Link to post
Share on other sites

It is.


Who else would I be?

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  
Followers 0