Hilfe - Suche - Mitglieder - Kalender
Vollansicht: [TIPP] CMD Command für xpMCE
MCE-Community.de > Windows Media Center Software > Media Center PlugIns/AddIns, Hacks, Mods + ZusatzSoftware > [mceCodeZone] Programmierung > mceCodeZone - Grundlagen & Tutorials
usa
My TV

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:VIDEOHOME.XML /PUSHSTARTPAGE:TRUE


My Pictures

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:PHOTOS.XML /PUSHSTARTPAGE:TRUE


My Music

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:AUDIO.HOME.XML /PUSHSTARTPAGE:TRUE


Recorded TV

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:VIDEORECORDEDPROGRAMS.XML /PUSHSTARTPAGE:TRUE


Guide

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:VIDEOGUIDE.XML /PUSHSTARTPAGE:TRUE


Settings

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:OPTIONS.HOME.XML /PUSHSTARTPAGE:TRUE


Play

C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:VideoFullscreen.XML /PUSHSTARTPAGE:TRUE
Heiko123
Hallo,

gibt es auch eine, welche das MCE im Vollbildmodus öffnet?

Heiko
olcay
Verlasse die MCE mal im Vollbildmodus und starte sie dann mal neu. Sollte dann im Vollbildmodus starten.
scendix
kennt jemand eine möglichkeit, MCE mit einer bestimmten MCL zu starten? also per ShellExecute direkt mein programm aufzurufen (z.b. direkt nach der instellation...)?

danke
scendix
Raudi
Meinst Du sowas? grummel.gif

LINK

Stefan
Peacemaker
HI scendix

Ja das geht hast du es schon mit ShellExecute probiert, auf anhieb gehts nähmlich nicht.

schau mal ob bei dir die ehshell.exe mit dabei ist unter dem schlüssel,

QUELLTEXT
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\


[Edit]

hmm wenn ich ShellEx den pfad zur exe mit gebe dann gehts auch smile.gif

QUELLTEXT
Dim strEXE As String
Dim strFile As String
strEXE = "C:\Windows\ehome\ehshell.exe"
strFile = "C:\MyNews\MCNews.mcl"
ShellExecute 0, "Open", strEXE, strFile, vbNullString, 1

cya
scendix
oh mann doh.gif : das geht ja wirklich... ich hatte das mal versucht, da ging es nicht (noch mit mce 2004). seit dem habe ich das so nie wieder versucht.
danke!

scendix
Peacemaker
ZITAT(scendix @ 07.06.2005, 08:47)
oh mann doh.gif : das geht ja wirklich... ich hatte das mal versucht, da ging es nicht (noch mit mce 2004). seit dem habe ich das so nie wieder versucht.
danke!

scendix

kein problem thumbsup.gif

cya
Peacemaker
ZITAT(scendix @ 07.06.2005, 08:47)
das geht ja wirklich... ich hatte das mal versucht, da ging es nicht (noch mit mce 2004). seit dem habe ich das so nie wieder versucht.

HI

habe ich vergessen zu sagen, geht bei mir mit MCE 2004 und 2005 !

cya
wolf
weiss jemand, wie ich mit parametern MCE starten kann, so dass gleich eine bestimmte playlist gestartet wird ?
aus C:\WINDOWS\EHOME\EHSHELL.EXE /HOMEPAGE:AUDIO.HOME.XML /PUSHSTARTPAGE:TRUE ....
[Michael]
Hab mal oben gezählt, das sind 7 Command Lines.

Hier nun insgesamt 12.

Basis ist diese Kommandozeile:

%windir%\ehome\ehshell.exe /homepage:SEITE /pushstartpage:true

SEITE durch folgendes ersetzen (sind .xml-Dateien):

* Main Menu: Home.xml
* My TV: VideoHome.xml
* Fullscreen TV: VideoFullscreen.xml
* Recorded TV: VideoRecordedPrograms.xml
* Scheduled Recordings: VideoToBeRecorded.xml
* My Videos: VideoCollection.xml
* My Pictures: Photos.xml
* Radio: Radio.xml
* My Music: Audio.Home.xml
* Guide: VideoGuide.xml
* Setup Wizard: Fr.Welcome.xml
* Settings: Options.Home.xml

Beispiel: man will beim starten von MCE, dass sich "My TV" öffnet:
%windir%\ehome\ehshell.exe /homepage:VideoHome.xml /pushstartpage:true


Quelle: weiß ich leider nicht mehr, war irgend eine englischsprachige Seite... rolleyes.gif

@wolf: mehr command lines sind mir nicht bekannt, vermutlich klappt es *so direkt* nicht mit dem Start einer bestimmten Playlist, da das ganze ja auf XML-Dateien basiert.

<edit>Beispiel ergänzt</edit>
olcay
Du kannst zb die %WINDIR%\eHome\ehres.dll mit einem Resourcen-Editor öffnen und dir die XML-Seiten anschauen. Diese kannst Du dann einfach ausprobieren. Viele werden nicht geladen da sie nicht direkt geladen werden können da bestimmte Variablen in dem Moment keine Werte haben oder ein bestimmtes Event nicht eingetretten ist.

Wie gesagt - einfach mal mit spielen smile.gif
usa
Aktuell:

You may have your MCE to autologin using a "Media Centre" system user account, and then want it to autorun Media Centre and go straight into Live TV (as most UK set top boxes would operate - Live Tv first then menus if a menu button is pressed). OK heres how to do it via the Registry RUN key of the CURRENT_USER.

Live TV use HKEY_CURRENT_USER\Software\CurrentVersion\Windows\RUN) by creating a new EXPANDABLE STRING value. (Faster than putting into STARTUP folder of Start Menu)

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:VideoFullscreen.XML /PUSHSTARTPAGE:TRUE

My TV Menu

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:VIDEOHOME.XML /PUSHSTARTPAGE:TRUE

My Pictures Menu

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:pHOTOS.XML /PUSHSTARTPAGE:TRUE

My Music Menu

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:AUDIO.HOME.XML /PUSHSTARTPAGE:TRUE

Recorded TV Menu

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:VIDEORECORDEDPROGRAMS.XML /PUSHSTARTPAGE:TRUE

TV EPG

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:VIDEOGUIDE.XML /PUSHSTARTPAGE:TRUE

MCE Settings

%SystemRoot%\EHOME\EHSHELL.EXE /HOMEPAGE:oPTIONS.HOME.XML /PUSHSTARTPAGE:TRUE
Recording Location

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Recording]
"RecordPath"="D:\\Data\\Recorded TV"

Pause Live TV - Temp Storage Area

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Video\Tuners\DVR\IO\Writer]
"DVRDirectory"="D:\\Data\\Recorded TV\\TempRec\\"



Hide Various Menu Options

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Start Menu]
"HideTV"="0"
"HideWebSite"="0"
"HideRadio"="0"
"HideMusic"="0"
"HideVideos"="0"
"HideDVD"="0"


Want no bootup logo on your system startup ? Edit C:\BOOT.INI and put /noguiboot onto the parameters where XP loads.

[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Media Center Edition" /fastdetect /NoGUIBoot /NoExecute=OptOut

***************************************************************

close MCE

make a file called radio.reg in notepad

make this the content:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Start Menu]
"HideRadio"="1"


save.. right click --> merge

start MCE

have fun..
tommce
Kann man ehShell.exe auch per Kommandozeile anweisen, ein bestimmtes Video abzuspielen?
Dann könnte ich mir das Beenden und Neustarten der Shell vor und nach Standby sparen. Statt dessen könnte man so Live TV beenden (analog mcdHibernatePlugin), meinem einzigen Standby-Problem.
Mich stört die Ladezeit der Shell beim Aufwachen zusätzlich zur Zeit, die das Betriebssystem aus dem S4 benötigt.
visionsurfer
Hallo,

vielleicht kann mir hier jemand helfen.
Ich nutze das Plugin "moreRadio V3".

Mein Wunsch ist es, wenn ich den Rechner morgens anschalte, das sofort dieses moreRadio Plugin startet und z.B. der zuletzt gehörte Sender läuft.

ALso ohne das ich morgens noch lange Knöpfe drücken muss, bis ich mal da bin.

Weiß jemand ob das geht ?

Oder das ich z.B. über die Fernbedienung einen Knopf drücke und sofort MoreRadio kommt ?

Grüße,
Visionsurfer
usa
Aktuell:

ZITAT
Algorithm for launching Windows Media Center and browsing to a specific experience
A while back, I posted an item on the Media Center Sandbox blog that described how to directly launch Windows Media Center and have it navigate to a specific experience using some command line parameters available within the Windows Media Center Shell application.  Since then, several folks have asked me about those command line parameters and whether there were more.

The specific problem that most people noted was that the command line ehshell.exe /directmedia:tv navigates to the Recorded TV gallery and not to Live TV.  Unfortunately, there is not a command line parameter that allows direct navigation to Live TV.

However, there is another mechanism that can be used to launch Windows Media Center and browse to a specific experience, including Live TV.  I'm going to describe the algorithm in words here:

Call the Win32 FindWindow API and pass in Media Center Tray Applet for the class name and NULL for the window name
If the FindWindow API returns NULL, display an error and exit
Call the Win32 RegisterWindowMessage API, pass in Media Center Navigate To Page and save the result
Call the Win32 SendMessageTimeout API and pass in the window returned in step 2, the message registered in step 3, and as the WPARAM and LPARAM, the desired values from the tables listed below
If the SendMessageTimeout API returns 0, the browse failed
WPARAM values to use for browsing

WPARAM = 0: Windows Media Center Start Menu
WPARAM = 1: Live TV
WPARAM = 2: TV Guide
WPARAM = 3: My TV
WPARAM = 4: Recorded TV
WPARAM = 5: My Music
WPARAM = 6: My Photos
WPARAM = 7: Scheduled Recordings
WPARAM = 8: My Videos
WPARAM = 9: Radio
WPARAM = 12: Online Spotlight (this value is only availabe in Update Rollup 2 for Windows XP Media Center Edition 2005 and later)
WPARAM = 13: Extensibility application (this value is only availabe in Update Rollup 2 for Windows XP Media Center Edition 2005 and later)
LPARAM values to use for browsing

LPARAM = 0: Start Windows Media Center in the last used state (full-screen or windowed)
LPARAM = 1: Start Windows Media Center full-screen
Notes:

This algorithm works regardless of whether the Windows Media Center UI is currently running. It also correctly handles bringing the Windows Media Center UI to the foreground.  This is the only officially supported method of browsing to the Windows Media Center UI from an external application.  This mechanism was first made available in Windows XP Media Center Edition 2004.

New values might be added to the WPARAM and LPARAM tables with new versions of Windows Media Center.

I've got a Win32 sample application nearly done that implements the above algorithm and I will post that to provide more details about this scenario as soon as I get it code reviewed.


LINK
joe87
hi!

bin ganz neu hier, und hab eigentlich eine realtiv simple frage bzw. problem. bin aber fast am verzweifeln. wallbash.gif

wie kann ich über die commandline ein video starten, also alles im hintergrund.

der grundgedanke ist folgender: ich möchte via weboberfläche automatisch ein kaminfeuervideo starten. d.h. ich drücke auf der weboberfläche einen button --> dieser schickt einen http-request an den server (xampp) und der soll dann einen command-befehl ausführen und im MCE dieses video starten. Wichtig ist dabei auch dass dieses video anschließend in einer schleife läuft!

ich habs schon mit einer html-applikation probiert, also mit dem playMedia befehl, jedoch klappt das nicht so wirklich, vor allem zeigt diese art der implementierung schwierigkeiten mit dem loop-playback.

also vl hat von euch jemand eine idee.

besten dank und gruß
JT
Dieses ist eine vereinfachte Darstellung unseres Foreninhaltes. Um die detaillierte Vollansicht mit Formatierung und Bildern zu betrachten, bitte hier klicken.
Invision Power Board © 2001-2010 Invision Power Services, Inc.