Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

ScrollLock as ShiftLock - how to change ScrLk to other key as ShiftLk?



  • Please log in to reply
4 replies to this topic
MIRKOSOFT
  • Members
  • 98 posts
  • Last active: Nov 01 2015 12:50 AM
  • Joined: 25 Jul 2014

Hi!

 

Longer time ago helped me member of this forum to use Scroll Lock as Shift Lock. What Shift Lock is?

It's toggle key which allows to send each key like pressed with Shift, similar to Caps Lock but shifts each key.

It's created by:

*ScrollLock::Send, % (toggle := !toggle) ? "{LShift down}" : "{LShift up}"
Now I want to change Scroll Lock to other key as toggle key. I created few toggle keys, but this is for me not similar 'cause I don't want to hold <any> key - then it's not useful - this way I can hold Shift without modification...
So, if anyone has idea how to create other toggle key, please help me.
 
Thank you all for doing it.
 
Miro


Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

I'm rather confused by your request, maybe I'm just not seeing the complexity.

 

Do you simply want to change the hotkey? That is, say, make the F1 key your toggle key instead of ScrollLock?

 

F1::Send, % (toggle := !toggle) ? "{LShift down}" : "{LShift up}"


MIRKOSOFT
  • Members
  • 98 posts
  • Last active: Nov 01 2015 12:50 AM
  • Joined: 25 Jul 2014

Works, you understand correctly.

But it has problem - when I activate ShiftLock, F1 pressed again deactivates Shift Lock NOT.

All key stay shifted.

 

Miro



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012
✓  Best Answer

Oh, gotchya, yeah, I can see why. Because it's being processed as +F1.

 

We can just do this:

F1::Send {LShift down}
+F1::Send {LShift up}

The purpose of the * modifier was to allow both non-shift and shift presses to activate the same hotkey.



MIRKOSOFT
  • Members
  • 98 posts
  • Last active: Nov 01 2015 12:50 AM
  • Joined: 25 Jul 2014

Thank you, really works.

I'm only surprised how it's easy - I must to learn more... 

 

Miro