Source language: Translate to:

Do something every one hour

General questions about NeoBook

Moderator: Neosoft Support

Do something every one hour

Postby stu » Sat Aug 22, 2015 8:19 am

I'm aware of the functionality of the timer but I was thinking of executing an action every hour at XX:15

Any built it action I'm missing or plugin maybe?

Cheers
User avatar
stu
 
Posts: 318
Joined: Wed Aug 07, 2013 11:37 am

Re: Do something every one hour

Postby Tony Kroos » Sat Aug 22, 2015 10:03 am

so what's the problem? Most simple answer would be to set the timer to 60000ms and check if "[Minute]" "=" "15" global variable
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm

Re: Do something every one hour

Postby virger » Sat Aug 22, 2015 10:12 am

Try this and make the changes you need.

Code: Select all
{NeoBook 5 Objects}
NeoBookVer=5.80
ObjectType=15
Name=IsTime
X=11
Y=76
W=32
H=32
Anchor=0
Interval=1000
ObjAction=..Change [Second] By [Minute]¶¶ifex "[second]=[alert] AND [flg]=False"¶    TimerStop "IsTime"¶    Setvar "[msg]" "READY...IS TIME"¶    loop "1" "5" "[c]"¶        SetObjectFill "BtIni" "Red" "Solid" "False"¶        Delay "1000"¶        SetObjectFill "BtIni" "235,235,235" "Solid" "False"¶        Delay "500"¶    endloop¶    Setvar "[msg]" "Please Wait..."¶    SetVar "[flg]" "True"¶    TimerStart "IsTime" "[lapse]"¶Else¶    If "[second]" "<>" "[alert]"¶        Setvar "[flg]" "False"¶    Endif¶Endif
ObjectType=3
Name=BtIni
X=60
Y=25
W=214
H=140
Anchor=0
Text=Time:[time]¶Alert:[alert]¶Flg:[flg]¶----------¶[msg]
Align=2
ImageStyle=0
XPTheme=Yes
ObjAction=... This sample, test every mm:15 (minute:15 seconds)¶If "[flg]" "=" ""¶    Setvar "[msg]" "Please Wait..."¶    Setvar "[flg]" "False"¶    Setvar "[alert]" "15"¶    setvar "[lapse]" "1000"¶    ... Change to 60000 for One Minute¶    TimerStart "IsTime" "[lapse]"¶Endif
LineColor=0
LineWidth=1
LineStyle=0
FillColor=15461355
FillPattern=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=3

GdoSan/Dr.Sanchez--El Jubilado..Abril 2015
GdoSan/Dr.Sanchez--The Retired..April 2015
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 509
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Do something every one hour

Postby stu » Sat Aug 22, 2015 10:23 am

Tony Kroos wrote:so what's the problem? Most simple answer would be to set the timer to 60000ms and check if "[Minute]" "=" "15" global variable


To be honest I dont know, I just figured there was something else to it...

Thanks for the replies...
User avatar
stu
 
Posts: 318
Joined: Wed Aug 07, 2013 11:37 am


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 2 guests