04-20-2020 04:12 AM
How to Get System Cursor Info Using LabVIEW 2019 Win10?
Please help
This example below does not work.
04-20-2020 08:45 AM - edited 04-20-2020 08:49 AM
That should still work as it always did (not sure if it did), but not if you're using LabVIEW 64 bit.
On LV 64 bit, pointers need to be converted to 64 bit integers.
Not sure why that link broke, could be this one:
https://forums.ni.com/t5/LabVIEW/Get-Mouse-Cursor/td-p/3228983
If you want the mouse position, there are easier ways...
04-20-2020 09:03 AM
Thanks a lot.
I need to catch the moment mouse pointer changes from arrow to hand.
Maybe I chose the wrong method?
Thanks in advance
04-20-2020 09:40 AM
@AntMeTech wrote:
Thanks a lot.
I need to catch the moment mouse pointer changes from arrow to hand.
Maybe I chose the wrong method?
That won't be easy no matter the method.
You'd be polling, and with polling there's always the chance you miss the event.
Why do you want this? In some cases you could use mouse enter event.
04-20-2020 09:46 AM
I need to use it outside the front panel of VI (pointer changes when hovering above the hyperlink in web page for example).
04-20-2020 09:56 AM - edited 04-20-2020 10:01 AM
I'd hook the mouse proc.
Not easy, but I recently did this for the keyboard.
Also, no guarantee that it will in fact detect this change. It will at best detect an event that triggers this change. Not sure if these events are distinguishing enough to actually detect the wanted change.
So, lots of work, maybe for nothing...
See Tracking-cursor-change, especially the suggested reading list.
04-20-2020 10:03 AM
Might you share your code?(snippet)
I am not so experienced with this stuff.
Thanks.
04-20-2020 10:21 AM
@AntMeTech wrote:
Might you share your code?(snippet)
I am not so experienced with this stuff.
Thanks.
I am, but it will take some time.
There's a rudimentary version here. Subscribe to that thread, I'll post an update there when it's online. This one is 64 bit only for now, and (testing) the 32 bit version is what is stopping me from posting a more definitive version.
It's probable that I will adjust it to the mousehook myself a while after the keyboard code is done.
04-20-2020 10:24 AM
Thanks a lot.
04-21-2020 08:31 AM
Is there a mouse enter/leave event for the front panel?