FrancescoDiMuro Posted February 6, 2019 Posted February 6, 2019 @VIP 12 hours ago, imagica said: no dialog please... Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
imagica Posted February 6, 2019 Author Posted February 6, 2019 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..
imagica Posted February 6, 2019 Author Posted February 6, 2019 @FrancescoDiMuro i meant no file open dialog
Trong Posted February 6, 2019 Posted February 6, 2019 (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 February 6, 2019 by VIP Regards,
imagica Posted February 6, 2019 Author Posted February 6, 2019 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now