ImonseI
Joined: 08 Oct 2004 Posts: 2
|
Posted: Fri Oct 08, 2004 3:34 pm Post subject: caps is now delete and modifier key |
|
|
just created my first useful script
this will make caps lock function as backspace, but if you press backspace followed quickly by either "u" "i" "o" it will insert parantheses curlybrackets or double pling (forgot what they were called in english)
it does however have a dark side... if you are typing fast and want to erase a "uio" char it will replace. fidget with the timer to see what fits your speed.
| Code: |
#NoTrayIcon
#UseHook
timeout = 200
u::
if A_TimeSincePriorHotkey > %timeout%
{
send, u
return
}
else
if A_PriorHotkey = Capslock
{
send, (){left}
return
}
send, u
return
o::
if A_TimeSincePriorHotkey > %timeout%
{
send, o
return
}
else
if A_PriorHotkey = CapsLock
{
send, {{}{}}{left}
return
}
send, o
return
i::
if A_TimeSincePriorHotkey > %timeout%
{
send, i
return
}
else
if A_PriorHotkey = CapsLock
{
send, {"}{"}{left}
return
}
send, i
return
p::
if A_TimeSincePriorHotkey > %timeout%
{
send, p
return
}
else
if A_PriorHotkey = CapsLock
{
send, {[}{]}{left}
return
}
send, p
return
CapsLock::
if A_PriorHotkey = CapsLock
{
send, {backspace}
return
}
return
|
|
|