Hi
I'm trying to create an application that would stay on top while playing games. Is this possible to do something like this in PureBasic, but for games that were not created in it (preferably for any game)?
Thank you.
how to set an application on top of games
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: how to set an application on top of games
Hello Rookie1
You can use StickyWindow() to do that.
http://www.purebasic.com/documentation/ ... indow.html
You can use StickyWindow() to do that.
http://www.purebasic.com/documentation/ ... indow.html
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: how to set an application on top of games
But bear in mind, that StickyWindow() will not be usable if the Game is running in Fullscreen-Mode.IdeasVacuum wrote:You can use StickyWindow() to do that.
To put something on top of a fullsize DirectX-Screen, you have to do it by an DirectDraw-Overlay, which is "quite a bit" more complicated.
Eventhough its not really made for PB-Beginners, maybe THIS Overlay-Example from Stefan could be helpfull.
(LINK to the Thread in the german PureBasic-Forum.)Stefan wrote:; Show an overlay on top of a (Direct3D) image, e.g. a game...
; Note: not every gfx card support this feature
; Über einem bestehenden (Direct3D-)Bild (z.B. einem Spiel) ein Overlay anzeigen:
; Achtung: Nicht jede Grafikkarte unterstüzt Overlays.
Because it's using DirectX7, you have to set the "Library Subsystem" in the PB Compiler-Options to "DirectX7".
Greetz and good luck, PL.
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
- Fluid Byte
- Addict

- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
Re: how to set an application on top of games
Don't use that, it's worthless. As you can see the thread is very long and I post a lot there.
I have analysed that thing back and forth and besides using DirectX 7 (which is simply a no-go these days)
the desktop resolution has to be identical to the resolution of your game. Also if you Alt-Tab from your game,
overlay destroyed. Change resolution of your game, overlay destroyed. Keep your hands of this one, just leads to trouble.
I know you want something like the overlay used in Steam games which quite handy.
So you need to check out this thread: http://www.purebasic.fr/english/viewtop ... 13&t=38283
There info about an external DLL and extra code which show how to inject it.
I have analysed that thing back and forth and besides using DirectX 7 (which is simply a no-go these days)
the desktop resolution has to be identical to the resolution of your game. Also if you Alt-Tab from your game,
overlay destroyed. Change resolution of your game, overlay destroyed. Keep your hands of this one, just leads to trouble.
I know you want something like the overlay used in Steam games which quite handy.
So you need to check out this thread: http://www.purebasic.fr/english/viewtop ... 13&t=38283
There info about an external DLL and extra code which show how to inject it.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Re: how to set an application on top of games
thanks for replies guys.
Fluid Byte, the material found after following your link seems to be exactly what I was looking for.
Unfortunately I've never made any Directx programming until now, so it will take a while until i can put those functions at good use. Seems that my idea is a little harder to put in practice than expected
But this is exactly the head start I needed, saving me from many more hours of Net searching.
I will post any news on the project as it develops, but it will take some time as I'm in the process of learning PHP and Italian language too
Fluid Byte, the material found after following your link seems to be exactly what I was looking for.
Unfortunately I've never made any Directx programming until now, so it will take a while until i can put those functions at good use. Seems that my idea is a little harder to put in practice than expected
But this is exactly the head start I needed, saving me from many more hours of Net searching.
I will post any news on the project as it develops, but it will take some time as I'm in the process of learning PHP and Italian language too

