Ctrl+C does not stop script in Console?

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 6 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
dveenstra
Posts: 10
Last visit: Tue Oct 19, 2021 6:02 am

Ctrl+C does not stop script in Console?

Post by dveenstra »

Product, version and build: PowerShell Studio 2016 5.4.143
32 or 64 bit version of product: 64 bits
Operating system: Windows 7
32 or 64 bit OS: 64 bits
PowerShell Version: 4.0

When script is running in Console, sometimes I wanted to stop it from running. But Ctrl+C won't work?

I know you can right click on Mouse and choose Cancel Execution, but sometimes you wanted interaction to happen a bit faster than that.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Ctrl+C does not stop script in Console?

Post by davidc »

The ribbon prevents the Ctrl + C message from reaching the console process and triggers the copy command. That is why we included the context menu command, but we revisit it and see what we can do.
David
SAPIEN Technologies, Inc.
User avatar
dveenstra
Posts: 10
Last visit: Tue Oct 19, 2021 6:02 am

Re: Ctrl+C does not stop script in Console?

Post by dveenstra »

Thanks, currently when I tried to right click and choose 'Cancel Execution', the script won't stop at all.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Ctrl+C does not stop script in Console?

Post by davidc »

Try using [Ctrl + Break] instead and see if that works for you.
David
SAPIEN Technologies, Inc.
User avatar
dveenstra
Posts: 10
Last visit: Tue Oct 19, 2021 6:02 am

Re: Ctrl+C does not stop script in Console?

Post by dveenstra »

I have a mini keyboard, and there's no break button :oops:

Is there a way I can customize a key?
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Re: Ctrl+C does not stop script in Console?

Post by Alexander Riedel »

As far as I know you cannot configure just another key to act as Ctrl+Break in Windows.
We will investigate what can be done.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 6 years and 6 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.