Is it possible to disable a device while a specific application runs?


  1. Posts : 1
    Windows 10
       #1

    Is it possible to disable a device while a specific application runs?


    I have an IR receiver constantly attached to my computer. One program I use always registers it as a game controller, and stops me from using my actual game controllers in favor of it. Is it possible to automate disabling the IR receiver while the program runs, and re-enabling it after the application closes?
      My Computer


  2. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, if you know or can find a command to disable it, you can write a simple Autohotkey script- for example, a loop that periodically tests to see if your game is running, and if so, disable the device.

    (Autohotkey is free and well supported- it can be programmed to test for the presence of a particular process in 1 line).

    Probably 5 lines would suffice.

    It comes with a comprehensive help file, detailing each command with examples.

    AutoHotkey Beginner Tutorial

    Or you could create a shortcut to a script that
    a. launches the game
    and
    b. disables the device and exits when you choose.
      My Computers


 

  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 16:48.
Find Us




Windows 10 Forums