Source language: Translate to:

Action at a given time

General questions about NeoBook

Moderator: Neosoft Support

Action at a given time

Postby stu » Sun Aug 10, 2014 9:13 am

What would be the best approach to set an action to be executed at a given time of the day?. Like an alarm for example, at 4PM an action would be executed... is there a way of doing this on NB?

Greetz
User avatar
stu
 
Posts: 320
Joined: Wed Aug 07, 2013 11:37 am

Re: Action at a given time

Postby Wrangler » Sun Aug 10, 2014 9:18 am

You would need to use a timer. Have the code in the timer check the current time however often you want (every one minute etc.) in an IF statement and execute an action when the time is reached.
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1507
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 2 guests