CronAlert

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

CronAlert

Post by pcfreak »

Hello.
It's been a while since I programmed something in PureBasic and I just had the urge to write some PureBasic again :)
So here it is. It's basically something like Cron in Linux but for Windows with some little 'extras'.
I kept the configuration format similar.
No in-programm editor is available and I do not plan to add one.
Just use some text editor like notepad.

https://github.com/user2525536/CronAlert/releases

Feedback is welcome.
Last edited by pcfreak on Tue Aug 09, 2016 6:18 pm, edited 1 time in total.
User avatar
Derren
Enthusiast
Enthusiast
Posts: 313
Joined: Sat Jul 23, 2011 1:13 am
Location: Germany

Re: CronAlert

Post by Derren »

I'm familiar with Cron (meaing I used it onc or twice), but I don't think I ever wrote a script for it. There was always an easy configurator.
Could you provide a sample to play around with?


edit: Ok, nevermind, I found the readme (first ignored it, since it had this generic look, no file extentions, there's usually no info about the usage in those, I find).
Anyway I created a document with the following code:

Code: Select all

59 20 8 8 0 "myName" "!calc"
59 20 8 8 1 "myName" "!calc"
I wasn't sure what to use for the weekday, since it's monday I used 0 and 1 to be sure.
Anyway, upon loading the script, the programm froze. At first you didn't see it, but when you click, it just doesn't responst anymore.


edit2: weird, I compiled the source and the debugger didn't say anything. The programm just froze on me. Perhaps you disabled it by hand somewhere?
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

Re: CronAlert

Post by pcfreak »

Thank you for trying it out. There was a bug when dealing with invalid triggers (like Sunday on August 8th).
I fixed this.

https://github.com/user2525536/CronAler ... /1.1.3.zip

I hope it works for you now.
User avatar
Derren
Enthusiast
Enthusiast
Posts: 313
Joined: Sat Jul 23, 2011 1:13 am
Location: Germany

Re: CronAlert

Post by Derren »

Ah thanks. Yeah, on the invalid line, the ETA is blank. That's one wa of knowing your script is messed up :)

Seems to work now. Apparently the preTrigger is active (calculater opened 2seconds before the timeout). I'm not quite sure what it's used for, but you provided the info to shut it off.

I'm gonna play around with it some more.

Thanks for sharing :) :) (and for quickly fixing the issue :))
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

Re: CronAlert

Post by pcfreak »

I was actually hoping for more feedback ;)
If anyone tried out CronAlert, please share your opinion.

PS: I have updated the link in the initial post to point to the repository instead of the first release.
Post Reply