Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Window Commands for GameMaker

Check/disable/dispatch window commands in GameMaker · By YellowAfterlife

Getting started with Windows Commands for GM

A topic by Karlstens created Dec 28, 2020 Views: 338 Replies: 1
Viewing posts 1 to 2

Thanks for making this!

I'm hoping I can do the follow; Whilst working on my app, to have GMS2 minimized, to actively use and have GMEdit maximized and whilst GMEdit is full-screen to then have my game app open and "pinned" to be ontop of all Windows permanently (so it floats above GMEdit). As I update and save code in GMEdit, the GMLive calls then update my pinned app.

Any chance you could post some sample project code of how to pin a GMS2 App Window on top? I see you have the sample code; 

SetWindowPos(hwnd, stayontop ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);

But I'm not sure of how to implement this into a GMS2 project as I'm new to such GMS2 plug-ins, however familiar with Windows System DLL calls and what's being achieved. 

Thanks again for posting such awesome apps. GMLive has been great to use, and I've just started using GMEdit but so far so good. :) 

(+1)

Got it working with the help of Sidorakh! 

window_set_topmost(1);