Connecting Tech Pros Worldwide Help | Site Map

Multiple actions with Inet

Newbie
 
Join Date: Feb 2007
Posts: 3
#1: Feb 12 '07
Is it possible for inet to access a webpage, fill out post data, and then do another action afterwards?

How would I do that?

For instance, I've got inet accessing a site where it needs to do a POST action, then I want to have it go to a specified URL in text1.text

How can I do this?

Here's my code as of now:

Expand|Select|Wrap|Line Numbers
  1. Inet1.Cancel
  2.     Inet1.Execute "http://reddit.com/login", "POST", postData, strData


What would be next to get it to access another URL given in a textbox (text1.text)?

I can't figure out how to get Inet to do multiple actions one after the other.

Thanks
maxamis4's Avatar
Expert
 
Join Date: Jan 2007
Location: Northern VA
Posts: 214
#2: Feb 12 '07

re: Multiple actions with Inet


I would use the internet explorer refernece library. Are you using this for only one web site or are these dynamic sites that anyone can access at any point?

google this
Expand|Select|Wrap|Line Numbers
  1.  Set myIE = CreateObject("InternetExplorer.Application")
Newbie
 
Join Date: Feb 2007
Posts: 3
#3: Feb 13 '07

re: Multiple actions with Inet


Would that be the browser interfaced stuff?

I was hoping to do this all through Inet, and connect to the site directly.
maxamis4's Avatar
Expert
 
Join Date: Jan 2007
Location: Northern VA
Posts: 214
#4: Feb 13 '07

re: Multiple actions with Inet


I am not sure what I net is, but if you google that snip that I gave you will see how the browser can auto fill fields for you. Now if Inet is a browser just incorporate the .dll into your refernce library and use it the same way that explorer is used.
Reply