Automatic Dialing and...

Questions and Answers : Windows : Automatic Dialing and...
Message board moderation

To post messages, you must log in.

AuthorMessage
Phoenix

Send message
Joined: 5 May 04
Posts: 8
Credit: 3,636
RAC: 0
Australia
Message 2228 - Posted: 26 Jun 2004, 2:38:39 UTC

Hi all.

I am running XP and have set Bionc to run at startup, my problem is it dials when I turn my computer on, because there is not enough work units. Is there a way to turn of the network access permenantly (saved at shutdown?)

I can solve the problem by stopping it starting up at boot, or by cutting its network access with a firewall, but that seems extreme.

Is there a way to edit Bionc's preferences?
Start on boot and Network acess, would be the most important.

Thanks.
Grant
ID: 2228 · Report as offensive
John McLeod VII
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 15 Jul 99
Posts: 24806
Credit: 790,712
RAC: 0
United States
Message 2240 - Posted: 26 Jun 2004, 2:58:43 UTC

The saving of network access is a known problem. I believe that it will be fixed eventually. No there is not currently any way that I know of to save this past a shutdown.

ID: 2240 · Report as offensive
battignet

Send message
Joined: 6 Nov 00
Posts: 13
Credit: 339,770
RAC: 0
Switzerland
Message 12005 - Posted: 24 Jul 2004, 18:13:21 UTC

At the moment, on Windows Systems, for automatic set the "Disable BOINC Network Access" at BOINC startup, you can use the Windows Scripting Host.
The Windows Scripting Host allows you to write scripts for repeating jobs under Windows.
For BOINC I have written a small script that starts up BOINC, enable the "Disable BIONC Network Access"-Option, and then minimize the client. The scipt only sends the needed keystrokes, you normaly press by manually activate this option.
This way, the BOINC Client does not automaticly communicate with the server all the time. Especially modem user would have an advantage.

What you have to do:
1.) Install the Windows Scripting Host. (Normaly this is allready done on standard installations.)
2.) Open an empty notepad-file (notepad.exe)
3.) Copy the macro script below into the notepad.
4.) Save the text file e.g. as "BOINC_NoNetWork.vbs" in the BOINC home directory. (Important: the file has to be saved in this directory where the GUI client is!!)
5.) By double-clicking the .vbs-file, the BOINC client should start up with the "Disable BIONC Network Access"-Option enabeld.


On the next lines you will find the script code:

WScript.Sleep 10000
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "boinc_gui.exe", 3, false
WScript.Sleep 500
WshShell.AppActivate "BOINC"
WScript.Sleep 100
WshShell.SendKeys "{F10}DD"
WScript.Sleep 500
WshShell.SendKeys "{F10}DS"


This scipt is written for the german language edition of BOINC. For other languages you have to change the SendKeys-Parameters "{F10}DD" and "{F10}DS".
The first line of the script "WScript.Sleep 10000" waits for starting up the Boinc client for 10s after starting the script. This is needed, if you starts the scipt on windows start up (autostart-folder). With this script, the boinc client should only be started, if all other autostart-programs have finished its start-up. Otherwise, the script does not work properly. You can optimize this sleep time of corse.

If there are any error codes from the scripting host, you can find Windows Scripting Host Doc here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsoriWindowsScriptHost.asp
ID: 12005 · Report as offensive

Questions and Answers : Windows : Automatic Dialing and...


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.