Sendmessage c#
So im using pinvoke for sendmessage and its been working fine for the game, no problems when minimized. But when i use it on a third party program for the game it works if window is visible doesnt need focus. But if window is minimized nothing is happening. I checked with spy++ and the messages do get sent but they just dont have effect when window is minimized.(kinda required)