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

travsvoid on 28 Nov 2019, 00:02:05
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.
ZvikaLon on 5 May 2018, 14:37:01
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
KadePcGames on 29 Jan 2017, 23:11:41
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()
}
KadePcGames on 29 Jan 2017, 23:13:20
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()
}
KadePcGames on 29 Jan 2017, 23:15:06
oh wait i have it all wrong its a.... idk evin know
matthe815 on 30 Jan 2017, 01:02:18
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.
perilousproductions on 17 May 2017, 18:24:54
So this function only works in Windows, so I couldn't use it on android device?
perilousproductions on 17 May 2017, 18:25:28
Never mind I get it now.
KadePcGames on 5 Feb 2017, 00:13:43
oh...... ok i understand that