Feature request: Scheduled folding

Moderators: Site Moderators, FAHC Science Team

Feature request: Scheduled folding

Postby alanazar » Tue Aug 21, 2012 11:50 am

(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.
alanazar
 
Posts: 27
Joined: Tue Aug 30, 2011 7:46 pm
Location: Dubai, UAE

Re: Feature request: Scheduled folding

Postby P5-133XL » Tue Aug 21, 2012 2:04 pm

Use the scheduler that is built into Windows/Linux to start and stop it.
Image
P5-133XL
 
Posts: 2948
Joined: Sun Dec 02, 2007 5:36 am
Location: Salem. OR USA

Re: Feature request: Scheduled folding

Postby iceman1992 » Tue Aug 21, 2012 5:22 pm

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..
iceman1992
 
Posts: 527
Joined: Fri Mar 23, 2012 6:16 pm

Re: Feature request: Scheduled folding

Postby 7im » Tue Aug 21, 2012 6:48 pm

You could always run it as a service, and use the sched tasks to start and stop the service.
How to provide enough information to get helpful support
Tell me and I forget. Teach me and I remember. Involve me and I learn.
User avatar
7im
 
Posts: 10189
Joined: Thu Nov 29, 2007 5:30 pm
Location: Arizona

Re: Feature request: Scheduled folding

Postby bollix47 » Tue Aug 21, 2012 6:52 pm

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}")
bollix47
 
Posts: 2871
Joined: Sun Dec 02, 2007 6:04 am
Location: Canada

Re: Feature request: Scheduled folding

Postby 7im » Tue Aug 21, 2012 6:59 pm

This works for pausing your client while your gaming too. ;)
User avatar
7im
 
Posts: 10189
Joined: Thu Nov 29, 2007 5:30 pm
Location: Arizona

Re: Feature request: Scheduled folding

Postby alanazar » Wed Aug 22, 2012 6:29 am

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!
alanazar
 
Posts: 27
Joined: Tue Aug 30, 2011 7:46 pm
Location: Dubai, UAE

Re: Feature request: Scheduled folding

Postby 7im » Wed Aug 22, 2012 2:26 pm

It's unlikely to be added as a feature when the operating system will do it for you.
User avatar
7im
 
Posts: 10189
Joined: Thu Nov 29, 2007 5:30 pm
Location: Arizona

Re: Feature request: Scheduled folding

Postby Joe_H » Wed Aug 22, 2012 3:17 pm

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.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Joe_H
Site Admin
 
Posts: 6682
Joined: Tue Apr 21, 2009 5:41 pm
Location: W. MA

Re: Feature request: Scheduled folding

Postby Rolo » Sat Oct 27, 2012 10:05 pm

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)
Image
User avatar
Rolo
 
Posts: 33
Joined: Sat Oct 27, 2012 12:49 am
Location: Pike's Peak


Return to V7.1.52 Windows/Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron