InformationThis DLL can enable, disable, and get the state of the close button on the window. This does NOT prevent the window from being closed, however, so it is legal to be used and distributed on the GMC.

FunctionsEnable close buttonDisable close buttonGet state of close button

Since I just answered this in the other topic, I'll put it here to... I hate cluuterring everything with tons of little dll's that to tiny little things. Particularly when I can just do it in GameMaker...http://forums.gamema...dpost&p=1369724

As stated in the first post, "This DLL can enable, disable, and get the state of the close button on the window. "

AND HOW DOES IT WORK?!?!?!

Uses a few simple API commands to modify the SC_CLOSE button on a menubar of a window. I'll post the source in the first topic.

Since I just answered this in the other topic, I'll put it here to... I hate cluuterring everything with tons of little dll's that to tiny little things. Particularly when I can just do it in GameMaker...http://forums.gamema...dpost&p=1369724

I tried to use your code, but you lost me when you told me to go to "Disable control in the options". Anyways, this DLL does it for real, so if you want ot make something commercial, this would be the way to go. Anything done in GameMaker would be fake.

I tried to use your code, but you lost me when you told me to go to "Disable control in the options". Anyways, this DLL does it for real, so if you want ot make something commercial, this would be the way to go. Anything done in GameMaker would be fake.

Yeah, ok, a typo--I'll edit that. It should read "Disable Esc in the game options." Seriously, though, I think a person with your experience knows that... Anywho, it's just as 'legitimate' a way of doing it (I mean, seriously--calling it 'fake' is just ridiculous). Not to knock your dll--I just want people to be aware that if they don't want one, they don't need one (*cough*UnRegisteredPeople*cough*).

This is useless; as it was mentioned previously, keyboard_check_direct(vk_escape) and keyboard_check(vk_escape) provide all the information you need once you disable the game closure from within your Game Options.

Okay, I want everybody to read this carefully. The function that returns the state of the window’s close button, it would not return if the close button is disabled, another thing, the function to enable the close button would still not work when the programmer checked off the check box that allows the player to press the Escape Key that can enable the window to be closed. In addition, the function that disables the close button is still active when the player presses and holds the ‘Alt’ Key followed by the ‘F4’ Key. Therefore, all three functions have an error, however, they can probably be fixed since the source code of this Dynamic Link Library is distributed.

I tried to use your code, but you lost me when you told me to go to "Disable control in the options". Anyways, this DLL does it for real, so if you want ot make something commercial, this would be the way to go. Anything done in GameMaker would be fake.

Yeah, ok, a typo--I'll edit that. It should read "Disable Esc in the game options." Seriously, though, I think a person with your experience knows that... Anywho, it's just as 'legitimate' a way of doing it (I mean, seriously--calling it 'fake' is just ridiculous). Not to knock your dll--I just want people to be aware that if they don't want one, they don't need one (*cough*UnRegisteredPeople*cough*).

Well I still can't get it to work. By the way, how was I supposed to get "Disable Esc" from "Disable control"? I have an object, with your code in the "Esc Released" event, and i've tried it in the step event, with Esc disabled. What am I supposed to see? All that happens is I can't close the game.

This is useless; as it was mentioned previously, keyboard_check_direct(vk_escape) and keyboard_check(vk_escape) provide all the information you need once you disable the game closure from within your Game Options.

My DLL doesn't prevent game closure, it disables the button that can close it. You can still use Esc to close it even if the button is disabled.

Okay, I want everybody to read this carefully. The function that returns the state of the window’s close button, it would not return if it’s disabled, another thing, the function to enable the close it would still not work when the programmer check off the check box that allows the player to press the escape key that can enable the window to be close. In addition, the function that disables the close button is still active when the player presses and holds the ‘Alt’ Key followed by the ‘F4’ Key. Therefore, all three function have an error, however, they can probably be fixed since the source code of the Dynamic Link Library is distributed.

Well, I'm not sure if that's for me or against me. Are you stating bugs in my DLL? If so, tell me and i'll try to fix them.

Okay, I want everybody to read this carefully. The function that returns the state of the window’s close button, it would not return if it’s disabled, another thing, the function to enable the close it would still not work when the programmer check off the check box that allows the player to press the escape key that can enable the window to be close. In addition, the function that disables the close button is still active when the player presses and holds the ‘Alt’ Key followed by the ‘F4’ Key. Therefore, all three function have an error, however, they can probably be fixed since the source code of the Dynamic Link Library is distributed.

- Cloud Tower -

Well, I'm not sure if that's for me or against me. Are you stating bugs in my DLL? If so, tell me and i'll try to fix them.

Hey, i know this hasent been replied to forever, but i would like to use it, and the link is broken. If you have a copy of the dll, please upload it somwhere and post?

I don't have this DLL, but since Roach posted the source I was able to recompile it for you. I also remade the scripts, see the gmk in the zip. Although, if any credit is to be made when using this, you should still credit Roach for it.

I'll PM Roach to make him aware that the link is dead. For now, use this.