Adding delay to Script

Hello

I followed the video about creating macros. Turns out the format is different since the video was made.
I figured out how to send IR signals in sequence but need to add a delay after the first IR signal. Any help appreciated.

App.SetDeviceAttribute(“SkySetTopBox.MediaCommand”,“Menu”);
App.SetDeviceAttribute(“SkySetTopBox.MediaCommand”,“DirectionDown”);
App.SetDeviceAttribute(“SkySetTopBox.MediaCommand”,“DirectionRight”);
App.SetDeviceAttribute(“SkySetTopBox.MediaCommand”,“DirectionDown”);
App.SetDeviceAttribute(“SkySetTopBox.MediaCommand”,“DirectionDown”);
App.SetDeviceAttribute(“SkySetTopBox.MediaCommand”,“Select”);

Dan

Can,t You just add the delay like this:

This will delay 1000ms, or 1 second

sleep(1000);

However, @Ecis pointed out a much cleaner way to do it. Bill suggests to avoid adding a script unless completely necessary. If you follow the screen shot above, you would have each line of your “SetDeviceAttribute” above as it’s own DataAction.

Doh! Yep, that works… Thanks