alias sendkeys {
if (!$isid) {
if ($com(SendKeys)) { .comclose SendKeys }
.comopen SendKeys WScript.Shell
.comclose SendKeys $com(SendKeys,SendKeys,3,bstr,$1-)
}
}
alias capslock {
if (!$isid) {
if ($1 == on) && (!$dll(Key.dll,CapsLock,_)) { SendKeys {CAPSLOCK} }
elseif ($1 == off) && ($dll(Key.dll,CapsLock,_)) { SendKeys {CAPSLOCK} }
}
elseif ($isid) { return $dll(Key.dll,CapsLock,_) }
}
alias numlock {
if (!$isid) {
if ($1 == on) && (!$dll(Key.dll,NumLock,_)) { SendKeys {NUMLOCK} }
elseif ($1 == off) && ($dll(Key.dll,NumLock,_)) { SendKeys {NUMLOCK} }
}
elseif ($isid) { return $dll(Key.dll,NumLock,_) }
}
alias scrolllock {
if (!$isid) {
if ($1 == on) && (!$dll(Key.dll,ScrollLock,_)) { SendKeys {SCROLLLOCK} }
elseif ($1 == off) && ($dll(Key.dll,ScrollLock,_)) { SendKeys {SCROLLLOCK} }
}
elseif ($isid) { return $dll(Key.dll,ScrollLock,_) }
}