Answer the question
In order to leave comments, you need to log in
Auto-close software on idle time?
We have Windows 7x64, Eclipse, BittorentSync and a hard working programmer.
The task is to have synchronization of the Eclipse IDE working project at home and in the office. Synchronization is done by BittorentSync (it has already proven its advantage over DropBox for me).
The scheme is something like this - I go to work in the morning (about 30-40 minutes), at which time the home computer is idle anyway. Working. I go home (again about 30-40 minutes).
When the PC is idle for 10 minutes for example, I want the IDE to automatically close for sync capabilities (I'm distracted, I might forget to close the development environment -> there will be no successful sync, because the files being modified will be open on two PCs and they will not be able to overwrite).
What is the problem? The fact that the scheduler can do anything, but not close the software (I did not find how to do this) - this is where I ask for help.
PS We successfully use Git at work, we have Dropbox... it's all too redundant - the usual copying via the torrent protocol is enough for me.
Answer the question
In order to leave comments, you need to log in
The smart guys ( here ) say to run eclipse with the console parameter
like this:
create eclipseoff.vbs:
set my = WScript.CreateObject("WScript.Shell")
my.run("c:\windows\system32\telnet.exe")
WScript.Sleep 100
my.SendKeys("o 127.0.0.1 9000~")
WScript.Sleep 100
my.SendKeys("shutdown~")
WScript.Sleep 100
my.SendKeys("pass test~")
WScript.Sleep 100
taskkill as an illustration "there is no reception against scrap" does not suit you?
You can write a script at http://www.autoitscript.com/site/autoit/ for example, it can do almost everything and the development speed is very high.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question