Grabacr07 / SylphyHorn

Virtual Desktop Tools for Windows 10.
MIT License
389 stars 84 forks source link

All shortcut keys are not working. #35

Open ytabuchi opened 6 years ago

ytabuchi commented 6 years ago

Tried workaround:

PC/OS/App environment:

App log:

It occours when app has launched.

System.InvalidCastException: 指定されたキャストは有効ではありません。
   場所 WindowsDesktop.Interop.ComInterfaceWrapperBase.Invoke[T](Object[] parameters, String methodName)
   場所 WindowsDesktop.Interop.ApplicationViewCollection.GetViewForHwnd(IntPtr hWnd)
   場所 WindowsDesktop.VirtualDesktop.PinWindow(IntPtr hWnd)
   場所 SylphyHorn.UI.SettingsWindow.OnContentRendered(EventArgs e)
   場所 System.Windows.Window.<PostContentRendered>b__198_0(Object unused)
   場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

ご確認、よろしくお願いいたします。その他ログが取れる場所があれば提出しますので、お知らせください。

R-OLE commented 6 years ago

Same symptoms as OP. Attempts same workarounds. Same results. Also tried changing hotkeys away from default and back again, with zero effect. Tried booting with anti-virus suite disabled - no change.

I had left message on Issue #32. Here is some feedback on supposed resolution from there:

Environment:

App log contains the following 3 entries, with entries repeated couple times after each startup, in various order:

System.InvalidCastException: Specified cast is not valid. at WindowsDesktop.Interop.ComInterfaceWrapperBase.Invoke[T](Object[] parameters, String methodName) at WindowsDesktop.Interop.ApplicationViewCollection.GetViewForHwnd(IntPtr hWnd) at WindowsDesktop.VirtualDesktopHelper.MoveToDesktop(IntPtr hWnd, VirtualDesktop virtualDesktop) at SylphyHorn.Services.VirtualDesktopService.MoveToLeft(IntPtr hWnd) at SylphyHorn.ApplicationPreparation.<>c.b__14_3(IntPtr hWnd) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

System.InvalidCastException: Specified cast is not valid. at WindowsDesktop.Interop.ComInterfaceWrapperBase.Invoke[T](Object[] parameters, String methodName) at WindowsDesktop.Interop.ApplicationViewCollection.GetViewForHwnd(IntPtr hWnd) at WindowsDesktop.VirtualDesktop.PinWindow(IntPtr hWnd) at SylphyHorn.UI.SettingsWindow.OnContentRendered(EventArgs e) at System.Windows.Window.b__198_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

System.InvalidCastException: Specified cast is not valid. at WindowsDesktop.Interop.ComInterfaceWrapperBase.Invoke[T](Object[] parameters, String methodName) at WindowsDesktop.Interop.ApplicationViewCollection.GetViewForHwnd(IntPtr hWnd) at WindowsDesktop.VirtualDesktopHelper.MoveToDesktop(IntPtr hWnd, VirtualDesktop virtualDesktop) at SylphyHorn.Services.VirtualDesktopService.MoveToRight(IntPtr hWnd) at SylphyHorn.ApplicationPreparation.<>c.b__14_7(IntPtr hWnd) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

I'll keep checking if/when an updated version is posted, or pushed to MS store.

makeneko commented 6 years ago

PC/OS/App environment: Surface Laptop Core -5-7300U @ 2.60GHz 8GB Windows 10 Pro 64bit 1709 16299.547 SyophyHorn version 3.1.0

ParticleMon commented 5 years ago

Same issue but no error.

W10 Home x64, 1803, 17134.471 SylphyHorn 3.1.0

ytabuchi commented 5 years ago

I have replaced Windows OS and some environment. So right now, I can use it without errors.

But I have no idea how to fix it...

R-OLE commented 5 years ago

Would be really nice if Microsoft would try to stabilize this API, or at least document any and all changes for sake of folks making its features easy and useful to use!