0 Members and 1 Guest are viewing this topic.
Aimp = load( "Apps\Aimp\Aimp.dll" )Aimp_Always = Group( Enabled ){ OnGroupEnable(){ WinMon.StartPreset(Aimp) } Aimp_Start = Hook( "AUDIO", "Aimp", Enabled, Break ){ h = WinMon.ActionPreset( Aimp ) Skip1(h<>0) e = ExecFile( "C:\Program Files\Мультимедиа\Aimp2\Aimp2.exe" ) GroupEnable(Aimp) } Aimp_Create = Hook( "WINMON", "Aimp_CREATE", Enabled ){ GroupEnable( Aimp ) } Aimp_Activate = Hook( "WINMON", "Aimp_ACTIVATE", Enabled ){ GroupEnable( Aimp ) } Aimp_Close = Hook( "WINMON", "Aimp_CLOSE", Enabled ){ GroupDisable( Aimp ) } MediaDisable = Hook( "MMEDIA", "DISABLE", Enabled ){ Break( MediaDisable = 101 ) GroupDisable( Aimp ) }}#===========================================================Aimp = Group( Disabled ){ OnGroupDisable(){ } OnGroupEnable(){ GroupEnable( RemoteTrack2 ) OOSD("AIMP", "P^Image\Apps\aimp.bmp#") } PowerRemote = Hook( "REMOTE", "POWER", Enabled, Break ){ Break( PowerRemote <> 0 ) Aimp("QUIT") GroupDisable( Aimp ) } OpenRemote = Hook( "REMOTE", "Open", Enabled, Break ){ Break( OpenRemote <> 0 ) Aimp("SLEEP_TIMER") } FOpenRemote = Hook( "REMOTE", "FOpen", Enabled, Break ){ Break( FOpenRemote <> 0 ) Aimp("ADD_DIR") } PlayRemote = Hook( "REMOTE", "PLAY", Enabled, Break ){ Break( PlayRemote <> 0 ) Aimp("PLAY") OOSD.ActionPreset(Play) } PauseRemote = Hook( "REMOTE", "PAUSE", Enabled, Break ){ Break( PauseRemote <> 0 ) Aimp("PAUSE") OOSD.ActionPreset(Pause) } StopRemote = Hook( "REMOTE", "STOP", Enabled, Break ){ Break( StopRemote <> 0 ) AIMP("STOP") OOSD.ActionPreset( Stop ) } NextRemote = Hook( "REMOTE", "NEXT", Enabled, Break ){ Break( NextRemote <> 0 ) Aimp( "NEXT" ) OOSD( "Next","Следующий" ) } PrevRemote = Hook( "REMOTE", "PREV", Enabled, Break ){ Break( PrevRemote <> 0 ) Aimp( "PREV" ) OOSD("Prev","Предыдущий") } FfRemote = Hook( "REMOTE", "Ff", Enabled, Break ){ Break( FfRemote < 0 ) Aimp( "FF", 20 ) OOSD( "Ff","" ) } RevRemote = Hook( "REMOTE", "Rev", Enabled, Break ){ Break( RevRemote < 0 ) Aimp( "REW", 20 ) OOSD("Rev","") } MinRemote = Hook( "REMOTE", "l/r", Enabled, Break ){ Break( MinRemote <> 0 ) Aimp( "TO_TRAY" ) } Showremote = Hook( "REMOTE", "OSD", Enabled, Break ){ Break( ShowRemote <> 0 ) Aimp( "SHOW_CURFILE" ) } MuteRemote = Hook( "REMOTE", "Mute", Enabled, Break ){ Break( MuteRemote <> 0 ) Aimp( "TOGGLE_MUTE" ) } RepeatRemote = Hook( "REMOTE", "Repeat", Enabled, Break ){ Break( RepeatRemote <> 0 ) Aimp("TOGGLE_REPEAT") } ShuffleRemote = Hook( "REMOTE", "Random", Enabled, Break ){ Break( ShuffleRemote <> 0 ) Aimp("TOGGLE_SHUFFLE") } VolDRemote = Hook( "REMOTE", "-", Enabled, Break ){ Break( VolDRemote < 0 ) OOSD( "", "P^Image\VolDown.bmp#" ) Aimp("VOLUMEDOWN") } VolURemote = Hook( "REMOTE", "+", Enabled, Break ){ Break( VolURemote < 0 ) OOSD( "", "P^Image\VolUp.bmp#" ) Aimp("VOLUMEUP") } AotRemote = Hook( "REMOTE", "Digest", Enabled, Break ){ Break( AotRemote < 0 ) Aimp("TOGGLE_AOT") } EqRemote = Hook( "REMOTE", "PBC", Enabled, Break ){ Break( EqRemote < 0 ) Aimp("TOGGLE_EQ") } SearchRemote = Hook( "REMOTE", "Goto", Enabled, Break ){ Break( SearchRemote <> 0 ) Aimp("SEARCH") } QRemote = Hook( "REMOTE", "Resume", Enabled, Break ){ Break( qRemote <> 0 ) Aimp("SET_EQ_SLDR", 0, 0) } TitleRemote = Hook( "REMOTE", "Title", Enabled, Break ){ Break( TitleRemote <> 0 ) Aimp("GET_TITLE_EVENT") #writelog("%s - %s %s", @1, @2, @3) } AddBmRemote = Hook( "REMOTE", "STEP", Enabled, Break ){ Break( AddBmRemote <> 0 ) Aimp("ADD2BOOKMARK") } OffCurTrackRemote = Hook( "REMOTE", "slow", Enabled, Break ){ Break( OffCurTrackRemote <> 0 ) Aimp("OFF_SELECTED") OOSD("Выключить трек", "P^Image\Apps\aimp.bmp#") }}RemoteTrack2 = Group( Disabled ) { Play_Track = Hook( "RemoteTrack", "tPLAY", Enabled, Break ) { track = Math.ActionManual( "GET", "Var1") OOSD( "Play Track - %d" , "P^Image\RemoteTrack.bmp#",track) track=Math.ActionManual("x-1",track) Aimp( "SETPLAYLISTPOS" , track ) Math.ActionManual( "SET", "Var1", 0 ) Timer.StopManual( "RemoteTrack" ) } SleepDisplay = Hook( "RemoteTrack", "DISPLAY", Enabled, Break ) { v = Math.ActionManual( "GET", "Var1" ) bt_number = Math.ActionManual( "GET", "button_number" ) skip( 1, v>1 ) Math.ActionManual( "SET", "Var1", bt_number ) skip(2,v=0) zz= math ("x*10+y",v,bt_number) Math.ActionManual( "SET", "Var1", zz ) v = Math.ActionManual( "GET", "Var1" ) OOSD.ActionManual( "Track = %d", "T^30000#P^Image\RemoteTrack.bmp#", v ) All_track_number = Aimp( "GET_LIST_LENGTH" ) All_track_number2 = Math.ActionManual( "x+1", All_track_number ) skip(4,v<All_track_number2) OOSD.ActionManual( "Track = %d not found, last track Nr = %d", "P^Image\RemoteTrack.bmp#" , v,All_track_number) Math.ActionManual( "SET", "Var1", 0 ) Timer.StopManual( "RemoteTrack" ) break() Math( "SET", "Play_Time", 1 ) Timer.StartManual( "RemoteTrack", "TIMER", 2 ) } Math1 = Hook( "REMOTE", "1", true, false ){ Break( Math1 <> 0 ) Math.ActionManual( "SET", "button_number",1 ) EventSend("RemoteTrack","DISPLAY") } Math2 = Hook( "REMOTE", "2", true, false ){ Break( Math2 <> 0 ) Math.ActionManual( "SET", "button_number",2 ) EventSend("RemoteTrack","DISPLAY") } Math3 = Hook( "REMOTE", "3", true, false ){ Break( Math3 <> 0 ) Math.ActionManual( "SET", "button_number",3 ) EventSend("RemoteTrack","DISPLAY") } Math4 = Hook( "REMOTE", "4", true, false ){ Break( Math4 <> 0 ) Math.ActionManual( "SET", "button_number",4 ) EventSend("RemoteTrack","DISPLAY") } Math5 = Hook( "REMOTE", "5", true, false ){ Break( Math5 <> 0 ) Math.ActionManual( "SET", "button_number",5 ) EventSend("RemoteTrack","DISPLAY") } Math6 = Hook( "REMOTE", "6", true, false ){ Break( Math6 <> 0 ) Math.ActionManual( "SET", "button_number",6 ) EventSend("RemoteTrack","DISPLAY") } Math7 = Hook( "REMOTE", "7", true, false ){ Break( Math7 <> 0 ) Math.ActionManual( "SET", "button_number",7 ) EventSend("RemoteTrack","DISPLAY") } Math8 = Hook( "REMOTE", "8", true, false ){ Break( Math8 <> 0 ) Math.ActionManual( "SET", "button_number",8 ) EventSend("RemoteTrack","DISPLAY") } Math9 = Hook( "REMOTE", "9", true, false ){ Break( Math9 <> 0 ) Math.ActionManual( "SET", "button_number",9 ) EventSend("RemoteTrack","DISPLAY") } Math0 = Hook( "REMOTE", "0", true, false ){ Break( Math0 <> 0 ) track = Math.ActionManual( "GET", "Var1") skip(2,track<1) Math.ActionManual( "SET", "button_number",0 ) EventSend("RemoteTrack","DISPLAY") } Math10 = Hook( "REMOTE", "10+", true, false ){ Break( Math10 <> 0 ) track = Math.ActionManual( "GET", "Var1") Math.ActionManual( "SET", "button_number",10 ) EventSend("RemoteTrack","DISPLAY") } DisplayTime = Hook( "TIMER", "RemoteTrack", Enabled, Break, 2 ) { z = Math( "GET", "Play_Time" ) z = Math( "x-1", z ) Math( "SET", "Play_Time", z ) skip ( 1 , z>1 ) EventSend("RemoteTrack","tPLAY") }}
include( "Apps\Aimp.scs" )
$DISABLED
Aimp = Group( Disabled ){
Aimp = Group( Enabled ){
WriteLog = Load( "System\WriteLog\WriteLog.dll" )
Writelog("aimp")
...OnGroupEnable(){ GroupEnable( RemoteTrack2 ) OOSD("AIMP", "P^Image\Apps\aimp.bmp#") Writelog("aimp") }...
PauseRemote = Hook( "REMOTE", "PAUSE", Enabled, Break ){ Break( PauseRemote <> 0 ) Aimp("PAUSE") OOSD.ActionPreset(Pause) }