Comments (16)
I tried to address the issue here Perlence@942b8fb, by looping an arbitrary amount of times, reading subsequent SessionInfos from registry, but I'm not sure what will happen when more than one user sign in.
from windows-desktop-switcher.
@pmb6tz That's sad news. Get well and keep your chin up!
from windows-desktop-switcher.
Sorry to hear that, pal. Hope you're feeling better soon!
from windows-desktop-switcher.
+1 for being proactive :-). I do feel like we should come up with a programmatic way to get the current session id--this solution seems a little risky. A brief search led me to think calling this function using an AHK DllCall like this would potentially do it?
from windows-desktop-switcher.
Thank you for direction, here's my take on this Perlence@4aba590. Here I exchange Process ID of AHK for Session ID.
from windows-desktop-switcher.
@Perlence, if that's sufficiently tested feel free to make a PR for it. Looks pretty good to me!
from windows-desktop-switcher.
@Perlence I might be crazy, but is your fork really working for switching to specific desktops or to next/previous? It doesn't appear to work for me, yet DebugView is only showing my the current process and session IDs. The current pmb6tz version does work fine for me, however.
from windows-desktop-switcher.
@hawkins Maybe it's not clearly named, I meant to switch to previous desktop, i.e. the one where you were before current, not the one that's on the left.
DebugView is only showing my the current process and session IDs
I guess it doesn't advance to parsing REG_DATA, is session ID you see correct?
from windows-desktop-switcher.
@Perlence Oops, our usage of previous is conflicting here. It makes more sense in the context of your work than in the NA/PS bindings from my commits. I'm not sure what to call mine then! Regardless...
is session ID you see correct?
Yes, I see the correct session ID.
I've further discovered, no matter what global DesktopCount
is set to, I have to first use CapsLock+C to create a new desktop before any other features will work, despite already having more than 1 virtual desktop in Windows.
from windows-desktop-switcher.
@hawkins Did you try opening Task View Win + Tab after reloading the script? I noticed it gets stuck sometime and this combo releases it. I tested the session-info
branch on another PC, and it did work.
from windows-desktop-switcher.
@hawkins I might have found out why the script didn't work in your setup. I noticed that just after a fresh boot, no matter what SessionId is, there's no CurrentVirtualDesktop key in registry. So I applied some safety measures to handle such scenario in Perlence@c31105d
from windows-desktop-switcher.
Did you try opening Task View Win + Tab after reloading the script? I noticed it gets stuck sometime and this combo releases it.
I did open task view (by instead clicking the icon beside the start button), but it did not seem to change anything.
I might have found ...
Great! Looking forward to trying this out tonight!
from windows-desktop-switcher.
@Perlence That worked without requiring opening task view or creating a new desktop first!
Are your rebindings (alt 1-4) just for your own sake?
from windows-desktop-switcher.
That worked without requiring opening task view or creating a new desktop first!
Cool, I'm glad it worked
Are your rebindings (alt 1-4) just for your own sake?
Yes, I like it this way.
from windows-desktop-switcher.
@hawkins @Perlence I made you guys collaborators. Having some medical issues with my hands right now but don't want to be blocking useful updates. I'll try to be around but in general if one of you could review the other's pull requests that would be an easy way of reaching consensus if that's something you're comfortable with :-).
from windows-desktop-switcher.
Resolved in 2e0d5d3.
from windows-desktop-switcher.
Related Issues (20)
- Switching desktops no longer works on new Windows 11 update. Build 22631.3007 HOT 11
- The script doesn't work on Windows 10 latest update at all HOT 2
- Error: Call to nonexistant function HOT 1
- Advanced admin run-on-boot config malfunctioning HOT 1
- (Move to desktop) script only run if we compile to exe file HOT 6
- Windows + Tab stopped opening task view when using this project. How can I fix this?
- Fail to switch to any desktop HOT 5
- AutoHotkey Version 2 breaks compatibility HOT 6
- Can it get the name (not index) of a virtual desktop?
- Functionalities are extremely laggy? HOT 1
- No session required on Windows 11
- Also activating "Esc" button when switching window
- feature request
- latest version of AutoHotkey (2.0.2) is not compatible? HOT 2
- No longer working with the new windows 11 update. Build 22621.2283 HOT 5
- Disable showing the desktop number HOT 2
- Focus on the last foreground window in the VD when switching to it HOT 2
- set timer switch between desktops
- Move (only) current window to the destination desktop without switching
- Hide taskbar "shows" when switching desktops && ALT key focus when Change desktops HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-desktop-switcher.