ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Making a windows pop-up window appear
person icon
DLW977
Guest
Quote
2026-04-11 09:30:04

I've been trying to figure out a way to make a windows pop-up appear after an event occurs (making a kind of 'meta'-horror game), but I haven't figured it out.

I attempted to use the Run Javascript behavior, though I'm a beginner in JS and the minor research I did didn't give results when used through Coppercube (I DID get a .js file that makes a popup, unfortunately I could not run this through Coppercube).

Is it possible to do this?

person icon
gazzauk
Registered User
Quote
2026-04-12 03:47:34

not sure what you mean by a window popup but you can use a billboard with an image on it or use an overlay2d for a text box. Both can be scripted and timed to show and hide.

person icon
DLW977
Guest
Quote
2026-04-12 04:38:17

embedded external image
🔎︎


This is what I mean by a windows pop-up. Hope this clears up any confusion!

person icon
guest_Guru
Guest
Quote
2026-04-12 07:11:36

Why don't you use 2D overlays to create your own Popup for alert, confirmation and other stuff. Check this out https://vazahat.itch.io/gui-copp...

This might come handy when create custom UI, Window with buttons or toggles.

person icon
DLW977
Guest
Quote
2026-04-12 08:51:41

guest_Guru wrote:
Why don't you use 2D overlays to create your own Popup for alert, confirmation and other stuff. Check this out https://vazahat.itch.io/gui-copp...

This might come handy when create custom UI, Window with buttons or toggles.


While this is useful, and something I may consider adding in other projects, some of the idea of the pop-up is that this could be activated in tandem with the 'quit application' behavior to make more of a 'critical error that crashed the game' effect.

person icon
guest_Guru
Guest
Quote
2026-04-12 13:07:53

for that you can create custom third party application with just the popup window using another tool or software, it is going to be just a basic window handle. And then you can use System command to open that third party tool, and after opening that tool you can use the same command to close the game, that will close the game while opening the new exe with the crash popup window, otherwise I don't think it is possible to do something like this in native Coppercube without touching the source code. Someone more knowledgeable might help you with that. Maybe ask @Robbo, JIC, or some other people in discord server who are tinkering with the source code of the engine.

person icon
gazzauk
Registered User
Quote
2026-04-13 00:44:55

DLW977 wrote:
embedded external image
🔎︎


This is what I mean by a windows pop-up. Hope this clears up any confusion!


BTW. That is not a 'pop-up window', it is commonly named a message box or alert message box in your case. 'pop-up windows' are normally associated with web browsers.

I'm not aware cc can use the windows api and only alert message boxes can be shown in the editor. You'd have to use the system command as was suggested by other poster. Maybe run some vbscript code using wscript.exe.

How did you activate the example alert message? be easier to use that image as a billboard and show that.

person icon
DLW977
Guest
Quote
2026-04-13 02:14:45

These tips worked. Thanks all for your help!


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |