Quote Originally Posted by JadaDev View Post
What i want exactly to send the keys / text even if the window is minimized / not focused that's the main problem..
That would preclude using SendKeys anyway, because it simply simulates keyboard input and you can't use the keyboard to input to a window that doesn't have focus. If that window is using DirectX or the like, which seems likely for a game, there may not be anything you can do for an inactive window and little you can do beyond what I suggested for an active window. I'm afraid there's nothing more that I can suggest that I already have as this is not something I've ever tried or researched before.