Welcome Guest.   Make a donation to an author on the site October 31, 2014, 05:42:29 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: WinampKiller  (Read 5351 times)
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« on: February 06, 2006, 09:55:17 AM »

http://www.donationcoder....m/index.php?topic=1580.40

I wonder what would be the best way to implement "after 30 minutes of IdleMuting, kill winamp.exe" - any ideas?
If skrommel prefers not to add that to IdleMute, maybe make a new tiny tool for this?

What I want is basically this: if I happen to fall asleep while Winamp is still running (so, like IdleMute, this should only work in a specified time-frame), I want it to be automatically killed/closed after x minutes. I like that skrommel's IdleMute only mutes the PC and doesn't immediately close Winamp, so if I'm at the phone I could just push my mouse to unmute the PC again.

Maybe WinampKiller could use a different approach than IdleMute though, feel free to suggest/code anything smiley

And maybe http://www.myplugins.info/activewinamp.htm (thanks to jgpaiva for finding this) could help you?
« Last Edit: February 18, 2006, 02:39:37 AM by brotherS » Logged

Thank you.
jgpaiva
Global Moderator
*****
Posts: 4,711



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: February 06, 2006, 12:02:35 PM »

I found these plugins:
http://www.winamp.com/plu...ins/details.php?id=145717 -> a sleep timer
http://www.winamp.com/plugins/details.php?id=64006  -> offtopic, but seems to be a very nice plugin, features alarm, snooze, etc.

The plugin i mentioned above, does not check for idle, it only can be set to turn of winamp at a given time.
Though, it wouldn't be hard to do such ahk script, not associating it with Idle Mute ( because i don't want to alter the code since it's not mine), you could have something like this:
[copy or print]
#persistent
#SingleInstance,Force
;winamp shutdown
SetTimer, Sleeper, 10000
return

Sleeper:
If A_TimeIdlePhysical < 1800000 ;number of miliseconds to wait before closing winamp - this command ignores artificial keypresses, and makes the script only work in windows xp or 2k
  return
Process, Exist, Winamp.exe ; change here, if you use another player
if ErrorLevel != 0
  Process, Close, Winamp.exe ; change here if you use another player
ExitApp ;terminates the app, since winamp isn't running anymore.
return

This program is a very fast and ugly solution, it doesn't close winamp, terminates it. Which means that if you wanted to have the last playlist the next time you open winamp, it might not be the best solution, as winamp won't save anything since it was last opened.
As i have posted before, i can't do any ini files (yet) because, i have not learned how to do them. I will in a few days. In the meantime, I commented the important parts if you'd like other settings
« Last Edit: February 06, 2006, 12:06:39 PM by jgpaiva » Logged

brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #2 on: February 06, 2006, 03:55:47 PM »

Thanks for the initial work! I don't mind if the script just kills Winamp, but I need to make it work only from STARTTIME to ENDTIME. Guess I'll have to check IdleMute's code...
Logged

Thank you.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #3 on: February 18, 2006, 02:40:01 AM »

I'm using http://www.donationcoder....um/index.php?topic=2377.0 for this task now  Thmbsup
Logged

Thank you.
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: March 01, 2006, 06:33:31 PM »

 smiley Check the latest version of IdleMute at www.donationcoders.com/skrommel. It sports a second timer that kicks in after x minutes of inactivity after the initial ilde mute.

Skrommel
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #5 on: March 02, 2006, 01:25:54 AM »

smiley Check the latest version of IdleMute at www.donationcoders.com/skrommel. It sports a second timer that kicks in after x minutes of inactivity after the initial ilde mute.
Great idea!  Thmbsup

Now all I need is a command/exe to close Winamp in a clean way - any idea?
Logged

Thank you.
jgpaiva
Global Moderator
*****
Posts: 4,711



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: March 02, 2006, 04:55:52 AM »

Now all I need is a command/exe to close Winamp in a clean way - any idea?
I've read about this app in the forums of winamp. It's quite useful, and i think it could be the solution for your problem.
(It alows you to control winamp from the command line, and it includes the QUIT command Wink)
Logged

brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #7 on: March 02, 2006, 07:48:34 AM »

Wow, great find!  thumbs up

I added its path plus /QUIT to IdleMute and it's working perfectly!
Logged

Thank you.
bliss
Charter Member
***
Posts: 19


la la la-la

View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: March 10, 2006, 10:32:42 PM »

I had trouble shutting down (w98se) whenever the dialup or winamp were still loaded so I did this:

[copy or print]
;;;    Shutdown Button v0.2 for Win98se bLisTeRinG 2006

opt = %1%
IfEqual,opt,?
  {
  Goto Help
  }
  Else
  {
  StringLen, pot, opt
  IfEqual,pot,0
    {
    opt = 9
    }
  }

WinampX:
DetectHiddenWindows, On
DetectHiddenText, On
WinKill, ahk_class Winamp v1.x

Dialup:
WinClose, Connect to
;Process, Close, RNAAPP.EXE

Cleanup:
FileRemoveDir, C:\Temp, 1
FileCreateDir, C:\Temp
FileRemoveDir, %A_WinDir%\Temp, 1
FileCreateDir, %A_WinDir%\Temp
FileDelete, %A_WinDir%\Recent\*.*
Shutdown, %opt%

Exit:
ExitApp

Help:
MsgBox, Syntax: Shutter.exe ?`n`n? is one of the following:`n`n0 Logoff`n1 Shutdown`n2 Reboot`n4 Force`n8 PwrOff`n9 Shut+PwrOff -default`n? This Help
Exit

Logged

Am we there yet?
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.053s | Server load: 0.01 ]