I'm trying to use JNA (Overview) to send messages to an application when minimized or not on top (mouse click for example), and the I found that people are using com.sun.jna.platform.win32.User32.SendMessageA( hW, 0x0201, 0, 0);
But i can't found this function in this class.
Can someone give me an example of how to implement it if I'm doing it wrong?
CODE:
User32 user32;
Pointer hW = user32.GetForegroundWindow().getPointer();
user32.SendMessageA( hW, 0x0201, 0, 0 );