Jump to content

Recommended Posts

Posted

Thanks to VIP and everybody but my guess was right, in the end it was that simple:

#include <Array.au3>

global $vlc="c:\vlc\vlc.exe"
global $media="c:\vlc\"
global $params="--loop --fullscreen --video-on-top"
global $filelist

 For $i = 1 To $CmdLine[0]
  $filelist&= $media & $CmdLine[$i] & " "
Next

ShellExecute($vlc, $filelist & $params)

The command is executed remotely via ssh, that's why i can't  use drag and drop, no fileopen dialog and so on... and i thought my initial question was clear but maybe not... 

Thanks again all for your help.. :)

 

Posted (edited)
3 hours ago, FrancescoDiMuro said:

no dialog please...

 

I say drag and drop, but it works with every situation! Both version No windows and GUI!

 

 

1 hour ago, imagica said:

Thanks to VIP and everybody but my guess was right, in the end it was that simple:

#include <Array.au3>

global $vlc="c:\vlc\vlc.exe"
global $media="c:\vlc\"
global $params="--loop --fullscreen --video-on-top"
global $filelist

 For $i = 1 To $CmdLine[0]
  $filelist&= $media & $CmdLine[$i] & " "
Next

ShellExecute($vlc, $filelist & $params)

The command is executed remotely via ssh, that's why i can't  use drag and drop, no fileopen dialog and so on... and i thought my initial question was clear but maybe not... 

Thanks again all for your help.. :)

 

BAD CODE, but good for you :)

Edited by VIP

Regards,
 

Posted

thank you VIP, i will keep your code, it helps me to learn for other projects 

and yes, maybe its bad code but i just started yesterday coding with autoit... so i have to learn a  lot... ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...