LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What are analogous shared libraries that can be called using a call library function to user32.dll and lvtoolbox.dll when using Linux and Mac?

I am wondering if anyone is familiar with how to get similar information with a LV program using a Linux shared library as well as the corrolate Mac library to the Windows user32.dll and lvtoolbox.dll.  I specifically am trying to get system metrics such as screen resolution information and cursor information as well as being able to set mouse position.   I am trying to convert a LV Windows program to these other operating systems and I am unfamiliar with these platforms.

 

Thanks for your time - I really appreciate it.

 

 

 

 

0 Kudos
Message 1 of 4
(2,726 Views)

I think I can just use an application property node to find the screen resolution.  Still not sure about setting the mouse position...

0 Kudos
Message 2 of 4
(2,716 Views)

There is no simple answer to that. On Linux you will likely have to call into X Server, which would be a pain to do, due to various versions and implementations of that. On the Mac there would be the difficulty that you can't call into the native ObjectiveC API but would need to find a Carbon API or something like that to do what you want.

 

If you seriously want to do something like this for multiplatform, you should bite the bullet and start coding an intermediate shared library in C. This library would export a LabVIEW friendly C API and access whatever system API you need to have for the particular functions. But multiplatform programming on this level is a pain in the ass, no matter what.

Message Edited by rolfk on 04-21-2010 08:26 AM
Rolf Kalbermatter
My Blog
Message 3 of 4
(2,703 Views)

Thanks so much - I kind of figured it would require something a little more elaborate!  I appreciate your help!

 

0 Kudos
Message 4 of 4
(2,681 Views)