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

Find quick help here to get you started with Hollywood
Post Reply
Bugala
Posts: 1329
Joined: Sun Feb 14, 2010 7:11 pm

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

Post 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?
plouf
Posts: 613
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

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

Post 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
Christos
Bugala
Posts: 1329
Joined: Sun Feb 14, 2010 7:11 pm

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

Post by Bugala »

Thanks, that is a solution worth considering.
Post Reply