Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Automatically click on Javascript confirmation popup

  • Please log in to reply
1 reply to this topic
  • Members
  • 1 posts
  • Last active: Nov 05 2015 06:58 PM
  • Joined: 01 Nov 2015

After getting IE com object instance and I tried to call wb.document.GetElementById("vote").click()


And then a popup message showed up, I want AHK to automatically to react with the popup box but it didn't work.


Below is what I tried.


1. ControlClick, Button1, message from web


2. Send, {Enter} ; although I'm assuming that's what you meant.


How to close the popup box automatically?


Any suggestion is appriciated. Thanks.

Jackie Sztuk _Blackholyman
  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012
can you post all of your script so we can better help you debug it?

controlclick's syntax
ControlClick [, Control-or-Pos, WinTitle, WinText, WhichButton, ClickCount, Options, ExcludeTitle, ExcludeText]

Also please give us more info on the overall task and maybe a link to the page or the HTML source of the page so we can test it...

[AHK] Version. 1.1+ [CLOUD] DropBox ; Copy [WEBSITE] Blog ; About