AudioSwitch icon indicating copy to clipboard operation
AudioSwitch copied to clipboard

Losing ability to change volume by scroll

Open hansek opened this issue 10 years ago • 6 comments

After waking computer from hibernation I'm unable to control volume by Volume Scrolling. This happend sometimes during the system run as well.

And it's need to open Settings and re-check Enable checkbox on General tab).

My settings is RightMouseButton + Mouse Wheel and I'm on Windows 8.1 x64

hansek avatar May 15 '15 07:05 hansek

It looks the problem could be connected with WizMouse because as I disabled this tool volume control by mouse works even after restore from hibernation.

hansek avatar May 19 '15 05:05 hansek

Do you think this issue can be fixed?

hansek avatar Jun 05 '15 08:06 hansek

something seems to go wrong with the global mouse hooks. If this happens solely with WizMouse then maybe it handles the hooks incorrectly or loses them somehow. If this can't be reproduced with any other software and use case then I must claim the fault in the WizMouse. I subscribe to global hooks and if that gets lost from there then this is not a normal behavior.

sirWest avatar Jun 05 '15 08:06 sirWest

I found the same behavior as WizMouse is with http://www.softwareok.com/?seite=Freeware/AlwaysMouseWheel or http://ehiti.de/katmouse/

Unfortunatelly neither of those apps are developed as open source ... so it will be difficult to get whats the reason of the issue

hansek avatar Jun 05 '15 09:06 hansek

Hey, maybe I have something what should point you to the core of issue.

Currently I have AudioSwitch set to run on Windows startup. After Windows starts, AudioSwitch is running in tray but volume controle by right button + wheel is not working. When I opened AudioSwitch Settings and try to uncheck Enabled checkbox under Volume Scrolling Windows shows me an exception bellow (System language is Czech). As I click on continue button, then checbox is unchecked and when I check the checkbox again volume scrolling starts working.

Informace o vyvolání ladění JIT najdete na konci této zprávy,
nikoli v tomto dialogovém okně.

************** Text výjimky **************
System.ComponentModel.Win32Exception (0x80004005): Neplatný popisovač zavěšení
   v AudioSwitch.GlobalHook.HookManager.ForceUnsunscribeFromGlobalMouseEvents()
   v AudioSwitch.GlobalHook.HookManager.TryUnsubscribeFromGlobalMouseEvents()
   v AudioSwitch.Classes.ScrollVolume.RegisterVolScroll(Boolean Enable)
   v AudioSwitch.Forms.FormSettings.checkVolScroll_CheckedChanged(Object sender, EventArgs e)
   v System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
   v System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
   v System.Windows.Forms.CheckBox.OnClick(EventArgs e)
   v System.Windows.Forms.CheckBox.OnMouseUp(MouseEventArgs mevent)
   v System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   v System.Windows.Forms.Control.WndProc(Message& m)
   v System.Windows.Forms.ButtonBase.WndProc(Message& m)
   v System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   v System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   v System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Načtená sestavení **************
mscorlib
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
AudioSwitch
    Verze sestavení: 2.1.0.0
    Verze Win32: 2.1.0
    Základ kódu (CodeBase): file:///C:/OneDrive/Programy/AudioSwitch/AudioSwitch.exe
----------------------------------------
System.Windows.Forms
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34250 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34239 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34230 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.GeneratedCode
    Verze sestavení: 1.0.0.0
    Verze Win32: 4.0.30319.34230 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms.resources
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.36213 built by: FX452RTMLDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_cs_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.GeneratedCode
    Verze sestavení: 1.0.0.0
    Verze Win32: 4.0.30319.34230 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    Verze sestavení: 4.0.0.0
    Verze Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Základ kódu (CodeBase): file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_cs_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** Ladění JIT **************
Aby bylo povoleno ladění JIT, musí konfigurační soubor
pro tuto aplikaci nebo počítač (machine.config) mít
v oddílu system.windows.forms nastavenou hodnotu njitDebugging.
Aplikace rovněž musí být kompilována s povoleným
laděním.

Příklad:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Je-li ladění JIT povoleno, budou všechny neošetřené výjimky
odeslány ladicímu programu JIT, který je registrován v počítači,
a nebudou zpracovány tímto dialogovým oknem.

hansek avatar Jul 28 '15 19:07 hansek

I have this issue as well although I never put my system to sleep or hibernate. I also do not use WizMouse.

I use the LWin + Scroll shortcut and on a handful of times, AudioSwitch behaved as if I had the LWin key pressed and the volume changed when I scrolled. I believe this usually happens after unlocking my computer. EDIT: I was just playing with setting and AudioSwitch quit responding for 15 seconds and then this issue happened. I had to restart AudioSwitch to make it stop changing volume on scroll.

P.S. Thanks for this awesome program!

sparebytes avatar Sep 08 '16 20:09 sparebytes