Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to programmatically perform actions online?

How to programmatically perform actions online?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DanYELL
    wrote on last edited by
    #1

    Does there exist a sample project which will perform actions online? For example, lets say there is a webpage with a login and passcode. How could I programmatically have the software enter that data and hit Enter? I get to another page that has Next. How can I programmatically click that Next button. Eventually what I want to do is programmatically upload a file. If there exists any type of sample project that anyone can point me to, that would be great. Sincerely, Danielle Brina (an overworked graduate student)

    Richard Andrew x64R 1 Reply Last reply
    0
    • D DanYELL

      Does there exist a sample project which will perform actions online? For example, lets say there is a webpage with a login and passcode. How could I programmatically have the software enter that data and hit Enter? I get to another page that has Next. How can I programmatically click that Next button. Eventually what I want to do is programmatically upload a file. If there exists any type of sample project that anyone can point me to, that would be great. Sincerely, Danielle Brina (an overworked graduate student)

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Something like that might require a high level of machine intelligence, unless you are creating it to interact with only a small set of pre-defined pages. Instead of interacting with the web page like that, why not think about interacting with the web server as if you are the browser? For instance, have your program connect to the web server, and issue its own POST request.

      D 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        Something like that might require a high level of machine intelligence, unless you are creating it to interact with only a small set of pre-defined pages. Instead of interacting with the web page like that, why not think about interacting with the web server as if you are the browser? For instance, have your program connect to the web server, and issue its own POST request.

        D Offline
        D Offline
        DanYELL
        wrote on last edited by
        #3

        I want it to interact with a small set of pre-defined pages. And I know what those pages are. In fact, all the program has to do is get past a login page, click Next, Next and then upload a file. Is there any sample project you know of that would do something like this? For example, if I could programatically log into yahoo, maybe that would be the first step. If I could do that, I might be able to do the same for this project.

        Richard Andrew x64R 1 Reply Last reply
        0
        • D DanYELL

          I want it to interact with a small set of pre-defined pages. And I know what those pages are. In fact, all the program has to do is get past a login page, click Next, Next and then upload a file. Is there any sample project you know of that would do something like this? For example, if I could programatically log into yahoo, maybe that would be the first step. If I could do that, I might be able to do the same for this project.

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          I don't know of anything that already exists that you could coopt for your purposes. However, people on this website can help you a great deal if you are very specific about what it is that you don't know how to do. What is your current level of competency with writing Windows programs in C++? Doing what you require is a multistep process; which step is giving you trouble: 1. Downloading the page 2. Parsing the HTML to find the link(s) you are looking for 3. Performing a virtual click on the link ?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups