Welcome, Guest
Please Login or Register.    Lost Password?

Keyboard shortcut for Dismiss & Snooze
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Keyboard shortcut for Dismiss & Snooze
#11709
Keyboard shortcut for Dismiss & Snooze 4 Years, 8 Months ago  
I would like to set a hotkey for the actions Dismiss and Snooze. The list of actions available to assign to a hotkey does not contain these.
motdakasha
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11741
Re: Keyboard shortcut for Dismiss & Snooze 4 Years, 8 Months ago  
Try adding these to the hotkeys.lua (or create another .lua file so that it doesn't get overwritten when you upgrade Rainlendar):

Code:


function Hotkey_Snooze_All()
uidAlarms = Rainlendar_GetAlarmItems()
for key, value in pairs (uidAlarms) do
Rainlendar_SnoozeAlarm(value, -1)
end

Rainlendar_Redraw(1)
end

function Hotkey_Dismiss_All()
uidAlarms = Rainlendar_GetAlarmItems()
for key, value in pairs(uidAlarms) do
Rainlendar_DismissAlarm(value)
end

Rainlendar_Redraw(1)
end

Rainy
Moderator
Posts: 5971
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#11754
Re: Keyboard shortcut for Dismiss & Snooze 4 Years, 8 Months ago  
Works like a charm! Thanks so much <3
motdakasha
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop