Ctrl+C does not stop script in Console?

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
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.
User avatar
JoeYeah
Posts: 10
Joined: Tue Nov 15, 2016 7:54 am

Ctrl+C does not stop script in Console?

Post by JoeYeah » Wed Sep 13, 2017 10:17 am

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: 4876
Joined: Thu Aug 18, 2011 4:56 am

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

Post by davidc » Wed Sep 13, 2017 12:42 pm

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
JoeYeah
Posts: 10
Joined: Tue Nov 15, 2016 7:54 am

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

Post by JoeYeah » Thu Sep 14, 2017 11:45 am

Thanks, currently when I tried to right click and choose 'Cancel Execution', the script won't stop at all.

User avatar
davidc
Posts: 4876
Joined: Thu Aug 18, 2011 4:56 am

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

Post by davidc » Thu Sep 14, 2017 1:42 pm

Try using [Ctrl + Break] instead and see if that works for you.
David
SAPIEN Technologies, Inc.

User avatar
JoeYeah
Posts: 10
Joined: Tue Nov 15, 2016 7:54 am

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

Post by JoeYeah » Thu Sep 14, 2017 2:07 pm

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

Is there a way I can customize a key?