MediaPortal SVN-Snapshot:-08-09-2008 09-21h - Revision:19876.rar (1 Viewer)

windsorguy13

Portal Member
December 8, 2007
13
0
yep, indeed that seems to be the case. Unfortunately I cannot think any good sollution how to "fix" that issue. Dunno why MS has decided to remove that .exe? Maybe lot of companies are using it in their scripts and MS is forcing them to buy the bussiness edition, who knows.

We cannot use taskkill for two reasons:
1) XP doesnt have it
2) doesnt seem to work correctly after S3 (actually restarting MP after it doesnt work for some odd reason).

So Vista Home Edition users should use the old restart.vbs (that uses the WMI to kill MP process and fails randomly in that as S3 triggers reset for the WMI and could cause the process list to be no up to date when we are trying to kill MP).

That sucks. The old script doesn't work for me either. Does VBScript at least let you detect which OS is running and call the right command based on that? I'm a VB programmer by trade and I might be able to figure it out but I won't have time until this weekend at the earliest.


I ment the 2 month old .vbs script. Does it work for you? At least no people have been reporting it to fail.

Most likely VBScript does support checking the version numbering from the OS (at least by using WMI, but that we want to try to avoid as its having its own issues with S3).

btw. I have no actual knowledge on the VBScript, just gathered some small info so that I was able to build that script. So if someone has more knowlegde / free time please feel free to provide few script lines that can be used to determine Vista Home edition (without using WMI) and I'll add support for that OS also (by using the old WMI based way for killing MP).


Hey Tourettes,

This worked on my XP Pro machine:

Code:
Dim oSh, oEx, OS
Set oSh=CreateObject("WScript.Shell")
Set oEx=oSh.Exec("%COMSPEC% /C ver")
Do While oEx.Status=0
  WScript.Sleep 100
Loop
While Len(os)<1
 os=Replace(oEx.StdOut.ReadLine,vbCrLf,"")
Wend
msgbox  ("OS=" & os)

Found that one here:
VBScript - Determine OS

Hope that helps!
 

nachttier

Portal Pro
March 31, 2006
86
1
Viernheim
Home Country
Germany Germany
Hi,

does anybody else experience the problem of the not disappearing mouse pointer?
I already installed the EVR.DLL mentioned here, but the pointer still stays after accessing the context menu.

Regards,
nachttier
 

grubi

Portal Pro
June 16, 2007
1,216
80
127.0.0.1
Home Country
Germany Germany
I ment the 2 month old .vbs script. Does it work for you? At least no people have been reporting it to fail.

Most likely VBScript does support checking the version numbering from the OS (at least by using WMI, but that we want to try to avoid as its having its own issues with S3).

btw. I have no actual knowledge on the VBScript, just gathered some small info so that I was able to build that script. So if someone has more knowlegde / free time please feel free to provide few script lines that can be used to determine Vista Home edition (without using WMI) and I'll add support for that OS also (by using the old WMI based way for killing MP).

Yeah, that script worked for me. Hopefully I still have a copy of it. I'll see what I can do with detecting the OS in VBScript when I get some time.

The old code is still available in the current .vbs script (just commented out).

Why no just wirte an own exec which does what tskill does.
I found the following in the internet.
Did not had time to test it myself.
If it would be an option I can do this at the weekend.

grubi.
 

josch.hh

MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    I would like to see a possibility to allow MP & TVE3 to be stopped only after resuming has been done. At least for MP as otherwise its creating no video signal on some systems. I have had two PCs / MBs that have had annoying issue when it comes to TVE3 automatically waking up the PC for recording. If MP is closed before the S3 state is enabled

    1) display drivers will disable the video output (unless MP is already running, something to do with DX)
    2) resume S3 even comes only after the user presses a key on keyboard

    as a result the display will stay black for remote control only users.

    If i understood you right - you want to stop MP after wakeup from S3?
    If i stop MP on my maschine before going into S3 and then press a button to wake up everything is fine. Maybe i didn't understand your problem.

    The issue is pretty rare (depends on HW). But yes, I would like to be able to stop MP (and restart) after PC has woken up from S3.



    OK then here is an update.
    If you just uncheck the "Stop Mediaportal" checkbox and only check the "Restart Mediaportal" checkbox then MP will be stopped and restarted after standby. (- > same with tvservice
     

    Hetfield

    Portal Pro
    March 3, 2007
    69
    9
    Home Country
    Finland Finland
    script

    Would it be possible to check by the installer what services are available for killing tasks, and write different kind of script file depending about the tskill/taskkill and/or the operating system? Possibly also vb-script could check that the tskill/taskkill exists in the system folder?
     

    windsorguy13

    Portal Member
    December 8, 2007
    13
    0
    I posted this, but not sure where it went. This vb script will return the OS version without using WMI:

    Dim oSh, oEx, OS
    Set oSh=CreateObject("WScript.Shell")
    Set oEx=oSh.Run "%COMSPEC% /C ver", 0, True
    Do While oEx.Status=0
    WScript.Sleep 100
    Loop
    While Len(os)<1
    os=Replace(oEx.StdOut.ReadLine,vbCrLf,"")
    Wend
    msgbox ("OS=" & os)


    Hope that helps!
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Me again...
    From the guys how downloaded my little app "MP StandbyHandler"... i would like to have a reply, if it works for you...
    Plz gimme feedback
     

    lar282

    Portal Pro
    July 11, 2004
    414
    2
    is it possible to record in a network folder?

    my secondary hard drive of the htpc is about to die and although im trying to set a network folder, it does not seem to work.

    I record to a NAS and it works. BUT it does not work for me having the timeshift files on the nas.

    //Lasse
     

    Users who are viewing this thread

    Top Bottom