home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Language specific support
Deutsches MediaPortal Forum
MediaPortal 1
Video & DVD
MP 1.5 spielt keine MKV - Verknüpfung ( .lnk ) ab !!!
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BassFan" data-source="post: 1047278"><p>Leicht OT!</p><p> </p><p></p><p>Nein eine Schnittstelle damit über Commandline ein Verweis auf eine Datei ausgeführt werden kann.</p><p>Eine Datei benötigen sie alle.</p><p></p><p>Ja sagte ich doch auf eine Datei</p><p> </p><p>Entschuldige bitte sehr Höfflich <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>Aber du möchtest mir doch kein Programmieren bei bringen oder? (Ich bin ein Alter Hase und mache das schon seit 20 Jahren) <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Damit ein Verweis zu einer Datei in einem Programm ausgeführt werden kann benötigt dieses Programm eine Schnittstelle bzw. eine message Queue.</p><p> </p><p>Wird innerhalb der WinProc von MP die Message WM_COPYDATA nicht behandelt kann ein über CommandLine ausgeführter Befehl</p><p>auch nicht interpretiert werden und somit läuft ein *.lnk der auf eine Datei verweist und mit MP ausgeführt werden soll einfach ins leere.</p><p>Das hat aber nichts damit zu tun das MP es nicht könnte, nein man will es nicht weil es zum Konzept von MP einfach nicht passt.. was dann auch Programmtechnisch gesehen korrekt ist.</p><p> </p><p>Eine der Möglichkeiten wie ein CommandLine behandelt wird.</p><p>[CODE]Private Function ISubclass_WindowProc(ByVal lngHwnd As Long, _</p><p> ByVal iMsg As Long, _</p><p> ByVal wParam As Long, _</p><p> ByVal lParam As Long) As Long</p><p> </p><p>Dim tCDS As COPYDATASTRUCT</p><p>Dim bytb() As Byte</p><p>Dim sCommand As String</p><p> </p><p> Select Case iMsg</p><p> Case WM_COPYDATA</p><p> CopyMemory tCDS, ByVal lParam, Len(tCDS)</p><p> With tCDS</p><p> If .cbData > 0 Then</p><p> ReDim bytb(0 To .cbData - 1) As Byte</p><p> CopyMemory bytb(0), ByVal .lpdata, .cbData</p><p> sCommand = StrConv(bytb, vbUnicode)</p><p> If stndTV Then</p><p> Unload frmTV</p><p> ElseIf stndRA Then</p><p> Unload frmRadio</p><p> End If</p><p> If Mid$(sCommand, 5, 1) = "/" Or Mid$(sCommand, 1, 1) = "/" Then</p><p> frmPlayList.Playlist1.eSTOP</p><p> frmPlayList.Playlist1.ParseCommandLine sCommand, FullAppExename</p><p> Trace "ISubclass_WindowProc", "", lngHwnd, iMsg, wParam, lParam</p><p> Else</p><p> Trace "ISubclass_WindowProc", "", "CommandLine", "wird nur aus dem Pfad übergeben"</p><p> End If</p><p> End If</p><p> End With</p><p> End Select</p><p> </p><p>End Function[/CODE]</p><p> </p><p>Du siehst also ein Programm muss das natürlich selbst zur Verfügung stellen damit ein link und die darauffolgende Funktion auch</p><p>ausgeführt werden kann.</p><p> </p><p>Was nun nach langer Diskussion klar ist <strong>das es in MP nicht geht,</strong> weil man es nicht will, des Konzept wegen halt <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p> </p><p>gruss</p></blockquote><p></p>
[QUOTE="BassFan, post: 1047278"] Leicht OT! Nein eine Schnittstelle damit über Commandline ein Verweis auf eine Datei ausgeführt werden kann. Eine Datei benötigen sie alle. Ja sagte ich doch auf eine Datei Entschuldige bitte sehr Höfflich ;) Aber du möchtest mir doch kein Programmieren bei bringen oder? (Ich bin ein Alter Hase und mache das schon seit 20 Jahren) :) Damit ein Verweis zu einer Datei in einem Programm ausgeführt werden kann benötigt dieses Programm eine Schnittstelle bzw. eine message Queue. Wird innerhalb der WinProc von MP die Message WM_COPYDATA nicht behandelt kann ein über CommandLine ausgeführter Befehl auch nicht interpretiert werden und somit läuft ein *.lnk der auf eine Datei verweist und mit MP ausgeführt werden soll einfach ins leere. Das hat aber nichts damit zu tun das MP es nicht könnte, nein man will es nicht weil es zum Konzept von MP einfach nicht passt.. was dann auch Programmtechnisch gesehen korrekt ist. Eine der Möglichkeiten wie ein CommandLine behandelt wird. [CODE]Private Function ISubclass_WindowProc(ByVal lngHwnd As Long, _ ByVal iMsg As Long, _ ByVal wParam As Long, _ ByVal lParam As Long) As Long Dim tCDS As COPYDATASTRUCT Dim bytb() As Byte Dim sCommand As String Select Case iMsg Case WM_COPYDATA CopyMemory tCDS, ByVal lParam, Len(tCDS) With tCDS If .cbData > 0 Then ReDim bytb(0 To .cbData - 1) As Byte CopyMemory bytb(0), ByVal .lpdata, .cbData sCommand = StrConv(bytb, vbUnicode) If stndTV Then Unload frmTV ElseIf stndRA Then Unload frmRadio End If If Mid$(sCommand, 5, 1) = "/" Or Mid$(sCommand, 1, 1) = "/" Then frmPlayList.Playlist1.eSTOP frmPlayList.Playlist1.ParseCommandLine sCommand, FullAppExename Trace "ISubclass_WindowProc", "", lngHwnd, iMsg, wParam, lParam Else Trace "ISubclass_WindowProc", "", "CommandLine", "wird nur aus dem Pfad übergeben" End If End If End With End Select End Function[/CODE] Du siehst also ein Programm muss das natürlich selbst zur Verfügung stellen damit ein link und die darauffolgende Funktion auch ausgeführt werden kann. Was nun nach langer Diskussion klar ist [B]das es in MP nicht geht,[/B] weil man es nicht will, des Konzept wegen halt ;) gruss [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
MediaPortal 1
Video & DVD
MP 1.5 spielt keine MKV - Verknüpfung ( .lnk ) ab !!!
Contact us
RSS
Top
Bottom