Results 1 to 2 of 2
  1. #1
    vitaminb2's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    3
    My Mood
    Inspired

    Click on a confirmation popupbox on a website.

    Hello, Im working on autoclick some buttons and fill in particular textboxe´s on a website.

    Now i got a problem by clicking the Popup buttons Ok-Cancel.


    here is the line of code for clicking the send button.
    Code:
    HtmlElement Button = IE.Document.GetElementById("sendtbtn");
    Button.InvokeMember("onclick");
    After clicked on the button the site showing a popup confirmation box.

    How can my program detect the box and click on one of the buttons.
    (Ive tried to use the sendkeys metheod to send a Enter key stroke to the form. And with the Webbrowser.Focus then sendkeys didnt work too.)
    Last edited by vitaminb2; 09-10-2014 at 06:47 AM.

  2. #2
    vitaminb2's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    3
    My Mood
    Inspired
    Ive found a solution. I just call the Js function I need from the modal popup box with Document.InvokeScript

    so the modal box never apear and my form dont freeze up

Similar Threads

  1. Good Cracks/Serials/Keygens website
    By Elmo in forum Spammers Corner
    Replies: 11
    Last Post: 10-22-2016, 07:05 AM
  2. Making website automater, using mouse clicks
    By ainkut in forum Coders Lounge
    Replies: 2
    Last Post: 01-23-2014, 01:43 PM
  3. [HELP]Information from a website into my Label with a click of a button!
    By Prfction in forum Visual Basic Programming
    Replies: 22
    Last Post: 06-30-2010, 08:18 PM
  4. Suggestions For The Suckiest Website Ever
    By mpghStillBLows in forum Suggestions, Requests & General Help
    Replies: 15
    Last Post: 05-20-2006, 03:27 PM
  5. New Guild Wars Website
    By Chronologix in forum General Gaming
    Replies: 2
    Last Post: 02-07-2006, 04:20 PM

Tags for this Thread