Ways to make a window think it is still the active or focused window?


  1. Posts : 32
    Windows 10 Pro
       #1

    Ways to make a window think it is still the active or focused window?


    Windows 10 pro n version 2004
    Is there any way to make a window think it is still focused when in reality it isn't?
    For example i may be trying to play a game, but the game audio will turn off when the window is no longer focused (such as alt tabbing)



    Specifically in my case. League of legends (in borderless windowed mode) will drop fps to ~18fps when the game is not focused (when i alt tab), it is likely an intentional power/resource saving feature and it can't be disabled through it's settings so I am looking to just fool the program into thinking it is still focused.
      My Computer


  2. Posts : 1,255
    Windows 10 Pro
       #2

    I don't think this would be practical.

    Windows provides no such facility. It could be done with third party but I don't know of any. Interfering with the internal operation of a program tends to have unpredictable but generally unpleasant consequences.
      My Computer


  3. Posts : 5,439
    Windows 11 Home
       #3

    https://docs.microsoft.com/en-us/win...regroundwindow

    There are those 2 values you can set, but I do not think it will help you, if the foregroundwindow is locked.

    Code:
    rem Specifies the number of times the taskbar button flashes to notify the user that the system has activated a background window
    rem If the time elapsed since the last user input exceeds the value of the ForegroundLockTimeout entry, the window will automatically be brought to the foreground
    reg add "HKCU\Control Panel\Desktop" /v "ForegroundFlashCount" /t REG_SZ /d "0" /f
    
    rem ForegroundLockTimeout specifies the time in milliseconds, following user input, during which the system keeps applications from moving into the foreground / 0 - Disabled / 200000 - Default
    reg add "HKCU\Control Panel\Desktop" /v "ForegroundLockTimeout" /t REG_DWORD /d "0" /f
      My Computer


  4. Posts : 6,741
    22H2 64 Bit Pro
       #4

    All I can think of is to make it use another device for audio.

    Ways to make a window think it is still the active or focused window?-league.png

    You could try VB-Cable


    Ways to make a window think it is still the active or focused window?-cable-input-properties.jpg

    Ways to make a window think it is still the active or focused window?-cable-output-properties.jpg

    Works for me if playing sound through an app that is using a non focussed window but I do not have LOL. Configure LOL to use VB Cable as default device.

    VB-Audio Virtual Apps
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:34.
Find Us




Windows 10 Forums