-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Hi,
Fantastic program. I am usually a kde user so I like a lot of desktops. Because of my eyesight, I usually run the magifier, but I want it to be ignored when I switch desktops (and still of course have the top window get the focus). Using gemini I added the following to the function
static _FindValidWindow(hwnd_list, isNotMinized := false) {
The snippet:
.... loop 1 { if (already_hwnd.Has(hwnd)) { found := already_hwnd[hwnd] break } ; --- ADDED CHECK FOR MAGNIFIER --- try { winClass := WinGetClass(hwnd) if (winClass == "MagUIClass") { found := false break } } ; --------------------------------- ...
And it works correctly. My own script is of course is silly (maybe add it as an example?):
#Requires AutoHotkey v2.0
#Include VD.ahk; Use Ctrl-F1,...,Ctrl-F12 to change to virtual desktops 1,...,12
^F1::VD.goToDesktopNum( 1 )
^F2::VD.goToDesktopNum( 2 )
^F3::VD.goToDesktopNum( 3 )
^F4::VD.goToDesktopNum( 4 )
^F5::VD.goToDesktopNum( 5 )
^F6::VD.goToDesktopNum( 6 )
^F7::VD.goToDesktopNum( 7 )
^F8::VD.goToDesktopNum( 8 )
^F9::VD.goToDesktopNum( 9 )
^F10::VD.goToDesktopNum( 10 )
^F11::VD.goToDesktopNum( 11 )
^F12::VD.goToDesktopNum( 12 )
Again. Thanks for your program!