I've been playing around with a program called WebcamXP lately. I read through the manual and learned that I can interact with it using Windows Messages and SendMessage(), but I've been having some trouble. Here is the manual:
PDF, 10.3MB
The section of interest is Appendix E on page 80. It describes the Message that needs to be sent to perform each action.
Now, I've got a using for InteropServices and I've defined the SendMessage properly, I tested it by sending a message to another application that I wrote. The problem I'm having is that even though I'm pretty sure I'm using the correct handle, nothing is happening. The manual is annoyingly sparse on detailed information about this particular topic. I'm trying to send the message to capture an image, so here's what I'm sending (wLite is the process variable for the application):
Unfortunately, it's not doing anything, and I don't know why.
Hopefully someone here has used this program before and knows what I'm doing wrong, or can at least help me troubleshoot. I'd really appreciate it!
PDF, 10.3MB
The section of interest is Appendix E on page 80. It describes the Message that needs to be sent to perform each action.
Now, I've got a using for InteropServices and I've defined the SendMessage properly, I tested it by sending a message to another application that I wrote. The problem I'm having is that even though I'm pretty sure I'm using the correct handle, nothing is happening. The manual is annoyingly sparse on detailed information about this particular topic. I'm trying to send the message to capture an image, so here's what I'm sending (wLite is the process variable for the application):
Code:
SendMessage(wLite.MainWindowHandle, (uint)4176, IntPtr.Zero, IntPtr.Zero);
Hopefully someone here has used this program before and knows what I'm doing wrong, or can at least help me troubleshoot. I'd really appreciate it!