Macro-Deck-App / Macro-Deck

Macro Deck transforms your phone, tablet, or any device equipped with a modern internet browser into an efficient remote macro pad. With this tool, you can execute single or multi-step actions seamlessly with just a single tap.
https://macro-deck.app
Apache License 2.0
748 stars 64 forks source link

Macro Deck Server does not detect Helldivers 2 Window #541

Open uliss3s opened 3 months ago

uliss3s commented 3 months ago

Trying to configure the folder "on application focus" setting for the game helldivers 2 but it does not appears in the application list.

Running the following code (similar to what is used in the app repo) in my local machine works and the game window is detected normaly:

using System.Diagnostics;
using static System.String;

var processCollection = Process.GetProcesses();

foreach (var p in processCollection)
{
    if (!IsNullOrEmpty(p.MainWindowTitle))
    {
        Console.Write(p.ProcessName + ";" + p.MainWindowTitle + "\n");
    }
}

output:

...
helldivers2;HELLDIVERS™ 2
...
uliss3s commented 2 months ago

After testing a bit more, I found that the process with the correct MainWindowTitle is appearing named as "Idle" (id=0) in MacroDeck. The "helldivers2.exe" process don't have the MainWindowTitle value in MacroDeck.