Magpie icon indicating copy to clipboard operation
Magpie copied to clipboard

Support classNameRule partial match

Open nixxou opened this issue 9 months ago • 3 comments

Expected behavior 预期的功能

I have a game where the class name of the main window change at every boot. It would be nice if either magpie support partial class name (like if the class of the window contains what's written in classNameRule, it's a match) or wildcards.

Like the game i play have a class like that : XWindow_xxxxxxxxxxx where the xxxxx part change at every boot. I would like in my profile to write something like this : "classNameRule": "XWindow_", or like this "classNameRule": "XWindow_*",

Alternative behavior (optional) 近似的功能(可选)

No response

nixxou avatar May 08 '24 04:05 nixxou

Rather than burdening users with these details, I prefer proactively adapting to these windows, much like we do for WPF and RPG Maker MZ.

https://github.com/Blinue/Magpie/blob/8f6a2721bade034f2cf979695a883a73b9d98391/src/Magpie.App/ProfileService.cpp#L10-L33

Can you provide the name of the game and the framework it uses?

Blinue avatar May 08 '24 04:05 Blinue

It's an obscure arcade game launched though teknoparrot, Dead Heat Riders. On launch, if i use ahk spy, i get that. TeknoBudgie ahk_class XWindow_4089726135 ahk_exe BudgieLoader.exe ahk_pid 35004 ahk_id 23402492

Idk if that answer your question

nixxou avatar May 08 '24 05:05 nixxou

It's very helpful, thank you!

Blinue avatar May 08 '24 07:05 Blinue