PDA

View Full Version : connection player - video file


fenomeno83
22nd April 2009, 02:43 PM
hello.
I don't know if this is correct section!
I have a problem!
I want use mortscript to manage my favourite player: TCPMP!

Now I have this problem:
for example I associate avi extention from HKCR\Avifile\shell\open\command key (default), with script(exe connected to mscr script), setting in that key value "my script.exe" "%1" (I understood that %1 represents connection between exe and file on which you click)
In this mscr script I have for example this line
Run("\Programmi\TCPMP\player.exe")

When I click on an avi file(associate with my script.exe), start TCPMP(because start script that runs tcpmp) but video doesn't play!
Maybe because connection point between exe(in this case script that execute tcpmp and NOT TCPMP) and file doesn't work if I use TCPMP running in a script!

Solution is understand path file when I click on file.
In this manner I can use in my script this function
Run("\Programmi\TCPMP\player.exe", path_video_file)

BUT HOW CAN I GET THIS PATH (OR STREAMING LINK) TO PASS IT TO RUN FUNCTION IN MY SCRIPT?
I didn't find any function to do this in mortscript guide
I didn't find also nothing in wm registry!
I did this question in mortscript official forum but noone reply to me!

I hope that there is a easy solution

thanks