gms_show_isopen
Usage: gms_show_isopen ( what )
Description
Returns whether the window what is opened. what must be a wt_* constant.
Replies (12)
Last message on 30 Nov 2019
Is there a way to check if any windows are open?
Size43
(Administrator)
on
30 Nov 2019, 17:26:06
You'll have to 'or' multiple calls to this function together. There's no way to directly check if any window is open.
Add please gms_show_close(name window)
So that we can close the window :)
Size43
(Administrator)
on
10 May 2018, 19:23:17
Quick hack to do this:
wle_close(global.__xls_window) // login window
wle_close(global.__xrs_window) // register window
wle_close(global.__xhs_window) // highscore window
So Basicly it can go like
if gms_show_isopen ("wt_cheat engine")
{
show_message("Hey you have cheat engine open time to die >:)")
game_end()
}
woops i frogot to remove " "
and the space
if gms_show_isopen(wt_cheat_engine)
{
show_message("Hey you have cheat engine open time to die >:)")
game_end()
}
oh wait i have it all wrong its a.... idk evin know
That isn't how it works. It checks predefined windows, e.x Login Window.
Size43
(Administrator)
on
30 Jan 2017, 11:13:59
This is correct. It only works for the GameMaker Server windows, not for arbitrary programs.
So this function only works in Windows, so I couldn't use it on android device?
oh...... ok i understand that