Update Aardwolf_Clock.xml

Added show/hide functions
master
AardCrowley 9 months ago committed by GitHub
parent 7e41883d67
commit f3d1c96c42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,7 +34,7 @@
</alias>
<alias enabled="y" match="aardclock help" script="onHelp" sequence="100">
</alias>
<alias enabled="y" match="^aardclock (?:hide|off|on|show)$" script="winShow" sequence="100" regexp="y">
<alias enabled="y" match="^aardclock (?:(hide|off|on|show))$" script="winShow" sequence="100" regexp="y">
</alias>
</aliases>
@ -583,11 +583,13 @@ function onHelp()
ColourNote("orange", "", "aardlock help -- what you're reading now...")
end
function winShow()
if WindowInfo(win, 6) == "true" then
function winShow(name, line, wildcards)
local param = wildcards[1]
if param == "hide" or param == "off" then
clockWin:hide()
else
clockWin:show()
end
end
]]>
</script>

Loading…
Cancel
Save