Jump to content

Sending Keypresses...


Recommended Posts

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?

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

.

Link to comment
Share on other sites

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
Link to comment
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())
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...