Keyboard commands

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Keyboard commands

Post by Grovkillen » Tue Feb 16, 2021 2:12 pm

I'd love to get these keyboard commands for the IDE:

CTRL+D = copy the line you're on right after the first one and place your caret there.
CTRL+C = if no selection; copy the row you're on to clipboard
CTRL+X = if no selection; cut the row you're on to clipboard
CTRL+/ (7) = block comment, if no selection; comment out row
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
JRL
Automation Wizard
Posts: 3497
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Keyboard commands

Post by JRL » Wed Feb 17, 2021 7:23 pm

CTRL+C = if no selection; copy the row you're on to clipboard
CTRL+X = if no selection; cut the row you're on to clipboard
CTRL+/ (7) = block comment, if no selection; comment out row
I would use these three 100 times a day if they existed. Not sure I understand the first one.

Working from home for the last year. Tepid connection speeds and RDP session to the work computer where I'm writing scripts makes selecting with the mouse and managing to select precisely what I want selected challenging. I do use double click often to select the text between special characters. And triple click will select an entire line. I'd still vote for (is there an election?) Grovkillen's shortcut keys.

Thanks for listening.
Dick

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Wed Feb 17, 2021 8:16 pm

Thanks for the vote JRL!
CTRL+D = copy the line you're on right after the first one and place your caret there.
What I mean by this is that you have this scenario:

1:Let>VARIABLE=123
2:Let>ANOTHER|=abc
3:Let>THIRD=1a2vb3c

If you have the caret in the second row (example caret position in red) and press CTRL+D you'll get:

1:Let>VARIABLE=123
2:Let>ANOTHER=abc
3:Let>ANOTHER=abc|
4:Let>THIRD=1a2vb3c

With the caret now at the end of row three (marked green).

This is ideal to use to make multiple calls to a sub routine:

1:GoSub>SubName,SubVar1
2:GoSub>SubName,SubVar2
3:GoSub>SubName,SubVar3
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
JRL
Automation Wizard
Posts: 3497
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Keyboard commands

Post by JRL » Thu Feb 18, 2021 5:14 am

Grovkillen,
Thank you for the clarification.

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Thu Feb 18, 2021 7:55 am

And I'd like to add to this one:
CTRL+/ (7) = block comment, if no selection; comment out row
If selection, uncomment rows if more than 50% of the selected rows are commented.. else comment them all.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Keyboard commands

Post by Dorian (MJT support) » Wed Jun 07, 2023 2:29 pm

Added to v15.0.23
Added: Ability to block comment/uncomment with ctrl+/ in editor
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Wed Jun 07, 2023 3:58 pm

I didn't get this to work :?:
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Keyboard commands

Post by Dorian (MJT support) » Wed Jun 07, 2023 4:45 pm

With CTRL and /

It's working for me. Anyone else having problems?
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Thu Jun 08, 2023 5:38 am

CTRL+7 I guess? It's not doing anything on my end. Feel like a monkey here :)
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Keyboard commands

Post by Dorian (MJT support) » Thu Jun 08, 2023 6:56 am

CTRL /
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Thu Jun 08, 2023 7:04 am

I have a Swedish keyboard... I will try to find out where the shortcut is located on mine because the 7 key is the one used for the front slash.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Thu Jun 08, 2023 7:07 am

For me it's the ' key (the @ key on a English keyboard)... Would CTRL+7 be considered ?
If I look at this list I see that many layouts use 7 for the /: https://en.wikipedia.org/wiki/List_of_Q ... e_variants
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Keyboard commands

Post by Dorian (MJT support) » Thu Jun 08, 2023 7:18 am

Ah, interesting. I'll mention this to Marcus.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Keyboard commands

Post by Dorian (MJT support) » Thu Jun 08, 2023 8:01 am

I have a similar problem with the \ key on my bluetooth keyboard. It's there but is a real pain. So I have a script with a hotkey of ` which simply just sends \.

I just tested the same workaround for you with CTRL+/. It worked in the editor.

Just assign whatever hotkey you like to this:

Code: Select all

press ctrl
wait>0.05
send>/
wait>0.05
release ctrl
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Thu Jun 08, 2023 8:16 am

In that case I need to do a loop that only do this when the editor is in focus. If possible I would love to have this shortcut on CTRL+7 (alongside the current shortcut with CTRL+/). I'm not demanding it, I just wish for it :)
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts