Good Morning,
How do I test if my keyboard is not locked up by windows for using accelerators?
I get no error or success message so no idea if it's my code or if it's my keyboard.
[EDIT] Code tags added.
How do I test if my keyboard is not locked up by windows for using accelerators?
I get no error or success message so no idea if it's my code or if it's my keyboard.
<plugin
name="Accelerators"
author="Saerataga"
id="aaba23f14107f7cccbc97380"
language="Lua"
purpose="Allow short hand typing"
date_written="2023-05-21 16:08:32"
requires="5.06"
version="1.0"
>
Accelerator ("F11", "volume_down")
Accelerator ("F12", "volume_up")
Accelerator ("F1", "flee")
Accelerator ("F4", "recall")
-- convert string back into Lua table
assert (loadstring (GetVariable ("accelerators") or "")) ()
-- if found, process it
if accelerators then
for k, v in ipairs (accelerators) do
local key, action = string.match (v, "^(%S+) = (.*)$")
if key then
Accelerator (key, action)
end -- if matched
end -- for
end -- if
</plugin>
[EDIT] Code tags added.