CapsLockX icon indicating copy to clipboard operation
CapsLockX copied to clipboard

bug: Explorer崩掉时切桌面调用API出错的错误处理 TODO

Open snomiao opened this issue 3 years ago • 0 comments


CapsLockX-Core.ahk

Error in #include file "C:\Users\snomi\CapsLockX\Modules\03-虚拟桌面增强.ahk": 0x80040154 - Class not registered

Line#
240: bool := 0
241: DllCall(IsWindowOnCurrentVirtualDesktop, "UPtr", IVirtualDesktopManager, "UInt", hWnd, "UIntP", bool)  
242: ObjRelease(IVirtualDesktopManager)  
243: Return,%bool%
244: }
245: {
246: succ := 0

---> 247: IServiceProvider := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{6D5140C1-7436-11CE-8034-00AA006009FA}") 248: IVirtualDesktopManagerInternal := ComObjQuery(IServiceProvider, "{C5E0CDCA-7B6E-41B2-9FC4-D93975CC467B}", "{F31574D6-B682-4CDC-BD56-1827860ABEC6}") 249: ObjRelease(IServiceProvider)
250: if (IVirtualDesktopManagerInternal)
250: { 251: GetCount := vtable(IVirtualDesktopManagerInternal, 3) 252: GetDesktops := vtable(IVirtualDesktopManagerInternal, 7) 253: SwitchDesktop := vtable(IVirtualDesktopManagerInternal, 9)

Continue running the script?

Yes No

snomiao avatar Apr 18 '21 10:04 snomiao