LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to save an image in the minimized window of an external program?

Solved!
Go to solution

Hello, please understand that I used Google Translate because I do not speak English.


I am planning to create automation for a simple task.

 

External program I want to create a program that loads the current image, compares it, and processes it, but I want to work in an inactive state.


I want to create a program that can do other tasks while running an automation program.


Is there a way to take an image of an external program in the minimized window state?

 

 

0 Kudos
Message 1 of 7
(1,089 Views)

Not sure I completely understand what you mean, but LabVIEW can establish communication (over TCP/IP, for example) with another "cooperating" program, and can exchange information/data (again over TCP/IP).  Reminds me of what happens with a LabVIEW Real-Time Project, where you have one LabVIEW program running on the Host (PC), another "stand-alone" LabVIEW program running on the Real-Time Target, and TCP/IP connecting the two, with communication between the two "relatively-independent" LabVIEW programs working in tandem.

 

Bob Schor

0 Kudos
Message 2 of 7
(1,077 Views)

oh! I'm sorry.

 

I want to take images of other programs(not labviw) within the same pc.

 

I can use the print screen key, but I want to take an image and perform simple operations in the minimized window state.

 

Is there any way to access it?

0 Kudos
Message 3 of 7
(1,063 Views)

Ah, you want to make a "Snipping Tool" with LabVIEW.  Why?  [I don't have any good ideas about how to accomplish this, hence the question "Why?"].

 

Bob Schor

0 Kudos
Message 4 of 7
(1,053 Views)
Solution
Accepted by ndtsystem

As far as I understand your request, the only way this could be done is if the application in question offers some Inter-Application Communication channel (TCP/IP, pipe, ActiveX Server or similar) to request this image specifically.

 

A process can't look into another process randomly other than what this process provides explicitly as a service to access from other processes, preferably with some authentication too.

 

The only other way is if the process actually displays that image on screen as you can also capture the screen area as a bitmap (and in some convoluted ways as enhanced metafile too, but that is very tricky to do). And this requires interfacing to Windows GDI functions directly or use an application that you can control through a remote control interface which does that.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 7
(1,017 Views)

Thanks for the answer I was looking for, do you have any examples of accessing GDI?

0 Kudos
Message 6 of 7
(989 Views)

@ndtsystem wrote:

Thanks for the answer I was looking for, do you have any examples of accessing GDI?


Not really. Old Windows SDKs had such examples but they were programmed in C. And you likely don’t want to do that at all!

And it wouldn’t work to retrieve images from minimized windows!

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 7
(973 Views)