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. MS Web Browser activeX issue

MS Web Browser activeX issue

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpapachetutorial
3 Posts 3 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
    dorutzu
    wrote on last edited by
    #1

    Hi! I have a problem :) Well, I have a MS Web Browser activeX in my application, and I want to fill in automatically the username and password in a htaccess authenticatification window (like logs.powerhouseprogramming.com [^]). If you have any idea at all how to do this, please let me know. Thanks! PS: you can write directly to dorutzu@personal.ro

    C I 2 Replies Last reply
    0
    • D dorutzu

      Hi! I have a problem :) Well, I have a MS Web Browser activeX in my application, and I want to fill in automatically the username and password in a htaccess authenticatification window (like logs.powerhouseprogramming.com [^]). If you have any idea at all how to do this, please let me know. Thanks! PS: you can write directly to dorutzu@personal.ro

      C Offline
      C Offline
      coolvcguy
      wrote on last edited by
      #2

      yea..I also wanted to know what if we wanted to fill the form on the webpage automatically (This is bit different that the question asked) like latest GOOGLe toolbar does... Thnaks in advance..

      1 Reply Last reply
      0
      • D dorutzu

        Hi! I have a problem :) Well, I have a MS Web Browser activeX in my application, and I want to fill in automatically the username and password in a htaccess authenticatification window (like logs.powerhouseprogramming.com [^]). If you have any idea at all how to do this, please let me know. Thanks! PS: you can write directly to dorutzu@personal.ro

        I Offline
        I Offline
        igor1960
        wrote on last edited by
        #3

        You probably could use appropriate POST request, but it will require some winsock spying. I assume that site intstalls cookie on authorisation. However, I would probably go with well tested by me techniques of just writing win32 hook, or spawning a separate thread: that will wait for: 1. ShowWindow or FindWindow (Caption: "Enter Network Password", class #32770(Dialog)); 2. GetDlgItem(0x411) -> should exist, it should be static control and GetWindowText should return "logs.powerhouseprogramming.com"; 3. GetDlgItem(0x4C2) -> should exist, it should be edit control and here you SetWindowText to "UserName"; 3. GetDlgItem(0x4C3) -> should exist, it should be edit control and here you SetWindowText to "Password"; 4. After you've done all 3 above: just Send or PostMessage to the dialog: WM_COMMAND, IDOK --> "OK" button has id=1 (IDOK)... Use SPY to see if I'm right in above sequence. Don't blame me, not the best solution: but fast to implement... Regards "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

        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