pmb6tz/windows-desktop-switcher

Fail to switch to any desktop

tanj opened this issue · 5 comments

tanj commented

This was previously working for me, but suddenly today it started acting up. Started that it could only switch to desktop 2 and would not switch back. Now after rebooting it doesn't switch at all.

None of my switch desktop binds are working. However MoveCurrentWindowToDesktop(n) does work.

binds

#F1::switchDesktopByNumber(1)
#F2::switchDesktopByNumber(2)
#F3::switchDesktopByNumber(3)
#F4::switchDesktopByNumber(4)
#F5::switchDesktopByNumber(5)
#F6::switchDesktopByNumber(6)
#F7::switchDesktopByNumber(7)
#F8::switchDesktopByNumber(8)
#F9::switchDesktopByNumber(9)

#^n::switchDesktopToRight()
#^p::switchDesktopToLeft()
#^s::switchDesktopToRight()
#^a::switchDesktopToLeft()
#^tab::switchDesktopToLastOpened()

#^c::createVirtualDesktop()
#^d::deleteVirtualDesktop()

#^1::MoveCurrentWindowToDesktop(1)
#^2::MoveCurrentWindowToDesktop(2)
#^3::MoveCurrentWindowToDesktop(3)
#^4::MoveCurrentWindowToDesktop(4)
#^5::MoveCurrentWindowToDesktop(5)
#^6::MoveCurrentWindowToDesktop(6)
#^7::MoveCurrentWindowToDesktop(7)
#^8::MoveCurrentWindowToDesktop(8)
#^9::MoveCurrentWindowToDesktop(9)

#^Right::MoveCurrentWindowToRightDesktop()
#^Left::MoveCurrentWindowToLeftDesktop()

Log when attempting to switch to desktop 2 from desktop 1 and back.

No switching occurs. I need to bring up the Windows desktop switcher with Win+Tab to switch desktops

00000001	0.00000000	[9128] Current Process Id: 9128	
00000002	0.00009370	[9128] Current Session Id: 1	
00000003	0.02249850	[9128] The iterator is pointing at D544FAACE7046B43ACABB9AAC3A2F12B and count is 0.	
00000004	0.02258090	[9128] Current desktop number is 1 with an ID of D544FAACE7046B43ACABB9AAC3A2F12B.	
00000005	0.15112260	[9128] [right] target: 2 current: 2	
00000006	5.92473221	[9128] Current Process Id: 9128	
00000007	5.92476940	[9128] Current Session Id: 1	
00000008	5.92525434	[9128] The iterator is pointing at D544FAACE7046B43ACABB9AAC3A2F12B and count is 0.	
00000009	5.92528057	[9128] Current desktop number is 1 with an ID of D544FAACE7046B43ACABB9AAC3A2F12B.	
00000010	5.92547607	[9128] [invalid] target: 1 current: 1	
00000011	10.80857563	[9128] Current Process Id: 9128	
00000012	10.80870438	[9128] Current Session Id: 1	
00000013	10.80923176	[9128] The iterator is pointing at D544FAACE7046B43ACABB9AAC3A2F12B and count is 0.	
00000014	10.80937481	[9128] Current desktop number is 1 with an ID of D544FAACE7046B43ACABB9AAC3A2F12B.	
00000015	10.93558884	[9128] [right] target: 2 current: 2	

tanj commented

I was able to resolve this by applying the pull request from #84 and rebuilding the dll from https://github.com/Ciantic/VirtualDesktopAccessor after upgrading the project to platform toolset v142.

my fixed solution can be found at https://github.com/tanj/windows-desktop-switcher/tree/tanj

@tanj I had the same problem and your solution helped. Big thanks!

Same here. Thanks @tanj

Same here. Thanks @tanj

Same problem, and this is perfectly working now. Thanks @tanj !