-
Macro Prog
hi im trying to make a macro program. im trying to do it in notepad so when i press a button in my program it outputs the string
<newline begin macro x=f s=5 y=10>
I just realize I could make this easyer if i just pressed a key while in notepad.
so how do i listen to keystrokes from a certian window? so im in notebad and I press F4, how do I detect that with my macro program?
-
-
Nice and thnx! I used
SHORT GetAsyncKeyState(
int vKey
);
Hey, do you know how to tell if a window is on top? If you know the handel?
-
GetForegroundWindow() returns the handle of the current active window, so you could compare it's return value to the handle you have.