Jump to content

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


Salvatore Sorice

Recommended Posts

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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! 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...