topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 11:33 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: DONE: IdleMute - Tray utility to mute speaker when you are away from the PC!  (Read 119201 times)

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
hi skrommel !
can I ask u a question-  I tried to use my resource editor Axialis Iconworkshop to "hack in" my icons (sorry.. hehe I spent some time to make them I actually grew sort of fond of them  :-[  ) and when I tried to run IdleMute this way it says the EXE is corrupted.  So OK i thought I would download the .AHK script and compile it myself with my own icons.  But I am not sure how to do it.... I see the ahk2exe tool but it has only single line for .ico file..... do I just put all my icons in this one file and make sure resource IDs match the ones in the script?  if you can tell me how to do this I would be very thankful...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
this is somewhat off topic, but would anyone else be interested in us trying to arrange some live ahk lessons by skrommel in our chat channel some day?

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
that would definitely be cool ....................  :Thmbsup:

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
 :) IdleMute v1.8 just makes it possible to disable muting, so the timer can be used to pause WinAmp or other programs instead.

To change the icons in AHK you have to edit the file C:\Prog\Automatisering\AutoHotkey\Compiler\AutoHotkeySC.bin. Make shure you close all Ahk2Exe windows before editing and compiling to make it load the file properly.

I haven't been to the chat channel, but I guess that can be arranged. But there really are better programmers than me on the AHK forums...

Skrommel

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
hey Skrommel... i was just noticing, at least on my system, when IdleMute has kicked in and muted the speaker, then the only way to un-mute is by tapping a key on my keyboard.  Moving the mouse has no effect.  Is this on purpose?  I thought I remembered in older versions I could shake the mouse to un-mute the computer as well.....   :-\
thanks happy holidays

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
skrommel?  are you still watching this thread?
just wondering if you saw my last comment...  it seems once IdleMute mutes the speaker, it doesnt automatically un-mute it anymore when I come back.......... any ideas?  :-\

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
 :tellme: I've been getting this problem, too! But one day it's the keyboard, the next it's the mouse. I'm beginning to suspect a bug in the idle function in AHK. I'll have a closer look...

Skrommel

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #57 on: February 01, 2006, 06:35 PM »
ok thanks! nice to see you back in this thread  ;D
« Last Edit: February 02, 2006, 02:07 AM by brotherS »

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #58 on: February 02, 2006, 02:07 AM »
I wonder what would be the best way to implement "after 30 minutes of IdleMuting, kill winamp.exe" - any ideas?

See also https://www.donation...dex.php?topic=2342.0
« Last Edit: February 07, 2006, 02:38 AM by brotherS »

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #59 on: February 06, 2006, 05:02 PM »
hey skrommel, I saw AHK released a new version a few days ago.  Any chance of recompiling IdleMute to see if it fixes these little bugs?  or did you contact Chris (ahk author) about it?  :-[

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #60 on: February 10, 2006, 11:06 PM »
skrommel?

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #61 on: February 11, 2006, 12:18 AM »
well I have done some digging in the AHK help file and made 2 small code changes to IdleMute and it seems to have fixed the problem of the program not un-muting upon mouse movement.  I recompiled this as v1.8a and  I have sent the mod to skrommel for verification that it works and then I assume he will post it for everyone.  It works for me!  :Thmbsup:  so happy to have my favorite tray utility back in full effect!!

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #62 on: February 11, 2006, 03:03 AM »
Thanks, lets wait for skrommel now :)

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #63 on: February 11, 2006, 12:40 PM »
 :) Great job, LuckMan212! IdleMute works again!

I made an enquiry at AutoHotkey, but it seems we're the only ones with this problem, and I have had no luck in debugging.

Please tell me what changes you've made, and send me the sourcecode so I can post it!

Skrommel

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #64 on: February 11, 2006, 12:41 PM »
And send me the icons, too, I think I like yours better!

Skrommel

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #65 on: February 11, 2006, 12:57 PM »
 :-\ And we're back to square one...

I just downloaded the latest AutoHotkey to see if my version would work better, but now it's the other way around! Only the mouse works!

And that goes for LuckMan212's v1.8a, too!

SKrommel

« Last Edit: February 11, 2006, 01:05 PM by skrommel »

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #66 on: February 11, 2006, 01:23 PM »
really? you sure?  beacuse it works for me.  1.8a works fine, both they keyboard or the mouse can be used to "wake" the computer from muted state.  I am going to post a link to my compiled version here for others to try, they can post their results as well.  This was compiled with the latest AHK (1.0.42.00).

As for the code changes, you will laugh at how simple the change was.  I simply used the alternate method of IdleTime check, in the AHK docs they have the 2 methods:
%A_TimeIdle% and %A_TimeIdlePhysical%

I changed the references on line 39 and 53 to %A_TimeIdle%.  I also updated the version string in the about box :)

from the docs:
"Same as above but ignores artificial keystrokes and/or mouse clicks whenever the corresponding hook (keyboard or mouse) is installed. If neither hook is installed, this variable is equivalent to A_TimeIdle. If only one hook is present, only that one type of artificial input will be ignored. A_TimeIdlePhysical may be more useful than A_TimeIdle for determining whether the user is truly present."


I know that if the keyboard/mouse hooks are not installed, then according to the docs, %A_TimeIdle% and %A_TimeIdlePhysical% are supposed to be equal... so I think it may still be some kind of bug in AHK, where during execution somehow the keyboard hook is being installed (perhaps the compiler deemed it was necessary for some reason) and then the mouse hook is not installed or "real" mouse movement is being interpreted as artificial.

Anyway this is working for me, here are some links for downloads:
source code
icon set (just the hacked AutoHotkeySC.bin file)
IdleMute 1.8a compiled binary
« Last Edit: February 11, 2006, 02:50 PM by LuckMan212 »

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #67 on: February 11, 2006, 05:54 PM »
so has anyone else tried the version? does it work? skrommel has told me via email that it is still having issues on his system, however I believe he is using the .ahk file rather than the compiled binary and maybe that's why he's having a different result.  Would like to hear from anyone else whether 1.8a works for them when 'waking up' the computer via keyboard/mouse/or both.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #68 on: February 11, 2006, 06:11 PM »
 :) It seems you're right, LuckMan!

I did try to change the %A_TimeIdlePhysical% to %A_TimeIdle% while debugging, but I only changed the first occurance in the source code! I forgot there were two of them! Thank's for noticing!

Please test the newly uploaded IdleMute v1.9 and report back!

I've added brotherS' second timer that kicks in after the system is muted and idle for a user defined time, and also moved the options around a bit.

Skrommel

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #69 on: February 11, 2006, 06:23 PM »
what teamwork!!! love it!!!  :D :D :D

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
Re: DONE: Tray utility to mute speaker when you are away from the computer!
« Reply #70 on: February 11, 2006, 06:37 PM »
skrommel, v1.9 works perfectly on my system!  :Thmbsup:  glad to hear that too because I was scratching my head as to why it wasn't working for you.  As for the new options, thats cool -- I think that will be useful! 

One small note, if the user had an old .ini file (as i did) when they launch the new version, the settings dialog shows "ERROR" for the 2 new parameters.  You might just want to set those values to null if they dont exist, and add the entries to the INI file as blanks, (I think you are doing this with the other options)

other that that, looks like another fine release from 1 Hour Software!!  :D

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Working here perfectly too, at least so far! :D

Thanks!

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
This morning IdleMute didn't work correctly, the sound was unmuted before I even touched the mouse or keyboard after waking up.

Just another AHK script moved the mouse around - maybe related?

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
 :tellme: That sound righ, if you ask me. The A_TimeIdle is disturbed by a MouseMove, that's why I wanted to use A_TimeIdlePhysical.

Skrommel
« Last Edit: February 19, 2006, 05:56 PM by skrommel »

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
    • View Profile
    • Donate to Member
yes that is the drawback to using A_TimeIdle.  For me it is OK, because I don't have any other scripts or apps that move my mouse.  But for now I guess its just a bug in AHK.