Saturday, December 29, 2012

Start playing a Song from a full Movie file from the time you want to....

Do you have Full movie file, but want to just play the video songs in it just from specific time by a simple shortcut ???
Here is the solution:
Simple Autohotkey Script to Start playing a Song from a full Movie file:

Step1: First download & install Autohotkey (just 2Mb simple program) from the below link. 
(Autohotkey is a very famous simple tool to automate ur work in windows.)

Step2: Save the below script as a 4_Google_Google.ahk file then open the 4_Google_Google.ahk file. 
The VLC Player will start playing the file from 01:30:41(hh:mm:ss) & will pause at 01:36:56(hh:mm:ss) to play you google google panni parthen song from the thuppaki_2012.mkv. 
Like this you can create simple shortcuts to the songs, rather than editing the full movie file !!!
You can edit the first three lines of the script to adjust according to your need.

Script begins.
;*********************************************************************************
begintime=01:30:41
endtime  =01:36:56
F1="F:\Movies\Thuppakki (2012)-DVDRip\Thuppakki_2012.mkv"

setworkingdir, %a_scriptdir%
VLC         =%A_programfiles%\VideoLAN\VLC\vlc.exe
gosub,timecalc
INPUT   =--qt-start-minimized --play-and-pause --height=500 --width=700 --input-repeat=0 --start-time %begin% --stop-time %end% %F1%
run,%VLC% %INPUT%
return

timecalc:
 stringsplit,b,begintime,`:
 hours  :=(b1*60*60)
 minutes:=(b2*60)
 seconds:=(b3)
 begin  :=(hours+minutes+seconds)
 ;--
 stringsplit,e,endtime,`:
 hours2  :=(e1*60*60)
 minutes2:=(e2*60)
 seconds2:=(e3)
 end     :=(hours2+minutes2+seconds2)
return
;*********************************************************************************
Read more if you are interested on this topic:
http://www.autohotkey.com/board/topic/88149-play-a-offline-video-at-a-specific-timeline-in-a-offline-video-player/

Know more about AutoHotKey from the below link.

No comments:

Post a Comment