LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse wheel scroll event ON CHANGE?

Colleagues,

 

Very simple question:

How to get mouse wheel scrolling event on change? Without polling?

Is Acquire Input Data.vi the only way to get it?

 

Thank you in advance,

Andrey.

0 Kudos
Message 1 of 25
(8,498 Views)

Hi Andrey,

i think it's not build in. I wrote some years ago the attched vi's, because i also miss this feature. These vi's use the "acquire input data.vi", but it only polls if a control has registered for it.

 

Hope it helps.

Mike

Message 2 of 25
(8,477 Views)

"Andrey Dmitriev" <x@no.email> wrote in message
news:1235576407442-860112@exchange.ni.com...
> Colleagues,&nbsp;Very simple question:How to get mouse wheel scrolling
event on change? Without polling? Is&nbsp;Acquire Input Data.vi&nbsp;the
only way to get it?&nbsp;Thank you in advance,Andrey.

There is no way to get that without poling.

Regards,

Wiebe.


0 Kudos
Message 3 of 25
(8,471 Views)

Thanks, Mike,

 

I have solution similar with yours. I was sure that  I'm missing something, but it seems to be no other way other than polling (with native LabVIEW components). With polling sometimes I have "skipped" events, so end user will get feeling, that software react with delays. Well, I will profile and "balance" my application.

It sould be possible with WinAPI, but may take huge amount of time for impementation. Hell with WaitForSingleObject, DLL Wrapper, events generation from DLL to LV, and bla bla bla...

Ah, there are nothing ideal and "ready for use" in our world. Unfortunately.

 

Andrey.

0 Kudos
Message 4 of 25
(8,460 Views)
That's cheating!


0 Kudos
Message 5 of 25
(8,443 Views)

Hi Andrey,

as you said, it's possible with WinAPI. I started to write a function which can do it. I'll upload it in the next days. It only need some more tests.

 

Mike

Message Edited by MikeS81 on 06-09-2009 06:14 PM
Message 6 of 25
(8,202 Views)

Mike,

 

Thanks for that. Looking forward for your solution.

 

Andrey.

 

0 Kudos
Message 7 of 25
(8,192 Views)

I submitted a request for this here. If you want this in future versions, you should vote for it.


___________________
Try to take over the world!
0 Kudos
Message 8 of 25
(8,187 Views)

Hey Mike,

I discovered your VIs today and I want to tell you, I think it's excellent work. Congratulations!

 

greets, Dave

Greets, Dave
Message 9 of 25
(7,997 Views)

Wiebe@CARYA wrote:

That's cheating!


What did you mean by this, exactly... ?!

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 10 of 25
(7,986 Views)