LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

autologin post method

tbd,
you're a champion,  thanks for your persistance.  That should do fine.  Its interesting stuff the old web programming, but I'm still just trying to get my head around it all.
Thanks for your help its most appreciated.
 
The plan now is to set up a differnet bit of code for all of shipping companies tracking pages.  Loop through all of our purchase items with tracking numbers and display their status.
It should be easy from here!
 
Thanks again,
 
 
 
 
 
 
0 Kudos
Message 11 of 27
(2,091 Views)
Your welcome, Sniepsy.  It sounds like a "neat" application.
 
Re: "different bit of code for each shipping company" - here's hoping you encounter much similarity across shipper's pages!Smiley Wink
 
Cheers.
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 12 of 27
(2,085 Views)
Thanks tbd! I was looking at this as well, and I was able to find the click function, just didn't know how to apply it to the button correctly.  Your solution is perfect!  Thanks!

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 13 of 27
(2,062 Views)

You're welcome Yi Y, your reply is very gratifying! Smiley Happy

FTR:  'my' solution is mostly Sniepsy's work; without his example, I wouldn't have had a clue what to do!  Smiley Tongue 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 14 of 27
(2,055 Views)
Hey tbd,
 
Here I weas thinking I'd be home and hosed and then I hit another thing I dont know how to do!
I've attached my updated code.  Now that  I have the webpage with the tracking results I need to get the pages html code.  I can't figure out how to reference this new web page we are at, any ideas?
 
Cheers
 
0 Kudos
Message 15 of 27
(2,043 Views)

woops here is the code

 

Cheers

0 Kudos
Message 16 of 27
(2,045 Views)

Hi Sniepsy,

      By adding a delay after the "Click" (4 sec (probably excessive)) , the final "Inner HTML" was updated with the second page - that's what's needed, right?  I hate depending on arbitrary delays and would be tempted to build a loop to check for the desired web-page (see attached).

The TNT consignment-page suddenly became very non-responsive/slow (even when copied to IE address-bar) and I was never able to see this work!

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
Message 17 of 27
(2,032 Views)
Hi mate,
 
Gotya,  I hate waiting on delays too, its too easy to miss information during a slow internet period.  That looks good so I'll have a play with it.
Thanks for your good work again.
 
 
0 Kudos
Message 18 of 27
(2,031 Views)

Whaouh ! That was a very interesting exchange !

It opens new fields to me. Hope some of you are still around 3 months later !

I would like to automate a few tasks, mostly related to this forum (for instance this one... ;))

 1- click on the "insert picture" button in the "message reply window"

 2- Insert text in the Message subject and in the main text Area

I must admit that, even after spending a few hours in the MSDN, I still don't understand how to obtain the proper ref to a text field or a button !!!

An additionnal question is : Is it possible to act similarly on the content of an already opened window (not on he content of an ActiveX inserted in a vi). I know how to manipulate windows using the LabVIEW winUtils32 tolls. But I could not find a way to act on the content, except by simulating key presses or mouse clicks. For simple tasks thats sometimes enough, but always far from satisfactory.

Anybody to help ?

Chilly Charly    (aka CC)
0 Kudos
Message 19 of 27
(1,928 Views)
Hi Chilly Charly,
 
Yes, you can still use the ActiveX VIs to manipulate an Internet Explorer browser as you would do with a browser inside an ActiveX container.  Use the Automation Open VI to obtain a reference to the browser, and then proceed as you would with a container.  To solve your specific questions, the approach tbd and Sniepsy took was to view the source of the web page to find the name of the desired objects.  For example, they figured out that the textbox on the TNT website was called "TextArea" and that it is an IHTMLFormElement object.
Regards,

James R.
National Instruments
0 Kudos
Message 20 of 27
(1,883 Views)