Git Product home page Git Product logo

Comments (12)

MScholtes avatar MScholtes commented on September 18, 2024

Hello bugwheels94,

I think this is the expected behaviour. When a program wants to notify you that it wants to be activated its icon flashes and turns orange. VirtualDesktop does not care about Window activation.

As far as I know you can change that behaviour in Control Panel or with a registry hack.

Greetings

Markus

from virtualdesktop.

bugwheels94 avatar bugwheels94 commented on September 18, 2024

Hi Markus,

I used to use AHK using dlls for this thing till yesterday but that was super messy and unreliable. I have now set up this repo inside AHK and it works but I am not able to understand why all applications like (VSCode editor or Browser or windows Terminal) want focus when using this repo and not AHK Dlls.

Regedit hacks not working in Windows 10 they were working till windows 7 AFAIK

from virtualdesktop.

shellwhale avatar shellwhale commented on September 18, 2024

Hello!

I am having this very issue, this is extremely annoying. 😕

Recently I mapped some keys to executable calls, this allows me to switch between my various desktops easily, and everything worked fine.

Today I reinstalled Windows (bought another SSD) and now when running .\VirtualDesktop.exe "-Switch:Desktop 1" I sometimes lose the focus on my last window, and sometimes I don't.

I really don't understand what's causing this, I went from never having the taskbar flashing orange on the icon to almost always flashing and having to ALT+TAB or clicking on the window.

EDIT: Went back to my old drive with my old Windows and can confirm that it works there. The focus is automatically set to the last window in the virtual desktop. That doesn't work on my new installation, but the setup is the same. I really don't understand what's the difference.

from virtualdesktop.

MScholtes avatar MScholtes commented on September 18, 2024

Hello @shellwhale,

you might see here: https://superuser.com/questions/1332330/how-to-disable-flashing-icons-in-windows-10-taskbar

Greetings

Markus

from virtualdesktop.

shellwhale avatar shellwhale commented on September 18, 2024

Thanks for the tip @MScholtes but unfortunately I already tried that on my new system and it doesn't work. Also, I just checked the registry on my old system (where this works) and the registry values are the default ones.

I noticed (on the new system, where that doesn't work) that the cursor stays on the terminal after running .\VirtualDesktop.exe "-Switch:Desktop 1". I noticed that because the keys I pressed inside the other virtual desktop showed up in the console prompt on the first desktop. The cursor doesn't move to the new desktop.

from virtualdesktop.

shellwhale avatar shellwhale commented on September 18, 2024
Carnac_EOQYbapjYh.mp4

Sometimes the focus works but that's very rare

from virtualdesktop.

shellwhale avatar shellwhale commented on September 18, 2024
Carnac_TJjQCMqxVu.mp4

Same thing but on my old system. This works, but I don't know why.

from virtualdesktop.

shellwhale avatar shellwhale commented on September 18, 2024

I don't quite understand what was @bugwheels94 solution to solve this. @MScholtes do you understand what he meant by this ?

I have now set up this repo inside AHK and it works

from virtualdesktop.

MScholtes avatar MScholtes commented on September 18, 2024

Hallo @shellwhale,

VirtualDesktop does not care about activated windows or where the focus is. It simply ignores it and works on virtual desktops. You have to find the solution somewhere else.

Greetings

Markus

from virtualdesktop.

bugwheels94 avatar bugwheels94 commented on September 18, 2024

@shellwhale I hid the taskbar completely(using nircmd) and flashing was happening or not happening but it did not bother me at all. I never use taskbar anyways. In windows 11 though, I dont notice this flashing thing at all.

from virtualdesktop.

bugwheels94 avatar bugwheels94 commented on September 18, 2024
;MY AHK file


; === SYMBOLS ===
; !   <- Alt
; +   <- Shift
; ^   <- Ctrl
; #   <- Win
; For more, visit https://autohotkey.com/docs/Hotkeys.htm


; ===========================
; === END OF INSTRUCTIONS ===
; ===========================

#1::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:0",,hide
#2::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:1",,hide
#3::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:2",,hide
#4::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:3",,hide
#q::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:4",,hide
#w::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:5",,hide
#e::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:6",,hide
!1::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:7",,hide
!2::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:8",,hide
!3::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:9",,hide
!4::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:10",,hide
!q::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:11",,hide
!w::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:12",,hide
!e::Run cmd.exe /c "D:\Softwares\VirtualDesktop-master\VirtualDesktop11 /Switch:13",,hide
#!Space::Run cmd.exe /c "D:\Softwares\nircmd-x64\nircmd.exe win trans class Shell_TrayWnd 256",,hide
#Space::Run cmd.exe /c "D:\Softwares\nircmd-x64\nircmd.exe win trans class Shell_TrayWnd 255",,hide

from virtualdesktop.

shellwhale avatar shellwhale commented on September 18, 2024

Because I use the taskbar from time to time I'm now using SylphyHornPlus instead

from virtualdesktop.

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.