MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » Improvement Suggestions


Improvement Suggestions You have an idea how MediaPortal could be improved? Post it in here.

Reply
 
Thread Tools Display Modes
Old 2006-10-12, 10:13   #1 (permalink)
Portal Member
 
Bram's Avatar
 
Join Date: Dec 2005
Location: 's-Hertogenbosch
Age: 30
Posts: 850
Thanks: 20
Thanked 2 Times in 2 Posts

Country:

My System

Default [REQ] Detection of RDP connection and closing MP

I use RDP (the Remote Desktop Protocol) to connect to my HTPC. I know about VNC (and software that does the same) but I don't want to use it. RDP is fast, efficient and in Windows out of the box. There is one disatvantage... DirectX doesn't workt thrue the RDP. So it's not possible to see MP thrue a RDP connection.

What I do now is..

- Connect with Remote Desktop
- Once connected push CTRL+SHIFT+ESC as fast as I can and start clicking "End Task" hoping the taskmanager registers my input. This always works but might take some time.
- Once MediaPortal is closed I see the desktop, but I have the taskbar hidden from within Media Portal (and I like to keep it that way), so I can't use the startmenu and quicklaunche shortcuts. To fix this I go to the TaskManager again and stop the "explorer.exe" task and restart it again by running "explorer" from the Run dialog.


Now I can use the computer again. I could use a simple batch script to restart the explorer.exe task. But that still means I have to close MP manualy, which is a pain in the a**


Is there a way to make MediaPortal detect if there is a RDP connection being made and optionaly close itself? I think some people use multiple concurent RDP sessions to manage their computer and don't want MP to close on a RDP connection. So it's probebly wise to make it optional, if at all possible.
__________________
Bram is offline   Reply With Quote
Old 2006-10-12, 11:13   #2 (permalink)
Portal Member
 
Join Date: Jan 2006
Location: Zwolle, NL
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to thachaser
Default

Hi,

Maybe this helps :

there's a program on the web, which allows you to connect with multiple RDP sessions to Windows XP.

I don't know if i can post it here
thachaser is offline   Reply With Quote
Old 2006-10-12, 11:27   #3 (permalink)
Project Coordinator
 
infinityloop's Avatar
 
Join Date: Dec 2004
Location: 127.0.0.1
Age: 29
Posts: 6,226
Thanks: 175
Thanked 137 Times in 98 Posts

Country:

My System

Default

Quote:
Originally Posted by thachaser View Post
Hi,

Maybe this helps :

there's a program on the web, which allows you to connect with multiple RDP sessions to Windows XP.

I don't know if i can post it here
sure, you can post name and link to the homepage of this tool.
as long as the application is not some kind of warez
__________________
regards
chris

MediaPortal Project Coordinator
Test Team Leader

Do not start to moan if something is not working as you want it to be.
Remember that MediaPortal is Open Source.
YOU can improve it!
infinityloop is offline   Reply With Quote
Old 2006-10-12, 11:27   #4 (permalink)
Portal Member
 
Bram's Avatar
 
Join Date: Dec 2005
Location: 's-Hertogenbosch
Age: 30
Posts: 850
Thanks: 20
Thanked 2 Times in 2 Posts

Country:

My System

Default

I know, but that is not what I prefer. I mainly use RDP to update MP with the latest SV, install codecs, maintain windows and work on a plugin for MP. I prefer to do all this on the same account on which MP is running with MP closed.
__________________
Bram is offline   Reply With Quote
Old 2006-10-12, 12:04   #5 (permalink)
Portal Member
 
Join Date: Jan 2006
Location: Zwolle, NL
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to thachaser
Default

http://riccardo.raneri.it/blog/eng/i...emote-desktop/

You can find a manual example here.

I'll post a link to the program tonight, because i don't have this @work

@BRAM

You can try to write a wsh script in vbs, that's detecting if you're running a RDP session. This has te be adjusted to run continueasly so it keeps checking for remote desktop.

I found this here : http://www.fpschultze.de/smartfaq+faq.faqid+87.htm :

If fctCheckTS Then
WScript.Echo "I am running on TS"
End If
Function fctCheckTS
Dim objWsh : Set objWsh = WScript.Shell
Select Case Left(objWsh.ExpandEnvironmentStrings("%SESSIONNAME %"),3) Case "RDP", "ICA"
fctCheckTS = True
Case Else
fctCheckTS = False
End Select
End Function
thachaser is offline   Reply With Quote
Old 2006-10-12, 12:06   #6 (permalink)
Portal Member
 
Join Date: Jan 2006
Location: Zwolle, NL
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to thachaser
Default

Found it here :

http://sala.pri.ee/?page_id=11

have fun!
thachaser is offline   Reply With Quote
Old 2006-10-12, 14:01   #7 (permalink)
Portal Member
 
NickName's Avatar
 
Join Date: Jun 2006
Location: Gold Coast
Posts: 283
Thanks: 13
Thanked 5 Times in 3 Posts

Country:


Default

You don't need am external program.
You need the termserv.dll dated 8-5-2004 from XP Mediacentre beta version.
You change one registry key, enable a rule in gpedit.msc, setup a second user and you're set. :-)

You can login remotely, leaving Mediaportal running (happy wife & kids) and login to a second (different) desktop on the same PC. Naturally you can login as the same account as Mediaportal runs on and Mediaportal is minimised automagically, not logged out. So simply put, two identical or different users, one remotely and one locally, both concurrently.

This only works on XP Pro & XP Mediacentre, not XP Home.
I've seen several PCs configured this way. ;-)

Note to self: I must burnt a certain DLL & instructions to CD for safekeeping...

Feel free to PM me.

NickName.

P.S. Forget what I said above, that link in the previous post (http://sala.pri.ee/?page_id=11) achieves the same thing easier...
__________________
Before, I could never finish anything I started but now I

Last edited by NickName; 2006-10-12 at 14:15.
NickName is offline   Reply With Quote
Old 2006-10-12, 15:04   #8 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,936
Thanks: 67
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

As a small bit of additional help. I used to have the same issue with needing to restart Explorer for the start bar to come back, but now I just turn off that option in MP and then set the task bar to auto hide. This works much better and if MP is set to Always on Top then it never appears any way...
Marcusb is offline   Reply With Quote
Old 2006-10-12, 18:01   #9 (permalink)
Portal Member
 
Join Date: Jul 2005
Location: Edmonton, AB
Posts: 449
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Quote:
Originally Posted by Bram View Post
I know about VNC (and software that does the same) but I don't want to use it.
Let me get this straight, you're reluctant to use a piece of software that is commonly used (and widely accepted) by others, and want a custom solution programmed into MP to suit your specific needs which may or may not be used by anyone else?

Now I'm not trying to be an ass, however it just doesn't seem logical for the amount of trouble you're willing to go to, when the solution is already evident and simple.

Log into the remote machine with VNC to shut down MP, then use Remote Desktop.
Khris is offline   Reply With Quote
Old 2006-10-12, 22:18   #10 (permalink)
Portal Member
 
Join Date: Jan 2006
Location: Zwolle, NL
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to thachaser
Default

Quote:
Originally Posted by Khris View Post
Let me get this straight, you're reluctant to use a piece of software that is commonly used (and widely accepted) by others, and want a custom solution programmed into MP to suit your specific needs which may or may not be used by anyone else?

Now I'm not trying to be an ass, however it just doesn't seem logical for the amount of trouble you're willing to go to, when the solution is already evident and simple.

Log into the remote machine with VNC to shut down MP, then use Remote Desktop.
VNC does in this way the same as RDP so that's no solution. (when using RDP all openened programs show up, except MP because of directX)

The problem is that he wants to shutdown MP automatically when an RDP session is set-up.
thachaser is offline   Reply With Quote
Reply

Bookmarks

Tags
closing, connection, detection, rdp, req

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mediaportal not closing down properly br0sk pre 1.0 RC1 2 2006-12-29 14:33
Redeye blaster prevents mediaportal executables from closing alanmay 0.2.0.0 Final and SVN Builds 0 2006-11-14 03:35


All times are GMT +1. The time now is 11:16.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden