Coder Social home page Coder Social logo

Comments (16)

Perlence avatar Perlence commented on August 15, 2024 1

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.

Perlence avatar Perlence commented on August 15, 2024 1

@pmb6tz That's sad news. Get well and keep your chin up!

from windows-desktop-switcher.

hawkins avatar hawkins commented on August 15, 2024 1

Sorry to hear that, pal. Hope you're feeling better soon!

from windows-desktop-switcher.

pmb6tz avatar pmb6tz commented on August 15, 2024

+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.

Perlence avatar Perlence commented on August 15, 2024

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.

pmb6tz avatar pmb6tz commented on August 15, 2024

@Perlence, if that's sufficiently tested feel free to make a PR for it. Looks pretty good to me!

from windows-desktop-switcher.

hawkins avatar hawkins commented on August 15, 2024

@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.

Perlence avatar Perlence commented on August 15, 2024

@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.

hawkins avatar hawkins commented on August 15, 2024

@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.

Perlence avatar Perlence commented on August 15, 2024

@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.

Perlence avatar Perlence commented on August 15, 2024

@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.

hawkins avatar hawkins commented on August 15, 2024

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.

hawkins avatar hawkins commented on August 15, 2024

@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.

Perlence avatar Perlence commented on August 15, 2024

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.

pmb6tz avatar pmb6tz commented on August 15, 2024

@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.

Perlence avatar Perlence commented on August 15, 2024

Resolved in 2e0d5d3.

from windows-desktop-switcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.