Is there a way to link an MP3 file to a JPG file ??

Discuss and share scripts and script files...
admin
Site Admin
Posts: 66083
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Is there a way to link an MP3 file to a JPG file ??

Post by admin »

serendipity wrote:@Don: Why doesn't this work?

Code: Select all

    focus;
    sendkeys "{space}";
There is no "{space}". :P Try this:

Code: Select all

    focus;
    sendkeys " ";

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Is there a way to link an MP3 file to a JPG file ??

Post by serendipity »

admin wrote:There is no "{space}". :P Try this:

Code: Select all

    focus;
    sendkeys " ";
:lol: , damn i should have known that.

@Panflute: Try this script:

Code: Select all

//1) Focus List
    focus;

//2) Set JPG folder path. Change only <curpath>\jpg
    $jpgfile="<curpath>\jpg\*<curbase>*.jpg";
//Note: Since the <curbase> has * on both sides above, the first .jpg file resembling the selected .mp3 file will be opened. Safest would be to remove both *s from <curbase> and rename your jpgs to match exactly with mp3s.

//3) Send "space" to XY. will start to play the selected file
    sendkeys " ";

//4) Open the corresponding JPG file with IrfanView
    run """C:\Program Files\IrfanView\i_view32.exe"" $jpgfile";

Post Reply