Sign in to follow this  
Followers 0
jason_murray

Pressing the Enter/Return key

1 post in this topic

It seems like powershell itself doesn't have a way of doing this and my endless searching brought me to AutoIt.  I think there is a way to do this from the manuals but I can't seem to get it working.   So I have a powershell script and am importing the AutoItX module to it.  All works.  There is one place in the script were you press the submit button and a popup window comes up and wants to you click OK or Cancel.   The OK button is already the active button so on your keyboard all you have to do is press enter/return.  It seems like something simple to do but I cant get it working.  I would think this command would work

Send-AU3Key {Enter}

However its not. I've tried to use Get-AU3WinProcess to bring up the iexplore process first but that didnt help.

Anyone have any ideas on how I can send a simple Enter button press to internet explorer using the AutoIt Module in Powershell? 

 

Thanks so much for any help!

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0