Enter text into text box on app software dialogue box.

Welcome Forums General PowerShell Q&A Enter text into text box on app software dialogue box.

Viewing 4 reply threads
  • Author
    Posts
    • #200540
      Participant
      Topics: 1
      Replies: 1
      Points: 13
      Rank: Member

      Hello,

      I’m  just getting started with coding and was wondering if there was a powershell command that will allow me to enter text and specify the directory into an input box for an apps dialogue box.  I was able to get through the buttons in the first 2 pages with the below command.

      start-process “D:\Application\Install.exe”
      $WindowHandle = Get-Process | Where-Object { $_.MainWindowTitle -Match $WindowTitle } | Select-Object -ExpandProperty MainWindowHandle

      [void][System.Reflection.Assembly]::LoadWithPartialName(‘System.Windows.Forms’)
      [System.Windows.Forms.SendKeys]::SendWait(“{ENTER}”)
      [System.Windows.Forms.SendKeys]::SendWait(“{ENTER}”)

       

      • This topic was modified 4 weeks, 1 day ago by Cuatejlo34.
    • #200675
      Participant
      Topics: 11
      Replies: 1447
      Points: 1,792
      Helping Hand
      Rank: Community Hero

      Installers traditionally have silent install capabilities so that you do not need to attempt to interface with popup dialog(s). Trying to activate windows and use send keys is the absolute last ditch effort and typically has many issues. I would recommend searching for “my software installer silent install” as typically there will be forums and solutions to make the installer automatically answer the prompts without required user interaction.

    • #200708
      Participant
      Topics: 1
      Replies: 1
      Points: 13
      Rank: Member

      Hi Rob,

      Thanks for getting back to me.  I was able to get the appliction installed correctly with the silent install, but this application has a form to create a workspace on the data drive and I would like to also atuomate that part of the application.  Do you know of anyway that I can sendkeys or is there another command that I can use to fill in the input boxes with text?

      Thanks in advance,

    • #200774
      Participant
      Topics: 2
      Replies: 1780
      Points: 3,735
      Helping Hand
      Rank: Community Hero

      … but this application has a form to create a workspace on the data drive and I would like to also atuomate that part of the application. …

      You may contact the author/vendor of that application. Automated interactions with GUI elements are usually unreliable and error prone. If you’re lucky there is an API or config file or registry setting you can use to set up the initial configuration.

    • #200894
      Participant
      Topics: 4
      Replies: 43
      Points: 196
      Helping Hand
      Rank: Participant

      In some cases, you can get usage for the install as in “install.exe /?”

      This “should” return any available options to the installer.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.