Ask Your Question

windowstyle parameter in shell statement (solved)

asked 2017-11-22 12:29:07 +0100

Pansmanser gravatar image

updated 2017-12-05 23:10:34 +0100

I have found that the shell statement does not work as I expect. I would like to call vlc from macro in impress without it opening a window on top of the presentation.

shell("vlc", windowstyle, filename, bSync)

I can't make the windowstyle parameter in the shell statement do anything. (Nor the bSync parameter, but on this occasion it does not concern me.) Andrew Pitonyak (and documentation) says that windowstyle=6 should run the program in a minimised, unfocused window. No value of windowstyle seems to make any difference.

Any suggestions? Is this a bug?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-11-23 00:32:55 +0100

librebel gravatar image

Hello @Pansmanser,

That windowstyle parameter doesn't seem to work for all programs; One suggested way to invoke VLC in minimized mode is to call:

shell("vlc --qt-start-minimized --play-and-exit", 0, ConvertToURL( "/home/user/Music/yoursong.mp3" ), false)
edit flag offensive delete link more


Thanks, librebel. That worked for me.

Pansmanser gravatar imagePansmanser ( 2017-11-23 14:00:39 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-11-22 12:29:07 +0100

Seen: 27 times

Last updated: Dec 05 '17