Comments (12)
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.
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.
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.
Hello @shellwhale,
you might see here: https://superuser.com/questions/1332330/how-to-disable-flashing-icons-in-windows-10-taskbar
Greetings
Markus
from virtualdesktop.
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.
Carnac_EOQYbapjYh.mp4
Sometimes the focus works but that's very rare
from virtualdesktop.
Carnac_TJjQCMqxVu.mp4
Same thing but on my old system. This works, but I don't know why.
from virtualdesktop.
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.
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.
@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.
;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.
Because I use the taskbar from time to time I'm now using SylphyHornPlus instead
from virtualdesktop.
Related Issues (20)
- Broken in 22621? HOT 22
- Virtual Desktop Broken after KB5029351 HOT 2
- "Remove" function not working in VirtualDesktop11-23H2 HOT 3
- New Windows Update HOT 1
- IVirtualDesktop.GetName() always return "Desktop " + (index + 1) even when name is set. HOT 3
- Problem moving active window to desktop HOT 2
- suggestion HOT 2
- Not working since last Windows update (Windows 11 22H2 Build 22621.2428) HOT 2
- Active windows taskbar icons become invisible while changing active desktop HOT 5
- Having issues on new released OS build 22631 HOT 4
- I think this might not work with Win11 Dev Insider build 23606 HOT 16
- Guidance Required HOT 10
- WinExist in another Virtual Desktop HOT 3
- /RemoveAll does not respect /Quiet flag HOT 1
- AutoHotkey Example Script if anyone is interested
- Autohotkey example function to use regex, and cycle between windows or minimize HOT 2
- Exception after fresh install of VirtualDesktop 1.18 HOT 6
- Question: how to find enum member names ? for `APPLICATION_VIEW_CLOAK_TYPE` and `APPLICATION_VIEW_COMPATIBILITY_POLICY` HOT 6
- Window moving fails with unhelpful error in non-admin console HOT 2
- Desktop wallpaper 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 virtualdesktop.