ReadKey("NoEcho,IncludeKeyDown) Error

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 2 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
great_vc
Posts: 2
Last visit: Mon Nov 01, 2021 7:43 am

ReadKey("NoEcho,IncludeKeyDown) Error

Post by great_vc »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product: PowerShell Studio 2021 (64 Bit)
Build: v5.8.195
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.18363.0
Powershell: 5.1.18362.1593

*** Please add details and screenshots as needed below. ***

DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Hi, first time user of the Studio, want to check it before i buy it, so far i'm using Notepad++ !
I loaded my first script and i get a weird error which of course that works in powershell not through the studio. I have this pause on almost all my scripts.

Code: Select all

(124, 1): ERROR: At Line: 124 char: 1
ERROR: + $p = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR:     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
ERROR:     + FullyQualifiedErrorId : NotImplementedException
ERROR:
Many Thanks
-Vassilis
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 7:24 am
Answers: 39
Been upvoted: 30 times

Re: ReadKey("NoEcho,IncludeKeyDown) Error

Post by brittneyr »

This does not work with a graphical interface, it only works in a command line console.
Though this article is referring to the PowerShell ISE, the same principles apply:
https://devtipscurator.wordpress.com/20 ... owershell/
Brittney
SAPIEN Technologies, Inc.
User avatar
great_vc
Posts: 2
Last visit: Mon Nov 01, 2021 7:43 am

Re: ReadKey("NoEcho,IncludeKeyDown) Error

Post by great_vc »

thanks.
i played a bit and decided the application is not for me.
This topic is 2 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.