Hi,
I would like to turn Capslock on/off iff both Shift keys are pressed and no other key is pressed inbetween.
{RShift down} {LShift down} {RShift up} {LShift up} -> Capslock
{RShift down} {LShift down} {LShift up} {RShift up} -> Capslock
Of course the mirrored versions too.
But I dont want Capslock here:
{RShift down} {a} {LShift down} {RShift up} {LShift up} -> no Lock
{RShift down} {LShift down} {a} {RShift up} {LShift up} -> no Lock
{RShift down} {LShift down} {RShift up} {a} {LShift up} -> no Lock
({a} is the a-key but stands here for just any other key)
With the following code I get the Capslock but the cases I don't want it still give Capslock.
Code:
LShift & RShift up::
if GetKeyState("CapsLock","T")
{
setcapslockstate, off
}
else
{
setcapslockstate, on
}
return
RShift & LShift up::
if GetKeyState("CapsLock","T")
{
setcapslockstate, off
}
else
{
setcapslockstate, on
}
return
seems to me like a tough question, but maybe you have some easy way for this.
ciao
xmav000