0

I'm trying to write an automated script to dismiss a Windows 10 popup (image below). The script works fine on other programs (like notepad), but does not work on the popup screen:

public class RobotClicker
{
    static Robot robot; 
    public static void main(String[] args) throws AWTException
    {   
        robot = new Robot();
        robot.delay(5000);    
        robot.keyPress(KeyEvent.VK_LEFT);
        robot.delay(100);
        robot.keyRelease(KeyEvent.VK_LEFT);
        robot.delay(100);
        robot.keyPress(KeyEvent.VK_ENTER);
        robot.delay(100);
        robot.keyRelease(KeyEvent.VK_ENTER);
        robot.delay(100);
    }   
}

Windows "User Account Control" popup

The popup seems to be disabling action from all other programs (it even disables my screen video capture as long as the popup is active). How can I get around this?

Thanks!

luator
  • 4,769
  • 3
  • 30
  • 51

0 Answers0