LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control focus of WIN32 applications

Hi,

Is there any possibility in LV to control behavior of WIN32 applications? 

I've tried  WIN32 library (lvwutil32.zip) without success.

I'm interested especially in switching focus between WIN32 windows.

 

I also wonder if there is a way to send to win32 application a system message about pressed key?

 

 

0 Kudos
Message 1 of 2
(2,915 Views)

Layer3 wrote:

I'm interested especially in switching focus between WIN32 windows.


The SetFocus Windows API function will do that. You need to provide the window refnum, and the "Get Window RefNum" function from the WinUtil library will give you that. 

 

 


I also wonder if there is a way to send to win32 application a system message about pressed key?


This question gets asked a lot. Do a search for SendKey or SendInput. You'll find plenty of examples.

0 Kudos
Message 2 of 2
(2,906 Views)