10-20-2008 03:00 PM
I have an old PTZ camera and need to control the Pan and Tilt functions but can't interface to the camera's software. I can control the camera through the old screen interface. Is it possible to generate a signal that the OS (Win XP) would interpret as a mouse click on the camera's screen interface?
Thank you
Solved! Go to Solution.
10-20-2008 11:23 PM
Hi Rick,
It's a bit of work, but the windows API provides functions for mouse control. There are many searchable posts on this, for example...
I don't know if .NET offers any mouse-event tools - if so, they'd be simpler.
There are tools called "Macro Recorders" which you could use to record some keyboard and/or mouse actions - and invoke those actions later using LabVIEW.
If, by chance, camera controls are sent via RS232, it might be possible to "sniff" the comm interface and figure out what the syntax is - then you wouldn't need the old application at all!
Luck/Cheers.
10-21-2008 01:48 PM
Hi Rick,
tbd has provided some great pointers in the right direction. You will need to the use Windows API functions for mouse control. I just want to supplement that with a few knowledgebases and example programs that you can use to modify.
How Can I Progammatically Simulate a Mouse-Click?
How Can I Simulate Key Presses with Front Panel Controls?
How to find the key commands for mouse clicks on another windows program
Executing Print Screen and Other Keyboard Events from LabVIEW on Windows 2000/98/95
Hope this helps!
Thanks,