05-29-2019 10:54 PM
05-30-2019 12:15 AM
I do not want to draw the line (from start to end) programatically.
Whenever we draw a line for the first time with the IMAQ line tool, we are able to draw a perfectly straight line while holding down the shift key + mouse drag. This works even without the vi running.
I want to know how this function (holding down the shift key to force the user to draw a perfectly straight line) is done and replicate it.
- Sable
05-30-2019 01:57 AM - edited 05-30-2019 02:08 AM
-First thing is identifying the Key Press and add logic after that event.
-If you can check the Key Navigation and Key focus it might help.
-The Monitoring Keyboard and Mouse Activity.vi in the examples and https://forums.ni.com/t5/Example-Programs/Hotkeying-and-Key-Navigation-Using-Key-Presses-to-Control-... will give some understanding of how to add HotKeying.
05-30-2019 06:00 AM
Thank you udka
I am wondering if the function uses a windows .dll that I can set during the Key Press event and release during the Key Up event?
- Sable