✅ User SendMessage or PostMessage on a unitplayer dll exe game
Does someone know how to make user32 - SendMessage / PostMessage work in a unityplayer exe game? mouse_event works but i need send/post message because i have the window minimized to keep using my laptop. SendMessage and PostMessage are working, but not to the given coords. It will click on the current position of my cursor
13 Replies
then move the cursor the the position first
to*
SetCursorPos
No shit.. I made an automation script for a game. Before i used LDPlayer, but they have now an unity exe game which is 10 times faster. The only problem is that its not working on the given coords. SetCursorPos will only work when its on foreground and will move my own mouse. It has nothing to do with SendMessage, it will only work for mouse_event
![No description](https://cdn.answeroverflow.com/1332809233363636275/image.png)
I think since its a unity game, those user32 wont work all
I dont think you can send input to a window that isn't focused, and I don't think you can send mouse input to a location your cursor is not positioned, but if you find a way I'm interested how it works.
It has nothing to do with SendMessagewell you said that SendMessage uses your current cursor location so it does have something to do with it apparently
Yes, I can. Thats the whole idea of sendmessage and postmessage. Sending to a specific window, so no need to focus it. Like I said, i got it working on an android emulator, but the coords are not working on this unity exe.
If you want I can show you with teamviewer?
no need, I trust you on it
Because you said your interested how it works
I just looked at docs of sendmessage method
$tos
https://discord.com/guidelines
20. Do not engage in activities that could damage or compromise the security of an account, network, or system. This includes using deceptive techniques to trick others into revealing sensitive information (phishing), using malicious software (malware), and flooding a target with traffic in order to make a resource unavailable (denial-of-service attacks). 24. Do not share content that violates anyone's intellectual property or other rights. This includes sharing or selling game cheats or hacks. 27. Do not organize, promote, or engage in any illegal behavior.
These guidelines will continue to evolve over time. This means we may take action against a user, server, or content that violates the spirit of these guidelines when we encounter a new threat or harm that is not explicitly covered in the current version.
Education only 😉
that's not confidence building. at this point, unless you are more explicit about which game, and whether you have the rights to do this, any further discussion will be referred to the admins.