J
Jay Drozd
I'm trying to write my own small 'wedge' application that will allow data
from a serial I/O connection to be placed into whichever textbox has the
focus at a particular time. I have seen them done, but I am trying to write
my own. I can call the SendMessage API to any other textbox and it works
fine, but when the textbox is within an IE browser(on the page) it doesn't
seem to work.
Am I going about this the write way? Anybody have any insight on creating a
small application like this?
Currently I am:
Getting foreground window from GetForegroundWindow
Getting the thread ID of that process and the current process from
GetWindowThreadProcessId and GetCurrentThreadId
Attaching the Thread Input via AttachThreadInput
Using GetFocus to get the hwnd of the window which currently has focus.
Please somebody shed a little bit of light on this subject.
thanks
-Jay
from a serial I/O connection to be placed into whichever textbox has the
focus at a particular time. I have seen them done, but I am trying to write
my own. I can call the SendMessage API to any other textbox and it works
fine, but when the textbox is within an IE browser(on the page) it doesn't
seem to work.
Am I going about this the write way? Anybody have any insight on creating a
small application like this?
Currently I am:
Getting foreground window from GetForegroundWindow
Getting the thread ID of that process and the current process from
GetWindowThreadProcessId and GetCurrentThreadId
Attaching the Thread Input via AttachThreadInput
Using GetFocus to get the hwnd of the window which currently has focus.
Please somebody shed a little bit of light on this subject.
thanks
-Jay