Having the software communicate with a website
-
There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)
-
There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)
1 IWebBrowser2 is a good starting point. 2. You need to have a complete DOM of webpage to fill out the information of the page/ 3. Somehow figure out how to stimulate the click on the submit button. In Addition,You may need a browser plug a (ActiveX DLL) in form of BHO.
modified on Monday, December 28, 2009 5:02 PM
-
There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)
This used to be pretty simple (using IWebBrowser2::Navigate) until IE "safe mode" came out. This internet explorer option appears on Vista (and I'm assuming later OS but I have not confirmed that) and seems to be enabled by default. If safe mode is enabled, you will effectively get cut off from the browser instance and your attempt to "post" data gets lost in a singularity or evaporate. I spent some time looking for a workaround but it seems hopeless. Yet another lashing from the security folks. :((
-
There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)
This is basically done using a browser extension. The web browser loads your extension and passes in a reference to the browser control and also fires events when a web page finishes loading so that you can get access to the web page and manipulate its contents. You will need different extensions for different browsers like IE, firefox etc. since their architectures are different.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
This is basically done using a browser extension. The web browser loads your extension and passes in a reference to the browser control and also fires events when a web page finishes loading so that you can get access to the web page and manipulate its contents. You will need different extensions for different browsers like IE, firefox etc. since their architectures are different.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)Well are you asking for automating clicks and submitions, means doing repeating things. then you can simply go for keyboard and mouse event, just search google with msdn in front then there's is a different interesting way too. simply discover how the submitions are being submitted, get tamper data plugin for firefox, check out what parameters are being submitted in HTTP request, and emulate same, many submitions are based around method get, so you simply need to submit parameters in url or otherwise if the submitions are based on method post, then you need to write and send the HTTP request body too. for any way you choose you can go for WININET library to do http work..... that way you'll know more what u r doing amd have much control ovet it.