PowerShell Sendkeys

Published: 08 July 2021
on channel: Mr Automation
10,317
210

In this video I demonstrate a practical use case for using sendkeys in a PowerShell script. You can use sendkeys to automatically click a button, or confirm a prompt for instance.

*How to send keyboard input with PowerShell to any open window or application
*how to send keystrokes programmatically by windows title
*add-type -AssemblyName microsoft.VisualBasic
*add-type -AssemblyName System.Windows.Forms
*[Microsoft.VisualBasic.Interaction]::AppActivate()
*[System.Windows.Forms.SendKeys]::SendWait()
*powershell
*learn powershell
*automation
*learn automation
*windows
*windows powershell
*automatic installations
*send keys from powershell to any application or window

Code: https://github.com/mwhooo/misc/tree/m...


On this page of the site you can watch the video online PowerShell Sendkeys with a duration of hours minute second in good quality, which was uploaded by the user Mr Automation 08 July 2021, share the link with friends and acquaintances, this video has already been watched 10,317 times on youtube and it was liked by 210 viewers. Enjoy your viewing!