Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6845795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:32:40+00:00 2026-05-27T00:32:40+00:00

I have a nice powershell script that automates a particular website for my daughter.

  • 0

I have a nice powershell script that automates a particular website for my daughter. Recently they changed the site and added a nice new feature that would speed up my script by a factor of 10. The problem is the input type they use to activate this pops up a confirmation dialog. The HTML looks like this

<input type=submit name='enter_all' value='Enter all' onClick="return confirm('Enter all?');">

Can I automate answering this dialog in powershell? I want the script to run in the background so I think sending keystrokes is out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:32:41+00:00Added an answer on May 27, 2026 at 12:32 am

    Answering my own question but I did find a way to do this even if it is a bit of a hack.

    The main script uses Internet Explorer via Com much like

    $ie = new-object -com "InternetExplorer.Application"
    

    There are lots of examples on how to use the ie com object to navigate, fill in fields, click on buttons, etc, etc. However the pop up confirmation just causes things to hang up.

    To get around this I started another thread using Wasp which is a library for automating windows forms. In this thread I just sit in a loop looking for the confirmation prompt and click on it. (The window pops up many times for in my case). The code for this script looks like this

       Import-Module WASP
    while ($true) {
      [System.Threading.Thread]::Sleep(200) 
      $confirmation = Select-Window iexplore 
      if ($confirmation -ne $null) {
        Select-ChildWindow  -Window $confirmation | Select-Control -title "OK" -recurse | Send-Click
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a powershell script that gives some status output via write-output . I
I have a nice and lovely Django site up and running, but have noticed
I have a nice page that does everything I need. However one of the
I have this nice little MSBuild-based daily build setup that I use on my
Imagine that I have a nice Deck class, in the best OO fashion. It
I have nice piece of code that works. I tried to tweet the same
We've all seen that stores have nice-looking pricing on their products; 1.99, 209.90 and
Is it possible to enable per-pixel lighting (so that I can have nice specular
In order to have nice clean urls with some kind of site archetecture I
I have a nice java code that unzips a .zip file. But problem with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.