Rumba Posted February 3, 2010 Report Share Posted February 3, 2010 mouse coordinates.viHi, I need to acquire the mouse coordinates over image control while the left button is pressed and the mouse is moved. In the attached vi I need to always click on the image to get the coordinates. Thanks Quote Link to comment
Francois Normandin Posted February 4, 2010 Report Share Posted February 4, 2010 The simplest way is to track the "Mouse Move" event with a boolean for indicating when you update the coordinates or not. It could be done with more intricate code using registering and unregistering events, but this is the simplest I can think of. Track Coordinates.vi LV 8.6 Quote Link to comment
Rumba Posted February 4, 2010 Author Report Share Posted February 4, 2010 The simplest way is to track the "Mouse Move" event with a boolean for indicating when you update the coordinates or not. It could be done with more intricate code using registering and unregistering events, but this is the simplest I can think of. Track Coordinates.vi LV 8.6 Thanks a ton Quote Link to comment
Rumba Posted February 6, 2010 Author Report Share Posted February 6, 2010 Thanks a ton My prog has DAQ and control. So with the boolean style it misses out on the mouse clicks due to polling I think. Can you provide on the event registering / un regrister style. Example or tutorial etc. Thanks Quote Link to comment
Rumba Posted February 12, 2010 Author Report Share Posted February 12, 2010 My prog has DAQ and control. So with the boolean style it misses out on the mouse clicks due to polling I think. Can you provide on the event registering / un regrister style. Example or tutorial etc. Thanks figured it out. thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.