❔ putting my app in foreground without making other apps lose focus
I am making a checklist app and I want it to be shown above all other apps. the problem is that if I am using a fullscreen app and want to interact with my checklist app the other app loses focus and minimizes.
how can I prevent that?
14 Replies
you more or less can't
if the other window has exclusive fullscreen mode, its... exclusive
thats why overlays almost always require that you run your "other window" in borderless windowed fullscreen
what exactly is your checklist app, and what are the programs you are having problems with thou?
I am making a checklist app for a game which is in fullscreen and it looks like this rn
thats a really obtrusive UI for an overlay
what game btw?
the game is called dcs
the flight sim?
yes
ok
can't that run in borderless-windowed mode?
as previously said, thats how you make overlays work
it can but 99% of all people are using fullscreen thats why I want to try to make it compatible with fullscreen first
the alternative is injecting things into the rendering of the actual game, and I don't recommend that
because one: its most likely against TOS, and two, its really hard
well I know already how to hook the nvidia overlay and render stuff on it and dcs has no problem with it but thats a very strange way to do it and not everyone uses an nvidia gpu
ok
yeah Ill try hooking the game window and render it that way
is it possible to achieve it with WPF?
probably not
if the game has an anticheat at all (i doubt it but never know with games these days), then that's likely a detection vector to get banned instantly
if not then there are plenty of guides for overlay hooking on game cheating forums lol
although rendering wpf would not be possible
so if you want to use WPF, it's fullscreen borderless or nothing
if you're absolutely determined on having a fullscreen overlay, then look in to imgui and universal directx hooking
this would also mean switching to c++, or having a lot of headaches with pinvoke (ive never seen a c# overlay but i'm sure you could find an example somewhere)
the game does not have an anticheat since there are a some other apps that do the same what I want to do but they are all written in javascript and I have no clue about js
I know c++ and imgui so it shouldnt be very hard for me
thanks a lot
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.