;---- example to record radio download youtube M3U ----------------- MODIFIED =20080803 v04 CREATED =20080624 NAME101 =TV_RADIO_YOUTUBE_M3U TheseToolsToDownload = http://www.autohotkey.net/~garry/20080801_TV_YOUTUBE.zip ThisScriptToDownload = http://www.autohotkey.net/~garry/20080803_TV_RADIO_YOUTUBE_M3U.ahk ThisScriptAutohotkey = http://www.autohotkey.com/forum/topic27264.html ;--- login to zattoo [2008-B/DK/F/D/N/E/CH/GB] --- mypswrd1=garry12345678 mypswrd2=1234567890 TESTPICT =%A_scriptdir%\test.jpg ;=================================================================================== /* USE = TV VIDEO YOUTUBE MUSIC M3U PHOTO AUDIORECORD PLAYER download youtube ========================================================================================= Description..................... -YOUTUBE watch in GUI when rightclick url (save link) in youtube -YOUTUBE download and keep a logfile (can also download when no more exist) -RECORD record what you hear with mixmp3 -FLV2MP3 -RADIO record with streamripper multiple radio stations -TELEVISION see embedded -SEARCH type in search word and start links -MP3GAIN set level to MP3 LISTVIEW select predefined folder to search from here ( edit /delete / addnew ) can use UP/DOWN arrow (music/photo) -FOTO slide show -VIDEO see with predefined size and black background -MUSIC M3UPlayer sorted by date ========================================================================================= audio control works with XP Vista Audio Control............. http://www.autohotkey.com/forum/viewtopic.php?t=23792& needs.......................... = lbbrowse3.dll ................................ http://www.alycesrestaurant.com/lbbrowse.htm ................................ http://www.alycesrestaurant.com/zips/browsdll3.zip Streamripper ................... http://sourceforge.net/projects/streamripper streamripper.exe & tre.dll records radio found in shoutcast audio level meter .............. meterh.exe ................................ http://www.darkwood.demon.co.uk/PC/meter.html MIXMP3 ........................ http://ldb.tpv.ru/ ................................ MIXMP3.exe & mp3enc.dll record audio to MP3 MPLAYERC.exe ................... http://www.codecguide.com/download_mega.htm MP3GAIN.exe 1.2.5 .............. http://mp3gain.sourceforge.net/ OCTOSHAPE ...................... http://www.octoshape.com/files/octosetup_v_l_odd.exe http://www.octoshape.com/play/play.asp?lang=de (to see some video/radio like= TV http://127.0.0.1:6498/ms2/1213987018765/0MediaPlayer+0+/octoshape+h+RTP.400/RTP400?MSWMExt=.asf radio http://www.rtvslo.si/;http://127.0.0.1:6498/ms2/1217572603847/0MediaPlayer+0+/octoshape+h+RTVSLO.Koper/RTVSLOKoper?MSWMExt=.asf FLV2MP3 ....................... http://www.dvdvideosoft.com/download/FreeVideoToMp3Converter.exe http://www.dvdvideosoft.com ..................................................................................................... diverse links .......... http://www.muvibee.com plays 50 videos and downloads to mozillacache ........................ http://www.dvdvideosoft.com/guides/dvd/extract-audio-from-video-to-mp3.htm ........................ http://www.dvdvideosoft.com/free-dvd-video-software.htm ........................ http://www.songza.com .............. Free Video to MP3 Converter ........................................................... http://www.dvdvideosoft.com/download/FreeVideoToMp3Converter.exe http://www.dvdvideosoft.com/products/dvd/Free-Video-to-MP3-Converter.htm Use Free Video to MP3 Converter to extract audio from video files (*.avi, *mpg, *.mpg, *.mp4, *.m4v, *.mpeg, *.dvr-ms, *.wmv, *.asf, *.mov, *.qt, *.3gp, *.3g2 and *.flv) and save it as MP3 There are 3 pre-configured presets: - High Quality (MP3, 256kbps, 48000Hz, STEREO); - Standard Quality (MP3, 128kbps, 44100Hz, STEREO); - Economy Quality (MP3, 96kbps, 22050Hz, STEREO). and TRIM video ........................................................................................................ Zattoo about: http://zattoo.com/de/help 200808 -receive TV channels in followed countries: B/DK/F/D/N/E/CH/GB ------------------------------------------------------------------------ PROBLEMS: some problems with command=[Gui,add,picture] when using dllbrowse only used for colored buttons (need command twice) photo slide show better with irfanview don't know why soundplay not works with mp3/wav on different computers mplayerc.exe installed for windows mediaplayer (for me ok) to record audio level XP: ;--- see stereo mix slider ----------- ;--- analog:8 or analog:9 ----------- audio control works with XP Vista Audio Control.........: http://www.autohotkey.com/forum/viewtopic.php?t=23792& ------------------------------------------------------------------------ */ ;=================================================================================== ;-------------------------------------------- #NoEnv setworkingdir, %a_scriptdir% SetBatchLines -1 settitlematchmode,2 ;DetectHiddenText,on Detecthiddenwindows,on ;SetKeyDelay, 100 SetFormat Float, 0.0 transform,S,chr,32 transform,ten,chr,10 transform,tre,chr,13 CF=%TRE%%TEN% ifnotexist,lbbrowse3.dll goto,LBBROWSE3 R3Ya=Links_YOUTUBE.txt R3Y =%A_scriptdir%\%R3Ya% R3Wa=Youtube_Logfile.txt R3W =%A_scriptdir%\%R3Wa% R3Ra=Links_RADIO.txt R3R =%A_scriptdir%\%R3Ra% R3Ta=Links_Television.txt R3T =%A_scriptdir%\%R3Ta% R3Sa=Links_SEARCH.txt R3S =%A_scriptdir%\%R3Sa% R3Za=TV_links_BeeLineTV.txt R3Z =%A_scriptdir%\%R3Za% MPL =%A_programfiles%\K-Lite Codec Pack\Media Player Classic\mplayerc.exe VLC =%A_programfiles%\VideoLAN\VLC\vlc.exe STREAMRIPPER =%A_ScriptDir%\streamripper\streamripper.exe GAIN =%A_ScriptDir%\MP3GAIN\mp3gain.exe FLV2MP3 =%A_programfiles%\DVDVideoSoft\Free Video to Mp3 Converter\FreeVideoToMP3Converter.exe REC =c:\_RECORDED1 ;---- <<< place for recorded music GAINFOLDER =c:\_MP3GAIN ;---- <<< MP3GAINFOLDER GRAY =%A_scriptdir%\dgray.bmp run,%COMSPEC% /C if not exist \%REC%\NUL MD %REC%,,hide run,%COMSPEC% /C if not exist \%GAINFOLDER%\NUL MD %GAINFOLDER%,,hide MX3 =%A_scriptdir%\mixmp3.exe RSSINI=%A_scriptdir%\RSSINI.txt ;-------- menu ---------------------------------------------- ;--------------- SETTINGS ------------------ menu ,S1 ,Add,&Set a predefined Folder MUSIC [Search from here],MH1 menu ,S1 ,Add,&Set a predefined Folder VIDEO [Search from here],MH1TV menu ,S1 ,Add,&Set a predefined Folder PHOTO [Search from here],MH1PHOTO menu ,S1 ,Add,&TV BeeLine Update ,UpdateBeeLineTV menu ,S1 ,Add,&How to use ,MH2 ;------------ Select Folder --------------------- menu ,S2 ,Add,&Select Music Folder ,MS1MUS menu ,S2 ,Add,&Select Video Folder ,MS1VID menu ,S2 ,Add,&Select PHOTO Folder ,MS1PHOTO menu ,S2 ,Add,&Create M3U ,MFM3U ;-------------- TOOLS --------------------------- Menu,S3,add,BLANK ,MH3 Menu,S3,add,SCREEN ,MH3 Menu,S3,add,LEVELMETER ,MH3 Menu,S3,add,RECORDMP3 ,MH3 Menu,S3,add,LBBROWSE3 ,MH3 Menu,S3,add,MPLAYERC ,MH3 Menu,S3,add,OCTOSHAPE ,MH3 Menu,S3,add,FLV2MP3 DOWNLOAD ,MH3 Menu,S3,add,VIDEOCONVERTER ,MH3 Menu,S3,add,ZATTOO TV ,MH3 ;------------ SELECT ----------------------- menu, S4, add,RADIO ,MH4 menu, S4, add,TELEVISION ,MH4 menu, S4, add,BeeLineTV ,MH4 menu, S4, add,YOUTUBE ,MH4 menu, S4, add,YOUTUBE_LOG ,MH4 menu, S4, add,YOUTUBE_RECORDED ,MH4 menu, S4, add,MP3_RECORDED ,MH4 menu, S4, add,SEARCHLINKS ,MH4 menu, S4, add,_MUSIC ,MH4 menu, S4, add,_VIDEO ,MH4 menu, S4, add,_PHOTO ,MH4 menu, S4, add,See last version ,MH4 ;-------- EXAMPLES ---------------------------- Menu, S5, add,MAP1 ,MH5 Menu, S5, add,RADIO DANMARK ,MH5 Menu, S5, add,YOUTUBE1 ,MH5 Menu, S5, add,MUSIC_GROOVESHARK ,MH5 Menu, S5, add,MUSIC_ESNIPS ,MH5 Menu, S5, add,MUSIC_MUNCH ,MH5 Menu, S5, add,VIDEO1 ,MH5 Menu, S5, add,GMANEWS ,MH5 Menu, S5, add,SHORTFILM ,MH5 Menu, S5, add,PHOTO1 ,MH5 Menu, S5, add,TELEVISION1 ,MH5 menu, myMenuBar, Add, SELECT ,:S4 menu, myMenuBar, Add, Settings ,:S1 menu, myMenuBar, Add, Select Folder ,:S2 menu, myMenuBar, Add, TOOLS ,:S3 menu, myMenuBar, Add, EXAMPLES ,:S5 gui,2:menu,MyMenuBar ;---------------------------------------------------- ;------------- VOLUME works with XP ------------------------------ SM1:=7 ;record Stereo Mix SM3:=100 ;volume SM4:=80 ;wave SM5:=2 ;gainvolume soundset,0,master,mute ;SPEAKER=MASTER ON SoundSet,%SM3%,master ;SPEAKER=MASTER volume soundset,0,WAVE,mute ; WAVE EIN SoundSet,%SM4%,WAVE ; WAVE ;--- see stereo mix slider ----------- ;--- analog:8 or analog:9 ----------- soundset, 0,ANALOG:9,mute ;activate doesn`t work SoundSet,%SM1%,ANALOG:9 ;Stereo Mix recording work ;--------------------------------------------------------------- WA=%A_screenwidth% HA=%A_screenheight% X10 :=(WA*1 )/100 X11 :=(WA*4 )/100 X12 :=(WA*7 )/100 X13 :=(WA*9 )/100 X14 :=(WA*12 )/100 X15 :=(WA*14 )/100 X16 :=(WA*16 )/100 X17 :=(WA*18 )/100 X18 :=(WA*20 )/100 X19 :=(WA*22 )/100 X20 :=(WA*24 )/100 X21 :=(WA*26 )/100 X22 :=(WA*28 )/100 X23 :=(WA*30 )/100 X24 :=(WA*32 )/100 X25 :=(WA*34 )/100 X26 :=(WA*36 )/100 X27 :=(WA*38 )/100 X28 :=(WA*40 )/100 X29 :=(WA*42 )/100 X30 :=(WA*44 )/100 X31 :=(WA*46 )/100 X32 :=(WA*48 )/100 X33 :=(WA*50 )/100 X34 :=(WA*52 )/100 X35 :=(WA*54 )/100 X36 :=(WA*56 )/100 X37 :=(WA*58 )/100 X38 :=(WA*60 )/100 X39 :=(WA*62 )/100 X40 :=(WA*64 )/100 X41 :=(WA*66 )/100 X42 :=(WA*68 )/100 X43 :=(WA*70 )/100 X43a:=(WA*70.8)/100 X44 :=(WA*72 )/100 X45 :=(WA*74 )/100 X45a:=(WA*74.8 )/100 X46 :=(WA*76 )/100 X47 :=(WA*78 )/100 X47a:=(WA*78.8 )/100 X48 :=(WA*80 )/100 X48a:=(WA*80.8)/100 X49 :=(WA*82 )/100 X50 :=(WA*84 )/100 X50a:=(WA*84.8 )/100 X51 :=(WA*86 )/100 X52 :=(WA*88 )/100 X53 :=(WA*90 )/100 X53a:=(WA*90.8)/100 X54 :=(WA*92 )/100 X55 :=(WA*94 )/100 X55a:=(WA*94.8)/100 X56 :=(WA*96 )/100 Y10 :=(HA*1 )/100 Y11 :=(HA*4 )/100 Y12 :=(HA*7 )/100 Y13 :=(HA*9 )/100 Y14 :=(HA*12 )/100 Y15 :=(HA*15 )/100 Y16 :=(HA*18 )/100 Y17 :=(HA*21 )/100 Y18 :=(HA*24 )/100 Y19 :=(HA*27 )/100 Y19a:=(HA*29.2)/100 Y20 :=(HA*30 )/100 Y21 :=(HA*33 )/100 Y22 :=(HA*36 )/100 Y23 :=(HA*39 )/100 Y24 :=(HA*42 )/100 Y25 :=(HA*45 )/100 Y26 :=(HA*48 )/100 Y27 :=(HA*51 )/100 Y28 :=(HA*54 )/100 Y29 :=(HA*57 )/100 Y30 :=(HA*60 )/100 Y31 :=(HA*63 )/100 Y32 :=(HA*66 )/100 Y33 :=(HA*69 )/100 Y34 :=(HA*72 )/100 Y35 :=(HA*75 )/100 Y36 :=(HA*78 )/100 Y37 :=(HA*81 )/100 Y38 :=(HA*84 )/100 Y39 :=(HA*87 )/100 Y40 :=(HA*90 )/100 Y41 :=(HA*90.5 )/100 W07 :=(WA*2 )/100 W08 :=(WA*3 )/100 W09 :=(WA*4 )/100 W10 :=(WA*5 )/100 W11 :=(WA*6 )/100 W12 :=(WA*7 )/100 W13 :=(WA*8 )/100 W14 :=(WA*9 )/100 W15 :=(WA*10 )/100 W16 :=(WA*11 )/100 W17 :=(WA*12 )/100 W18 :=(WA*13 )/100 W19 :=(WA*14 )/100 W20 :=(WA*15 )/100 W31 :=(WA*32 )/100 ;groupbox width W32 :=(WA*35 )/100 ;YouTube edit width WGS:=(WA*99 )/100 ;GUI WIDTH HGS:=(HA*92.7)/100 ;GUI HEIGHT H10:=(HA*1.6)/100 H11:=(HA*2 )/100 H31:=(HA*23 )/100 ;groupbox height T1:=(X25) ;NAME T2:=(X14) ;LINK T3:=(0) ;STREAM T4:=(X11) ;RECORD T1A:=T1 T2A:=T1+T2 T3A:=T1+T2+T3 T4A:=T1+T2+T3+T4 T9A:=T1+T2+T3+T4+20 T9B:=T1+T2+T3+T4+50 Gui,2:Color,black Gui,2:Font, S10 CDefault , Lucida Console ;-------------- UP RIGHT CORNER ---------- Gui,2: Add, Picture, gCLEARHTML x%X55% y%Y10% w%W09% h%H10% ,%GRAY% Gui,2: Add, Text , x%X55% y%Y10% w%W09% h%H10% cWhite center BackgroundTrans,CLEAR Gui,2: Add, Text , x%X55% y%Y10% w%W09% h%H10% cWhite center BackgroundTrans,CLEAR ;Gui,2: Add, Picture, gTEST31 x%X55% y%Y11% w%W09% h%H10% ,%GRAY% ;Gui,2: Add, Text , x%X55% y%Y11% w%W09% h%H10% cWhite center BackgroundTrans,TEST31 ;--------- LAST LINE ------------------------------------------------------------------------------------------------ AAX1=Jim Reeves Gui,2:Add,Edit, x%X10% y%Y40% w%W19% h%H11% vSRCH1,%AAX1% ;AAX1 for test EDIT1 SEARCH LVSRCHX:=(X16) LVSRCHY:=(Y40) LVSRCHW:=(W10) LVSRCHH:=(H11) SHOWALLX:=(X19) SHOWALLY:=(Y40) SHOWALLW:=(W10) SHOWALLH:=(H11) Gui,2: Add, Picture, gSEARCH x%LVSRCHX% y%LVSRCHY% w%LVSRCHW% h%LVSRCHH% vSEARCH5,%GRAY% Gui,2: Add, Text , x%LVSRCHX% y%LVSRCHY% w%LVSRCHW% h%LVSRCHH% cWhite center BackgroundTrans,> R3XX=%R3Z% gosub,Filllistpath2 ;============>> lbbHandle := DllCall("LoadLibrary", "str", "lbbrowse3.dll") WinGet, mainGuiHandle, ID, A AS2=about:blank DLLCall("lbbrowse3\CreateBrowser","uint",mainGuiHandle,"Int",X2,"Int",Y2,"Int",W2,"Int",H2,"Str",AS2,"Int",1) DllCall("lbbrowse3\ShowStatusbar","int",0) DllCall("lbbrowse3\EnableBrowser","int",1) ;DllCall("lbbrowse3\ShowBrowser","int",0) OnExit, Cleanup gosub,picture1 ;============>> gosub,DDDD settimer,DDDD,1000 ;means goto start return ;================================== END GUISHOW ============================================================== ;================= SETTIMER ===================================================== DDDD: Gui,2:submit,nohide ;http://www.youtube.com/watch?v=eE5zyehpYs8&feature=related ;http://www.youtube.com/watch?v=eE5zyehpYs8 URL11=%clipboard% stringmid,URL11,URL11,1,60 ; not to much letters if URL11 contains watch?v= goto,start2 return ;--------------------------- START2: GuiControl,2:Text,EditYoutube,%URL11% clipboard= settimer,DDDD,off gosub,playyoutube settimer,DDDD,ON Gui,2: Show,max return ;==================================================================================== YOUTUBE: ;run,http://wwww.youtube.com GuiControlGet, SRCH1 stringreplace,SRCH1,SRCH1,%S%,`%20,all run,http://www.youtube.com/results?search_query=%SRCH1%&search=Search return ;==================================================================================== FOLDERREC: run,%REC% return ;==================================================================================== ;-------------------------- FLV2MP3 --------------------------------- FLV2MP3REC: gui,2:submit,nohide ifnotexist,%FLV2MP3% { msgbox,262144,,Download VideoToMp3Converter`r`nhttp://www.dvdvideosoft.com/download/FreeVideoToMp3Converter.exe return } if (RF="" OR RF=0) { msgbox,262144,,Select a row return } ifexist,%C3% { SplitPath,C3, name, dir, ext, name_no_ext, drive if ext=mp3 { msgbox, Don't record an mp3 file return } sleep,100 run,%FLV2MP3% winwaitactive,ahk_class TfrmMain,,5 if ErrorLevel { MsgBox, WinWait for %FLV2MP3% TfrmMain is timed out. return } else { send,%C3% return } return } return ;------------------ END FLV2MP3 ----------------------------------------------- LOGINZATTOO: Gui,2:submit,nohide run,%A_programfiles%\Zattoo\Zattoo.exe moz=Login WinWaitActive, %moz%,,15 sleep,1000 send,%mypswrd1% sleep,500 send,{TAB} send,%mypswrd2% send,{TAB} send,{ENTER} return ;====================== TOOLS ================================================= MH3: GuiControl,2:Text,AL1,%nothing% if A_thisMenuItem=BLANK goto,CLEARHTML if A_thisMenuItem=SCREEN goto,SCREEN1 if A_thisMenuItem=LEVELMETER goto,LEVELMETER if A_thisMenuItem=RECORDMP3 goto,RECORDMP3 if A_thisMenuItem=LBBROWSE3 goto,BROWSE3 if A_thisMenuItem=MPLAYERC goto,MPLAYERC1 if A_thisMenuItem=OCTOSHAPE goto,OCTOSHAPE1 if A_thisMenuItem=FLV2MP3 DOWNLOAD goto,FLV2MP31 if A_thisMenuItem=VIDEOCONVERTER goto,VIDEOCONVERTER if A_thisMenuItem=ZATTOO TV goto,ZATTOO1 return MPLAYERC1: run,http://www.codecguide.com/download_mega.htm return SCREEN1: run,c:\windows\system32\Desk.cpl return LEVELMETER: run,http://www.darkwood.demon.co.uk/PC/meter.html return RECORDMP3: run,http://ldb.tpv.ru/ return BROWSE3: run,http://www.alycesrestaurant.com/lbbrowse.htm return OCTOSHAPE1: run,http://www.octoshape.com/play/play.asp ;run,http://www.octoshape.com/ return FLV2MP31: run,http://www.dvdvideosoft.com/download/FreeVideoToMp3Converter.exe return VIDEOCONVERTER: ;run,http://www.dvdvideosoft.com/products/dvd/Free-Video-to-MP3-Converter.htm run,http://www.dvdvideosoft.com return ZATTOO1: run,http://zattoo.com/ return ;-------------------------------------------------------------------------------- ;=========================================================================================== RECVOLUME: run,sndvol32 /rec return ;----------------- WAVEVOLUME: run,sndvol32 return ;----------------- ;--- see stereo mix slider ----------- ;--- analog:8 or analog:9 ----------- SliderRel: Gui,2:Submit, NoHide SoundSet,%slider%,Analog:9 GuiControl,2:, EditText3, %Slider% Return Edit3: Gui,2:Submit, Nohide GuiControl,2:, Slider, %EditText3% Return ;---------------------------------------- VolumeX: Gui,2:Submit, NoHide SoundSet,%volume%,WAVE GuiControl,2:, EditText4,%volume% Return Edit4: Gui,2:Submit, Nohide GuiControl,2:,volume,%EditText4% Return ;----------------------------------------- ;---------------------------------------- Gain1X: Gui,2: Submit, NoHide GuiControl,2:, EditText2,%GAIN1% Return Edit2: Gui,2: Submit, Nohide GuiControl,2:,GAIN1,%EditText2% Return ;---------------------------------------- ;=================================================================================================== ;---------------------------------------------------------------- GAINEXE: ifexist,%GAIN% { Loop,%GAINFOLDER%\*.* SPN=%A_LoopFileShortPath% stringlen,LenLine,SPN StringGetPos,C,SPN,\,R1 ;sucht ersten \ von rechts stringmid,SRQN,SPN,1,C if C=-1 { msgbox,Folder %GAINFOLDER% >> is empty return } runwait,%COMSPEC% /K mp3gain\mp3gain.exe /d%GAIN1% /r %SRQN%\*.MP3 return } else { msgbox,mp3gain.exe 1.2.5 is missing,download from http://mp3gain.sourceforge.net/ return } return ;-------------------------------------------------------------------------------------- RECORDSTREAMRIPPER: ifexist,%Streamripper% run,%COMSPEC% /K streamripper\streamripper.exe %C3% --xs_padding=5000:5000 -t -d "%REC%" ;run,%COMSPEC% /K streamripper\streamripper.exe %C3% -a -A -T -c -t -d "%REC%" return ;------------------------------------------------------------------------------------------ BLANK: AX1=about:blank DllCall("lbbrowse3\Navigate", "str",AX1) return ;-------------------------------------------------------------------------0 CLEARHTML: SDL=1 process,close,%PIDX% GuiControl,2:Text,AL1, soundplay,notexisted.mp3 ;stop playing if (RXX="MUSIC" OR RXX="PHOTO") { GuiControl,2:Enable,PLAY5 Gui,2: Add, Text , x%PLAYX% y%PLAYY% w%PLAYW% h%PLAYH% cWhite center BackgroundTrans, ) gosub,skip2 DLLCall("lbbrowse3\MoveBrowser","Int",X2,"Int",Y2,"Int",W2,"Int",H2) DllCall("lbbrowse3\Navigate", "str",M3) return ;================================================================================ BACKGROUND1: ;---- size from background-screen ------------------ X2 :=(X15) Y2 :=(Y10) W2 :=(WA*58)/100 ;width H2 :=(HA*51)/100 ;height ;----- size from television inside background ------- W3 :=(WA*57)/100 ;width H3 :=(HA*45)/100 ;height ;-------------------------------------- return BACKGROUND2: ;---- size from background-screen ------------------ X2 :=(X10) Y2 :=(Y10) H2 :=(HA*51)/100 ;height W2 :=(WA*95)/100 ;height ;----- size from inside background ------- W3 :=(W2) H3 :=(H2) return ;========================= SELECT ============================== MH4: if A_thisMenuItem=_MUSIC { R3XX=MUSIC goto,crealistviewmusic } if A_thisMenuItem=_VIDEO { R3XX=VIDEO goto,crealistviewVideo } if A_thisMenuItem=_PHOTO { R3XX=PHOTO goto,crealistviewPHOTO } if A_thisMenuItem=Radio { R3XX=%R3R% goto,Filllistpath2 } if A_thisMenuItem=Youtube { R3XX=%R3Y% goto,Filllistpath2 } if A_thisMenuItem=Youtube_LOG { R3XX=%R3W% goto,Filllistpath2 } if A_thisMenuItem=YOUTUBE_RECORDED { R3XX=%REC% goto,crealistviewYoutube } if A_thisMenuItem=MP3_RECORDED { R3XX=%REC% goto,crealistviewMP3REC } if A_thisMenuItem=Television { R3XX=%R3T% goto,Filllistpath2 } if A_thisMenuItem=SearchLinks { R3XX=%R3S% goto,Filllistpath2 } if A_thisMenuItem=BeeLineTV { R3XX=%R3Z% goto,Filllistpath2 } if A_thisMenuItem=See last version { run,%ThisScriptAutohotkey% return } return ;-------------------------------------------------------------------------- ;====================== EXAMPLES ================================================= MH5: GuiControl,2:Text,AL1,%nothing% if A_thisMenuItem=MAP1 goto,ATT101 if A_thisMenuItem=RADIO DANMARK goto,ATT102 if A_thisMenuItem=YOUTUBE1 goto,ATT103 if A_thisMenuItem=MUSIC_GROOVESHARK goto,ATT104 if A_thisMenuItem=VIDEO1 goto,ATT105 if A_thisMenuItem=MUSIC_ESNIPS goto,ATT106 if A_thisMenuItem=GMANEWS goto,ATT107 if A_thisMenuItem=SHORTFILM goto,ATT108 if A_thisMenuItem=PHOTO1 goto,ATT109 if A_thisMenuItem=TELEVISION1 goto,TELEVISION2 if A_thisMenuItem=MUSIC_MUNCH goto,ATT110 return ;================================================================================ ;--------------- example MAP --------------- ATT101: GuiControl,2:Text,AL1, gosub,BACKGROUND2 aa4= (
Größere Kartenansicht ) gosub,skip2 DLLCall("lbbrowse3\MoveBrowser","Int",X2,"Int",Y2,"Int",W2,"Int",H2) DllCall("lbbrowse3\Navigate", "str",M3) return ;================================================================================ ;-------- listen to Danmarks Radio evergreen --------------------------- ATT102: GuiControl,2:Text,AL1, AX1=http://netradio.dr.dk/content.asp?station=29&# gosub,BACKGROUND1 ;H2 :=(HA*51)/100 ;height H2 :=(HA*29)/100 ;height DLLCall("lbbrowse3\MoveBrowser","Int",X2,"Int",Y2,"Int",W2,"Int",H2) DllCall("lbbrowse3\Navigate", "str",AX1) return ;================================================================================ ;------------------ youtube example ---------------------------- ATT103: GuiControl,2:Text,AL1, gosub,BACKGROUND1 C3=http://www.youtube.com/watch?v=82ZuxWbO8QY stringreplace,C3,C3,/watch?v=,/v/,all aa4= ( ) gosub,skip2 DLLCall("lbbrowse3\MoveBrowser","Int",X2,"Int",Y2,"Int",W2,"Int",H2) DllCall("lbbrowse3\Navigate", "str",M3) return ;----------------------------- MUSIC GROOVESHARK ------------------- ATT104: GuiControl,2:Text,AL1, AX1=http://listen.grooveshark.com/index.php?searchQuery=distant+drums gosub,BACKGROUND2 DLLCall("lbbrowse3\MoveBrowser","Int",X2,"Int",Y2,"Int",W2,"Int",H2) DllCall("lbbrowse3\Navigate", "str",AX1) return ;-------------- example PLAY VIDEO FLV ----------------------- ATT105: GuiControl,2:Text,AL1, name1=aquela janela virada pro mar C3=file:///c:\_recording\aquela janela virada pro mar.flv W3:=(W2) H3:=(H2) goto,skip1 return ;-------- MUSIC ESNIPS --------------------------- ATT106: GuiControl,2:Text,AL1, AX1=http://www.esnips.com/_t_/`%22jim+reeves`%22?to=120&gen=Any+Gender&t=1&sort=0&cnt=Any+Country&uf=0&page=1&st=4&from=13&pp=10&q=`%22jim+reeves`%22 ;AX1=http://www.tvchannelsfree.com/watch/4643/Ehrensenf---Comedy-TV.html gosub,BACKGROUND2 DLLCall("lbbrowse3\MoveBrowser","Int",X2,"Int",Y2,"Int",W2,"Int",H2) DllCall("lbbrowse3\Navigate", "str",AX1) return ;================================================================================ ;--------------- GMANEWS --------------- ATT107: GuiControl,2:Text,AL1, gosub,BACKGROUND1 C1=http://www.gmanews.tv/evideo/24831/Saksi--GMA-reporter-films-recovery-effort-on-'Princess' aa4= (