I currently have this:

F1::
IfWinActive, ahk_exe ConEmu64.exe
{
    WinActivateBottom, ahk_exe ConEmu64.exe
    return
}
else
{
    WinActivate, ahk_exe ConEmu64.exe
    return
}
return

This cycles through ConEmu windows when I press the key. However, I want it to only cycle through ConEmu windows in the current Windows 10 virtual desktop.

I found this (https://stackoverflow.com/questions/50576354/how-to-make-ifwinactive-and-winactivatebottom-to-use-only-the-current-deskto) but it didn't work. Nothing happens when I press the key. Also, it looks sketchy that the script has hardcoded IDs.

  • Try replacing ahk_exe ConEmu64.exe with ahk_class VirtualConsoleClass - works for me. – user3419297 Oct 24 at 20:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.