Page 1 of 1

OpenURL opens webpage in background when fullscreen, possible to change?

Posted: Mon Feb 03, 2025 8:32 pm
by Bugala
Strangely I noticed this only now, but when opening in window mode and using OpenURL, it opens the browser and the page shows right away.

But if I have chosen fullscreen mode, then when using OpenURL, the webpage opes on the back, and I wont see it having opened until I first close the program (or go to windows side some other way).

This in Windows 11, Hollywood 10.

Is there a way to change this behavior in such way that when using OpenURL, it would open the browser and website also when using fullscreen, as in jumping out of the Hollywood program to windows side and leaving the program to the background?

Re: OpenURL opens webpage in background when fullscreen, possible to change?

Posted: Tue Feb 04, 2025 12:01 am
by plouf
which is the expected behavior :) otherwise your game will closed in every action happened back to the Desktop OS , like antivirus b** messages etc

you can manualy achieve that though by switching to windowed mode, hide it (which under windows minimize to taskbar)
and then, when user maximize it , which is the logic think to do as we all are used to maximize from taskbar programs switch back to fullscreen

a few precautions in your code must be added but ..
something like this

Code: Select all

@DISPLAY {mode="FullScreen"}

WaitLeftMouse()
ChangeDisplayMode(#DISPMODE_WINDOWED)
HideDisplay(1)

OpenURL("http://www.google.com")



Repeat
	WaitEvent
Forever

Re: OpenURL opens webpage in background when fullscreen, possible to change?

Posted: Tue Feb 04, 2025 7:17 am
by Bugala
Thanks, that is a solution worth considering.