Example Code

Send a Text Message from LabVIEW using ActiveX and Internet Explorer

Code and Documents

Attachment

Functional Description

This VI uses ActiveX and Internet Explorer to fill out a HTML form and submit it (twice!). The form it uses is Verizon's text messaging website. It requires the user to log in with their Verizon account first before sending the message (otherwise it has a captcha). Note that the first time it uses the form, it uses the 'submit' feature. The second time it selects the correct button and uses the 'click' action.

Verizon's site:

vtextdotcom.png

Log in to the website:

logintoform.png

Verizon's form after logging in:

loggedin.png

Fill out the information to send a text message:

sendform.png

Jeff | LabVIEW Software Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
MoonMan
Member
Member
on

I am fairly new to LabVIEW and I am trying to make a VI that will be able to text me and let me know when a test is about to be done or if something has caused it to shutdown.  I barrowed most of my code from you. My modified VI fills out a form at www.onlinetextmessage.com but I can't get it to click the Send Message button.  I don't have a verizon account or anything but is your VI able to click the submit button?

Can you help me?

JeffL
NI Employee (retired)
on

Assuming you have the proper form reference you should be able to submit in the same manner as the first half of this example. In the second half of this example there is a button to press instead of a form submission which doesn't look like it is the case in your website.

Jeff | LabVIEW Software Engineer
MoonMan
Member
Member
on

This is what I have but I still can't get it to work.

texting front panel.jpgtexting block diagram.jpg

JeffL
NI Employee (retired)
on

Hmm, well, I am no expert on the ActiveX interface for IE. You may want to get in touch with AE support or post to the NI forums for additional help. I would want to see what errors were coming out of the various steps to lockdown the problem.

www.ni.com/support

Jeff | LabVIEW Software Engineer
NTampelloni
Member
Member
on

Thank you, very useful !!

how can I do to " catch" a iframe tag (or IEElement) that has no name but only ID ?

Contributors