LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do detect the application program have been opened completely ?

Hi !
Who know how to detect the application program have been opened completely by using LabView ?
For example , open any one web site , the IE application run and we must wait for a little of time .
But if we  open  the web site that don't display content until we wait for a hour .
For this status ,we hope there is a program can automatically detect and tell us the status . 
See attache file
0 Kudos
Message 1 of 7
(2,747 Views)
Why do none respond this question ?
0 Kudos
Message 2 of 7
(2,715 Views)
keep it on top .
0 Kudos
Message 3 of 7
(2,713 Views)

Hi acty,

your question is to general. It depends on the application how you know that the application has loaded a document. An application have started completely when it is listed in the task list of Windows. The other thing you are asking for to know when an application has completly opend a document. This second question can only answer the application.

For your example of the IE there is a method in the Active-X interface. You can find the method if you load <vi.lib>\Utility\NIReport.llb\Print HTML using IE.vi. This VI will print a HTML file on the standard printer using IE. The VI needs to wait until the HTML file has loaded and then start the print. For this case you can look here.

For other applications you need the description of the Active-X interface if this is possible or not. And there are a lot of programs out there which even don't have any Active-X interface. For these applications you don't have a chance to find out, when a document have been loaded.

Message Edited by waldemar.hersacher on 01-25-2007 12:44 PM

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 4 of 7
(2,709 Views)

Hi waldemar.hersacher

For loading IE application , could you send a sample to me ?

thank you in advance .

0 Kudos
Message 5 of 7
(2,681 Views)
You might check out this thread on a somewhat similar issue. The bottom line is that you can use ActiveX events for Internet Explorer that will inform you when a document has finished loading completely. You'll have to do a little research on ActiveX and ActiveX events to get a handle of what's going on here. ActiveX can get as complicated as anything, but the basics start off pretty easy.

Search the forums and ni.com for ActiveX and you'll see loads of examples and tutorials. Hope this helps!
Jarrod S.
National Instruments
0 Kudos
Message 6 of 7
(2,668 Views)

Hi acty,

<vi.lib>\Utility\NIReport.llb\Print HTML using IE.vi is an example for IE. The NIReport is part of your LabVIEW installation.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 7 of 7
(2,657 Views)