취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

How to Get System Cursor Info Using LabVIEW 2019 Win10?

How to Get System Cursor Info Using LabVIEW 2019 Win10?

Please help

This example below does not work.

https://forums.ni.com/t5/Example-Code/Get-System-Cursor-Info-win-API-and-NET-Using-LabVIEW/ta-p/3510...

0 포인트
1/14 메시지
4,642 조회수

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...

0 포인트
2/14 메시지
4,602 조회수

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

0 포인트
3/14 메시지
4,595 조회수

@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.

0 포인트
4/14 메시지
4,582 조회수

I need to use it outside the front panel of VI (pointer changes when hovering above the hyperlink in web page for example).

0 포인트
5/14 메시지
4,580 조회수

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.

0 포인트
6/14 메시지
4,578 조회수

Might you share your code?(snippet)
I am not so experienced with this stuff.
Thanks.

0 포인트
7/14 메시지
4,573 조회수

@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.

0 포인트
8/14 메시지
4,564 조회수

Thanks a lot.

0 포인트
9/14 메시지
4,561 조회수

Is there a mouse enter/leave event for the front panel?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 포인트
10/14 메시지
4,506 조회수