Jump to content

New Forum section for Auto Hotkey scripts? Example: This one Toggles the current Screenset between Locked and Unlocked!


Recommended Posts

Posted

I'm no Auto Hotkey expert by any means and the scripts I've found (or compiled by trial and error) are real timesavers.

I think it would be great to have a dedicated section of the Forum where users can post/share Auto Hotkey scripts - it seems like there are several knowledgeable Auto Hotkey folks on the Forum. I've got several and will post them.

Example: Here's one that will Toggle the current Screenset between Locked and Unlocked - great timesaver!

Script syntax:

#SingleInstance Force

#Requires AutoHotkey v1

; Desgnate Hotkey Toggle Screenset Lock between On and Off (CTRL+ALT+L)
^!l::

;Run as Administrator
;NO ERROR checking included

#z::

IfWinActive ahk_class Sonar
{
Sleep 300
Send !V
Sleep 300
send s
Sleep 300
send s
send {Enter}
Sleep 300
send l
Sleep 300
Send r
Return
}
 

While Sonar is in focus pressing CTRL+ALT+L (or whatever combination you prefer) will toggle the screenset between locked and unlocked. You can put the script into your Windows startup folder so that it loads upon start and is always available.

Here is it in action:

LockUnlockCurrentScreenset.gif

Posted
8 hours ago, Promidi said:

I just use ALT+SHIFT+L. No  Auto Hotkey needed.  Is that not available there in your Sonar?.

Hmmm. Not sure and not at my PC but will check. Did not think there was a dedicated shortcut.!

Posted
8 hours ago, Promidi said:

I just use ALT+SHIFT+L. No  Auto Hotkey needed.  Is that not available there in your Sonar?.

@Promidi, ALT+SHIFT+L does not work for me (latest paid Sonar build). Also, I had checked, and the lock/unlock screenset command does not show in the Global Bindings list at all. No idea why it works for you. Could it be some type of script/macro you are using?

image.thumb.png.17f0f9153c03c3e9aab02fb59e2f7f0c.png

 

 

Posted

I looked into this further and I think this was added from a time when Screensets were introduced. 

I also looked for ALT+SHIFT+L in the keybinding settings on my Sonar and Splat and could not find it either. 

I am also baffled as to why I have it in my Sonar 2025 (and Platinum).

However, to toggle the lock status of my current screenset, all I have to do is ALT+SHIFT+L 

Maybe drop a note to Sonar Support.

https://help.cakewalk.com/hc/en-us/requests/new 

Posted
42 minutes ago, Promidi said:

I looked into this further and I think this was added from a time when Screensets were introduced. 

I also looked for ALT+SHIFT+L in the keybinding settings on my Sonar and Splat and could not find it either. 

I am also baffled as to why I have it in my Sonar 2025 (and Platinum).

However, to toggle the lock status of my current screenset, all I have to do is ALT+SHIFT+L 

Maybe drop a note to Sonar Support.

https://help.cakewalk.com/hc/en-us/requests/new 

Sent the request. So weird that you would have it and others don't! 

Posted
35 minutes ago, Salvatore Sorice said:

Sent the request. So weird that you would have it and others don't! 

I checked the keyboard shortcuts in my Sonar FT (Free Tier) and used the Locate Key button to find ALT+SHIFT+L and it shows up as unassigned. Same with Sonar X3 Producer.

Posted
4 minutes ago, Chaps said:

I checked the keyboard shortcuts in my Sonar FT (Free Tier) and used the Locate Key button to find ALT+SHIFT+L and it shows up as unassigned. Same with Sonar X3 Producer.

On mine it states ALT+SHIFT+L  is bound to “Lock/Unlock the Screenset from modifications”

I must have done it during a brief windows when it was possible to do so (in the CbB days).

Posted (edited)

In X1 thru X3 I have Views | Screensets | Lock/Unlock... but all the shortcuts in the list below were removed in SPlat and CbB.

image.png.0360c8e4cacbc11ae95debce33390d38.png

Alt+Shift+L is unassigned in X3.

My guess is they were removed when Lenses/Workspaces came out.

Unfortunately you cannot import them.

Edited by sjoens
Posted (edited)

I don't want to upset anyone, but I'm still looking for someone who finds my Touch Portal concept sexy... there doesn't seem to be anyone in sight.  🤡

Cakewalk/Sonar DAW - Control everything via Touch Portal on Android Tablet

Cakewalk/Sonar DAW - Touch Portal as virtual Shortcut Commander

 

It's that easy to route a complex shortcut to a Touch Portal button...

 

 

Edited by Astraios
  • Like 1
Posted (edited)
1 hour ago, sjoens said:

Unfortunately you cannot import them.

What do you mean? That you can't import *.KBN files? Do you mean the screensets?

Edited by Astraios
Posted (edited)

I tried exporting/importing the ones in the list above but nothing happened.

Edit: or so I assumed.

Edited by sjoens
Posted (edited)
11 hours ago, sjoens said:

I tried exporting/importing the ones in the list above but nothing happened.

The *.kbn file thing is sometimes very confusing.
I think the file you exported was saved somewhere else, and Sonar doesn't recognize it. Generally, they're saved under --> Users --> Roaming. Perhaps you could open the Roaming folder and use the Windows Search function in the top right corner of the Win Explorer. If you can't find it there, I would search the entire PC. You can simply enter *.kbn in the search function. The Roaming folder is usually excluded from the normal search... there's no separate folder for the kbn files.

I'm pretty sure you can import them.

some more wierd stuff:

No PC-Keyboard reaction on basis Tabs Feb-2021

How to disable all Shortcuts in default mode

Edited by Astraios
Posted (edited)

No issues with where they are.  Using the export in X3 and import in SPlat didn't work for these particular shortcuts but will try it again.  Also have another idea to try if this doesn't work.

Edited by sjoens
Posted (edited)

So it does work. . .  but  doesn't show in the list, so I wrongly assumed it didn't work.

image.gif.e3dfce38a197cae423c8cb9566735064.gif

I also assume Promidi must have imported it from an earlier version,  tho assuming doesn't seem to be a strong point for me.

image.gif.fa989eb58f07c39f6bd21279786508bf.gif

Viewing the online list I found there are more Screenset bindings as well as others that aren't in the Preferences list, so maybe a request to rectify non-showing entries would be the ticket.  

  

https://legacy.cakewalk.com/Documentation?product=CakewalkSonar&language=3&help=KeyboardShortcuts.html

(Remove the "s" from https to see pics.)

FWIW there's about 650 default key bindings in CbB.  The online list is about half that.

 

Edited by sjoens
  • Like 1
Posted

To answer their questions:

1. ALT+SHIFT+L is unassigned by default.

2. There is no Lock/Unlock Screenset in the Global Bindings so manual assignment is impossible.

You might also let them know that there's many shortcuts that work if imported but aren't in the Preferences list.

Posted
3 hours ago, sjoens said:

To answer their questions:

1. ALT+SHIFT+L is unassigned by default.

2. There is no Lock/Unlock Screenset in the Global Bindings so manual assignment is impossible.

You might also let them know that there's many shortcuts that work if imported but aren't in the Preferences list.

I have made a reg file that, when imported , adds the keybinding ALT+SHIFT+L to “Lock/Unlock the Screenset from modifications” in Sonar 2025.  This should not modify existing keybindings.

Of course, before importing this file, make sure you either export your keybindings to a KBN file, or export the following registry key:

HKEY_CURRENT_USER\SOFTWARE\Cakewalk Music Software\Cakewalk\Sonar\Bindings

Sonar Screentset lock Keybinding.reg

  • Thanks 1
Posted

Thanks.  SONAR Default Key Assignments.kbn comes with each version, but can it be used to restore factory defaults?

All it contains is:
[Bindings]
Version=201
Shift=192
LBType=0

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...