Page 2 of 2

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

Posted: 29 Sep 2009 08:47
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 " ";

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

Posted: 29 Sep 2009 17:13
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";