Bitcoin Forum
December 09, 2016, 07:59:50 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2  All
  Print  
Author Topic: [Announce] WhileIdle application - Stealth run miners only when computer is idle  (Read 23566 times)
SleepMachine
Jr. Member
*
Offline Offline

Activity: 36


View Profile
May 15, 2011, 07:05:58 PM
 #1

Hello

I've created a C# program that can start any application after X amount of inactivity and end the application when the computer becomes active. With this you can automatically start mining when a computer is idle and stop mining when someone wants to use the computer. The started application (miner) can also be made invisible (it doesn't create a window in the taskbar or systray), if wanted.

I use this for running miners on computers belonging to my relatives without their computers becoming sluggish when they want to use them for something computationally intensive.

Uploaded by request. I hope this will be useful.

Current Version
---------------
0.12 (Updated 2011-06-11)

DOWNLOAD LINK (includes source files)
--------------------
http://dl.dropbox.com/u/184100/WhileIdle.zip

Description
-----------
Launch any program after the computer has been idle for a specified amount of time.
The program is terminated when the computer stops being idle.


Usage
-----

Edit the WhileIdle.conf file to configure the parameters for the program.

WhileIdle.conf structure
Line 1: Full path to your executable file
Line 2: Optional command-line arguments for your executable
Line 3: Number of seconds the computer must have been idle before the executable launches
Line 4: Make launched executable invisible? Takes a 0 or 1 as value

Example WhileIdle.conf file:
----------------------------------------------------------------------
C:\BitcoinMiners\ufasoft\bitcoin-miner.exe
-o http://mining.bitcoin.cz:8332 -u YOURUSERNAME -p YOURPASSWORD -g no -v -a 60
300
1
----------------------------------------------------------------------

Donations very welcome here: 17bndgTEETo2fqiAaNn5cx6FMtt2ZHJfzk
1481270390
Hero Member
*
Offline Offline

Posts: 1481270390

View Profile Personal Message (Offline)

Ignore
1481270390
Reply with quote  #2

1481270390
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481270390
Hero Member
*
Offline Offline

Posts: 1481270390

View Profile Personal Message (Offline)

Ignore
1481270390
Reply with quote  #2

1481270390
Report to moderator
1481270390
Hero Member
*
Offline Offline

Posts: 1481270390

View Profile Personal Message (Offline)

Ignore
1481270390
Reply with quote  #2

1481270390
Report to moderator
1481270390
Hero Member
*
Offline Offline

Posts: 1481270390

View Profile Personal Message (Offline)

Ignore
1481270390
Reply with quote  #2

1481270390
Report to moderator
don
Newbie
*
Offline Offline

Activity: 2


View Profile
May 15, 2011, 08:15:18 PM
 #2

Thank you!

I had some trouble getting it running with my miner at first but now it seems to work. If you got problems try installing the WhileIdle files in the same directory as the program you're trying to run with it.
SleepMachine
Jr. Member
*
Offline Offline

Activity: 36


View Profile
May 15, 2011, 09:25:06 PM
 #3

Glad to be of assistance   Cheesy

Donations very welcome here: 17bndgTEETo2fqiAaNn5cx6FMtt2ZHJfzk
qberty
Full Member
***
Offline Offline

Activity: 202

@qberty1337


View Profile
May 16, 2011, 01:03:05 AM
 #4

I like the idea. Hopefully the members of this board won't bash this like they do any other closed software lol.

Bitsweep.io - Bitcoin Minesweeper!

CoinChess.io - Bitcoin Chess!
Kluge
Donator
Legendary
*
Offline Offline

Activity: 1218


Michael, send me some coins before I hitman you


View Profile
May 16, 2011, 01:11:50 AM
 #5

I like the idea. Hopefully the members of this board won't bash this like they do any other closed software lol.
Source code is in .zip

Don't mix your coins someone said isn't legal
PiGames
Member
**
Offline Offline

Activity: 111



View Profile
May 16, 2011, 01:16:38 AM
 #6

Pretty neat idea.
I might give this a try on the weekends when I use my main mining rig for games and such. Sometimes I forget to turn my miner back on when I'm done =\
qberty
Full Member
***
Offline Offline

Activity: 202

@qberty1337


View Profile
May 16, 2011, 01:22:36 AM
 #7

I like the idea. Hopefully the members of this board won't bash this like they do any other closed software lol.
Source code is in .zip

That's not my point. This does give a nice touch to mining. You might want to use like.. events. So we can control it through a GUI perhaps.

Bitsweep.io - Bitcoin Minesweeper!

CoinChess.io - Bitcoin Chess!
metastable
Newbie
*
Offline Offline

Activity: 2


View Profile
May 20, 2011, 07:39:58 PM
 #8

I'm trying to streamline the process of copying over files to a computer and running it using a batch file, but for what ever reason WhileIdle.exe will not run unless done directly. Anyone know whats the cause?

Code:
@echo off
xcopy /s %~dp0bitcoinidle %appdata%\bitcoinidle
call %appdata%\bitcoinidle\whileidle.exe

All of the necessary files are within the bitcoinidle folder.
darbsllim
Sr. Member
****
Offline Offline

Activity: 294


Founder, Filmmaker, Fun Guy


View Profile WWW
May 26, 2011, 07:55:11 AM
 #9

awesome, subscribed to follow progress.

Brad Mills
Former miner - Former Bitcoin Business Owner - Victim of the Great Bitcoin Crashes of 2011 and 2012
Slasklitta
Jr. Member
*
Offline Offline

Activity: 53



View Profile WWW
May 26, 2011, 08:39:29 PM
 #10

I registered only to tell you HOW AWESOME YOU ARE Cheesy

I've been searching all day for stealth/hidden/invisible batch stuff. None worked... Lots of scripts and shit, but didnt work.

Yours is so easy and works PERFECT!

CREDITS TO YOU MAN!!!

Mining at https://www.bitcoins.lc/ @ ~1,2GHash/s
no_alone
Member
**
Offline Offline

Activity: 84


View Profile
May 26, 2011, 11:21:21 PM
 #11

I made something the same...
With a GUI

http://forum.bitcoin.org/index.php?topic=9851.0

Mine only when pc is IDLE totally indivisible...
http://forum.bitcoin.org/index.php?topic=9851.0
Mine on family computer without disturbing them

Donation : 1GjpJnLU8zdfEHW7FoCx2UUosJgc9prXN4
cande
Member
**
Offline Offline

Activity: 108


https://bt.cx


View Profile WWW
May 28, 2011, 10:27:42 AM
 #12

Hi,

this is awesome! However, i want to run your whileidle as a service, and then it won't notice user actions. Have tried both running as current user or as SYSTEM with desktop interactions, does not help. And it doesn't matter what idletime i'm using either.

Do you have a resolution for that? perhaps if any user is using the system it takes down the miner?

BTCX "more Private than Swiss banking"
https://bt.cx
SleepMachine
Jr. Member
*
Offline Offline

Activity: 36


View Profile
June 01, 2011, 03:17:30 PM
 #13

Oh, lots of replies here Smiley

Quote
I'm trying to streamline the process of copying over files to a computer and running it using a batch file, but for what ever reason WhileIdle.exe will not run unless done directly. Anyone know whats the cause?

I noticed a bug while installing this at a friends house that might cause this.
I think I forgot to set the programs "current directory"/"start from directory" to the directory of the application, or something like that, so if the program is launched from another directory, things might get wonky. At least I think that's the issue.


Quote

I registered only to tell you HOW AWESOME YOU ARE

I've been searching all day for stealth/hidden/invisible batch stuff. None worked... Lots of scripts and shit, but didnt work.

Yours is so easy and works PERFECT!

CREDITS TO YOU MAN!!!
THANKS ALOT  Grin
I did the same as you until I finally thought... "What the fuck am I doing spending so much time on this? How hard can it be to program? I AM a programmer after all..."
I ended up spending more time googling a solution that suited me than I did programming this. Nuff said.


Quote
this is awesome! However, i want to run your whileidle as a service
As far as i know, normal applications cannot be run as services just like that. You will need to code it as a service, which is slightly different. I currently have no plans myself to do this, but someone else might be able to do that for you.



Finally i just wanted to say that i just coded this to suit my own needs, and posted it here in case someone else had the same needs. I currently have no plans to further develop this. (except perhaps fix that directory-bug for my friend). But hey, you never know. I might get bored one week-end and do some more additions.

Donations very welcome here: 17bndgTEETo2fqiAaNn5cx6FMtt2ZHJfzk
mattpker
Newbie
*
Offline Offline

Activity: 28



View Profile
June 01, 2011, 04:30:13 PM
 #14

Thank you! This worked like a charm.

iCEBREAKER
Legendary
*
Offline Offline

Activity: 1512


Crypto is the separation of Power and State.


View Profile WWW
June 06, 2011, 11:48:01 PM
 #15

Bounty 1

1 BTC for anyone who can tell me how to get rid of the WhileIdle window that appears when alt-tabbing between tasks.  OS is w7x64 pro.



Bounty 2

1 BTC for anyone who can help me get to Task Scheduler (or a system/registery hook) to launch WhileIdle on startup, without having an active directory user logged in.  I've tried all the obvious 'make-new-task' crap but it won't go.  Sucks because I'm supposed to be a guru, beyond such baby stuff.   Angry  Maybe I should just run it as a service?



Bounty 3

1 BTC for anyone that can help me get WhileIdle to run guiminer.  I've already tried putting the whileidle files in the guiminer\miners directory, and lots of other stuff.






The difference between bad and well-developed digital cash will determine whether we have a dictatorship or a real democracy.  David Chaum 1996
Fungibility provides privacy as a side effect.  Adam Back 2014
"Monero" : { Private - Auditable - 100% Fungible - Flexible Blocksize - Wild & Free® - Intro - Wallets - Podcats - Roadmap - Dice - Blackjack - Github - Android }


Bitcoin is intentionally designed to be ungovernable and governance-free.  luke-jr 2016
Blocks must necessarily be full for the Bitcoin network to be able to pay for its own security.  davout 2015
Blocksize is an intentionally limited resource, like the 21e6 BTC limit.  Changing it degrades the surrounding economics, creating negative incentives.  Jeff Garzik 2013


"I believed @Dashpay instamine was a bug & not a feature but then read: https://bitcointalk.org/index.php?topic=421615.msg13017231#msg13017231
I'm not against people making money, but can't support questionable origins."
https://twitter.com/Tone_LLT/status/717822927908024320


The raison d'être of bitcoin is trustlessness. - Eric Lombrozo 2015
It is an Engineering Requirement that Bitcoin be “Above the Law”  Paul Sztorc 2015
Resiliency, not efficiency, is the paramount goal of decentralized, non-state sanctioned currency -Jon Matonis 2015

Bitcoin is intentionally designed to be ungovernable and governance-free.  luke-jr 2016

Technology tends to move in the direction of making surveillance easier, and the ability of computers to track us doubles every eighteen months. - Phil Zimmerman 2013

The only way to make software secure, reliable, and fast is to make it small. Fight Features. - Andy Tanenbaum 2004

"Hard forks cannot be co
no_alone
Member
**
Offline Offline

Activity: 84


View Profile
June 07, 2011, 02:07:32 AM
 #16

Quote
Bounty 1

1 BTC for anyone who can tell me how to get rid of the WhileIdle window that appears when alt-tabbing between tasks.  OS is w7x64 pro.

You can not see my program when alt+tab

http://forum.bitcoin.org/index.php?topic=9851

Quote
Bounty 2

1 BTC for anyone who can help me get to Task Scheduler (or a system/registery hook) to launch WhileIdle on startup, without having an active directory user logged in.  I've tried all the obvious 'make-new-task' crap but it won't go.  Sucks because I'm supposed to be a guru, beyond such baby stuff.   Angry  Maybe I should just run it as a service?


My program already do it

http://forum.bitcoin.org/index.php?topic=9851

Quote
Bounty 3

1 BTC for anyone that can help me get WhileIdle to run guiminer.  I've already tried putting the whileidle files in the guiminer\miners directory, and lots of other stuff.



My program can run guiminer easily
http://forum.bitcoin.org/index.php?topic=9851

Please 3 BTC to  1GjpJnLU8zdfEHW7FoCx2UUosJgc9prXN4


[

Mine only when pc is IDLE totally indivisible...
http://forum.bitcoin.org/index.php?topic=9851.0
Mine on family computer without disturbing them

Donation : 1GjpJnLU8zdfEHW7FoCx2UUosJgc9prXN4
SleepMachine
Jr. Member
*
Offline Offline

Activity: 36


View Profile
June 11, 2011, 06:01:15 AM
 #17

Bounty 1

1 BTC for anyone who can tell me how to get rid of the WhileIdle window that appears when alt-tabbing between tasks.  OS is w7x64 pro.



Bounty 2

1 BTC for anyone who can help me get to Task Scheduler (or a system/registery hook) to launch WhileIdle on startup, without having an active directory user logged in.  I've tried all the obvious 'make-new-task' crap but it won't go.  Sucks because I'm supposed to be a guru, beyond such baby stuff.   Angry  Maybe I should just run it as a service?



Bounty 3

1 BTC for anyone that can help me get WhileIdle to run guiminer.  I've already tried putting the whileidle files in the guiminer\miners directory, and lots of other stuff.




I decided to make an update after all. (Bountys changes everything!)
The link in the first post of this thread has been updated to the new version.

The new version fixes Bounty 1.

Regarding Bounty 2, i could release a version that works as a service, but I'll need a little time to code this.
Edit: no_alones program does not run as a service, according to a poster in his thread.

Bounty 3: There shouldn't be any problems launching guiminer with WhileIdle. I've tried it myself. However, i wouldn't recommend it because guiminer in turn launches miners and when WhileIdle terminates guiminer, the miners started by guiminer will not terminate. This is also true with no_alones program, regardless of what he says. If you read the thread about his program, you can see it has the same issues.

This version should also fix the issue that metastable had.  Grin

Donations very welcome here: 17bndgTEETo2fqiAaNn5cx6FMtt2ZHJfzk
SchizophrenicX
Full Member
***
Offline Offline

Activity: 126

"I'm not psychic; I'm just damn good"


View Profile
June 11, 2011, 06:04:39 AM
 #18

try kill process tree? I don't know how to code it though but I think if I'm right it'd kill the poclbm along with it (or other miners)

SleepMachine
Jr. Member
*
Offline Offline

Activity: 36


View Profile
June 11, 2011, 06:33:37 AM
 #19

try kill process tree? I don't know how to code it though but I think if I'm right it'd kill the poclbm along with it (or other miners)

Thanks, i didn't really think of that! I was trying to gracefully end the process instead of killing it, but this does the trick also.
I just implemented this and released a new version 0.12
This fixes bounty 3!

Donations very welcome here: 17bndgTEETo2fqiAaNn5cx6FMtt2ZHJfzk
SleepMachine
Jr. Member
*
Offline Offline

Activity: 36


View Profile
June 11, 2011, 06:52:48 AM
 #20


Bounty 3

1 BTC for anyone that can help me get WhileIdle to run guiminer.  I've already tried putting the whileidle files in the guiminer\miners directory, and lots of other stuff.


To use guiminer, unzip the new version 0.12 into folder C:\BitcoinMiners and just run WhileIdle.exe .The included conf-file is set to use that directory and the now included guiminer.

Donations very welcome here: 17bndgTEETo2fqiAaNn5cx6FMtt2ZHJfzk
Pages: [1] 2  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!