Sign in to follow this  
Followers 0
Morrison

Set marked filenames to string

6 posts in this topic

Hi!

I´m trying to create a script for the program Nandub.

I want to mark several Videofiles and with rightklick in menu starting Nandub.

But I dont know how to copy selected file names to string! :)

Can anyone help me?

Share this post


Link to post
Share on other sites



Where are you marking the files ? In Explorer ?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I do not think this will work, but i am not sure

You should create a gui with an edit where you can drop the files.

And a button to start nandub, thats much easier than what you want.

Edited by bluelamp

Share this post


Link to post
Share on other sites

Hmm, k..

Otherwise, I think, the script must run permanently in backround to recognize..

..and file extensions must be registered to script.

I´ll try on :)

thx!

Share this post


Link to post
Share on other sites

You could also use a fileopendialog like this:

Opt("MustDeclareVars",1)

Const $FILTER = "avi (*.avi)"
Dim $files,$splitted

$files = FileOpenDialog("title","",$FILTER)
If @error == 1 Then
    Exit
EndIf

$splitted = StringSplit($files,"|")
If $splitted[0] == 1 Then
    ; path+filename is in $splitted[1]
Else
    For $i=1 To $splitted[0] Step 1
        ; path is in $splitted[1]
        ; filename is in $splitted[$i]
    Next
EndIf

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0