Page 1 of 1

Feature request: Scheduled folding

PostPosted: Tue Aug 21, 2012 11:50 am
by alanazar
(excuse me if i'm posting in wrong section)

Would it be possible to include scheduling of folding so that it only runs during certain days & timings. ie Mon-Fri 7pm-9am, Sat & Sun all day. etc...

I checked the active tickets for enhancements already but didn't find anything.

Re: Feature request: Scheduled folding

PostPosted: Tue Aug 21, 2012 2:04 pm
by P5-133XL
Use the scheduler that is built into Windows/Linux to start and stop it.

Re: Feature request: Scheduled folding

PostPosted: Tue Aug 21, 2012 5:22 pm
by iceman1992
I was about to ask the same thing :lol:

@P5-133XL : but if i use the scheduler, won't it be force-quitting the client? I don't want the WU to get corrupted..

Re: Feature request: Scheduled folding

PostPosted: Tue Aug 21, 2012 6:48 pm
by 7im
You could always run it as a service, and use the sched tasks to start and stop the service.

Re: Feature request: Scheduled folding

PostPosted: Tue Aug 21, 2012 6:52 pm
by bollix47
You could always pause the client just prior to the time the scheduler is set to stop using a .vbs file:

Code: Select all
Set cloner = CreateObject("WScript.Shell")
cloner.run"cmd"
WScript.Sleep 500

cloner.SendKeys"telnet localhost 36330"
cloner.SendKeys("{Enter}")
WScript.Sleep 500

cloner.SendKeys"pause"
cloner.SendKeys("{Enter}")
WScript.Sleep 500

cloner.SendKeys"exit"
cloner.SendKeys("{Enter}")
WScript.Sleep 300

cloner.SendKeys"exit"
cloner.SendKeys("{Enter}")

Re: Feature request: Scheduled folding

PostPosted: Tue Aug 21, 2012 6:59 pm
by 7im
This works for pausing your client while your gaming too. ;)

Re: Feature request: Scheduled folding

PostPosted: Wed Aug 22, 2012 6:29 am
by alanazar
Thanks a lot guys! I'll go ahead with P5s & 7im reco. I was also worried about what iceman wrote.
I'll go ahead and do that then, but is it possible to get it anyways as a feature request for the less advanced folks?

Also bollix47, thanks for taking the time to write, but i'm not that advanced for vbs :D

Thanks again!

Re: Feature request: Scheduled folding

PostPosted: Wed Aug 22, 2012 2:26 pm
by 7im
It's unlikely to be added as a feature when the operating system will do it for you.

Re: Feature request: Scheduled folding

PostPosted: Wed Aug 22, 2012 3:17 pm
by Joe_H
As mentioned, unlikely to be added as a feature. But there are a couple enhancement request tickets of low priority open still, https://fah-web.stanford.edu/projects/F ... ticket/639, and https://fah-web.stanford.edu/projects/F ... ticket/300 looking for similar features to what you asked for. Whether they will ever be implemented is another matter.

Re: Feature request: Scheduled folding

PostPosted: Sat Oct 27, 2012 10:05 pm
by Rolo
The aforementioned script wouldn't finish properly for some reason, leaving its window open; here is one that does and it runs minimised:

Code: Select all
Set oShell = CreateObject("WScript.Shell")
oShell.Run "telnet localhost 36330",2
WScript.Sleep 500

oShell.SendKeys "pause 0~"
WScript.Sleep 500

oShell.SendKeys "quit~"
WScript.Sleep 500

oShell.SendKeys "~"
WScript.Sleep 500

oShell.SendKeys "exit~"


To resume folding:
Code: Select all
Set oShell = CreateObject("WScript.Shell")
oShell.run "telnet localhost 36330",2
WScript.Sleep 500

oShell.SendKeys "unpause 0~"
WScript.Sleep 500

oShell.SendKeys "^]"
WScript.Sleep 500

oShell.SendKeys "quit~"

- If you don't want it minimised, remove the ,2 in the second line
- Save as a .VBS file to automate with Task Scheduler, run from a batch file, or bind to a macro key (i.e. Logitech G-keys)