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

Loading…
Cancel
Save