Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Linux RestoreApp()

Author
Message
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 11th Apr 2019 15:52
Hello.
As i can't use PlayVideo with unbutu so i use RunApp to lauch Vlc. Works fine but my App Windows stay not active and minimized after Vlc close.
I use this code, but my App stay minimized into the linux dock app bar :

if GetAppRunning(IdVLC) = 0 then RestoreApp()

(MaximizeWindow() do nothing).

Many thanks for your idea.

The author of this post has marked a post as an answer.

Go to answer

Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 11th Apr 2019 16:02
What command line arguments are you calling? Are you ensuring that VLC exits after playing the video??

You should add a quit command to the command line so that the application ends and then AppGameKit should be able to detect that it has finished
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 11th Apr 2019 16:37
IdVLC = RunApp ("vlc", "--fullscreen --play-and-exit --video-on-top" + " " + Chaine)
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 11th Apr 2019 16:40 Edited at: 11th Apr 2019 16:46
agk detect when vlc close : if GetAppRunning(IdVLC) = 0.

Ubuntu 18.04.2 LTS
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 11th Apr 2019 19:11 Edited at: 11th Apr 2019 19:12
This post has been marked by the post author as the answer.
The problem was the fullscreen SetWindowSize( LARGEUR_ECRAN_PIXELS, HAUTEUR_ECRAN_PIXELS,1). But if you change SetWindowSize( LARGEUR_ECRAN_PIXELS, HAUTEUR_ECRAN_PIXELS,0) before the RunApp call it works.Next you can pass again to fullscreen. I don't know if it's a bug.

Login to post a reply

Server time is: 2024-04-19 21:00:46
Your offset time is: 2024-04-19 21:00:46