How do I get the active window? I have an app running in the background and I want to get the foreground applications handle. Is it a Windows API thing?
Basically I want to Get the clipboard full of b4x text, do something with it and the re-insert it back in b4x.
So.
1. Select text in b4x and copy to clipboard.
2. Hot key to run my b4j program and re-format text.
3. Re-insert it back into the clip board.
4. Activate b4x
5. Send a CTRL-V and it will paste back in.
I have worked with the Win 32 API in VB6 and have done things like this before and yes, Windows only.
I will look at the stack overflow