Results 1 to 4 of 4

Thread: [RESOLVED] How to send OK to Javascript Alert ? VB 2010

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2014
    Posts
    12

    Resolved [RESOLVED] How to send OK to Javascript Alert ? VB 2010

    I have run into a problem. This is a new app. Not the last one i tried to put into other users computers. This is a bot for myself. To get Views on my blog and stuff. When I try to leave the page. It gives a popup ( or maybe javascript alert , Im not so much pro in this stuff ) I want to press OK automatically when it opens ? Is there a way to do that ? Or even just block that alert ? Is there a way to do this ?

    Name:  Capture.PNG
Views: 388
Size:  33.8 KB

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,479

    Re: How to send OK to Javascript Alert ? VB 2010

    That's not a JavaScript alert. Seems to be a dialog.
    In your code, the line where you navigate away, in the line before, start a timer. In the Tick event, stop the timer and then use SendKeys to send ENTER.
    That will click the focussed button. To shift focus between the buttons, use SendKeys TAB.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2014
    Posts
    12

    Re: How to send OK to Javascript Alert ? VB 2010

    Can u help me with the codes ? Im new on vb. This is my first project

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2014
    Posts
    12

    Re: How to send OK to Javascript Alert ? VB 2010

    Found the way, Its here This Link

    get a timer, interval for 100ms and turn it on when u are leaving the webpage and turn it off after u leave the webpage :3 Easy , Thanks for everybody for helping me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width