Look at string returned by GUI.getDisplayTime(), parse it, and then execute one of 2 widgets using executeActions().
Somewhere in this forum is the logic I use to extract time via regular expressions that accounts for 24 hour clock.
Search for posts by me that also contain GUI.getDisplayTime().
Here's the code I spoke of... I'm sure there is more information you may want to see from the above search as well so have a look at search results too, please.
[Link: remotecentral.com]
Last edited by Lyndel McGee on July 26, 2010 17:58.