Sign in to follow this  
Followers 0
Delta01

Sending keys to a minimized window

3 posts in this topic

Hey,

I'm trying to send keys to a game that has no control, so ControlSend doesn't work. I know that in C# there is a PostMessage function that uses "User32.dll" so I was wondering if anyone here knew how to call that .DLL so that I can send commands to a minimized window.

Basically, a DllCall that would send keys to a minimized window that has no control. I've used the search button and found the below code, but it doesn't work.

DllCall("user32.dll", "int", "PostMessage", "hwnd", $wHnd, "int", 0x100, "int", 0x10, "long", 0x002A0001)

Help would be appreciated. Thanks.

Share this post


Link to post
Share on other sites



Hey,

I'm trying to send keys to a game that has no control, so ControlSend doesn't work. I know that in C# there is a PostMessage function that uses "User32.dll" so I was wondering if anyone here knew how to call that .DLL so that I can send commands to a minimized window.

Basically, a DllCall that would send keys to a minimized window that has no control. I've used the search button and found the below code, but it doesn't work.

DllCall("user32.dll", "int", "PostMessage", "hwnd", $wHnd, "int", 0x100, "int", 0x10, "long", 0x002A0001)

Help would be appreciated. Thanks.

What game does this happen to be?

And, I bet you the game dev's, make it so it didn't have a control name, so you couldn't use Send() ControlSend() etc...

Share this post


Link to post
Share on other sites

What game does this happen to be?

And, I bet you the game dev's, make it so it didn't have a control name, so you couldn't use Send() ControlSend() etc...

Silkroad. Send works, do does controlsend, but when using controlsend it activates the game and is very unreliable. Oh yeah, C# sends keys just fine.

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