How to add delay in cycles?

111 views
Skip to first unread message

ru....@gmail.com

unread,
May 15, 2016, 11:04:13 AM5/15/16
to Hammerspoon
while true do
        hs.alert.show("Hello World!")
--      delay (1000)
end

ru....@gmail.com

unread,
May 15, 2016, 11:31:30 AM5/15/16
to Hammerspoon, ru....@gmail.com
Found a solution:

Atimer = hs.timer.doWhile(function()return true end, function() hs.alert.show("Hello World!")return true end, 1)

have other ideas?
Reply all
Reply to author
Forward
0 new messages