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
HTPC Projects
Hardware
TV-Cards
skystar2 not able to tune after resume ?
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="xavier" data-source="post: 519586" data-attributes="member: 10592"><p>You need the devcon Microsoft tool (search in this forum for x32 or x64 versions).</p><p></p><p>Next, you can run this script (or similar) at the resume:</p><p></p><p>[CODE]</p><p>Option Explicit</p><p></p><p>' *********************************************</p><p>' This function checks if a process is running </p><p>' *********************************************</p><p>Function IsProcessRunning( strProcess )</p><p> Dim Process, strObject</p><p> IsProcessRunning = False</p><p> strObject = "winmgmts:\\.\root\cimv2"</p><p> For Each Process in GetObject( strObject ).InstancesOf( "win32_process" )</p><p> If UCase( Process.name ) = UCase( strProcess ) Then</p><p> IsProcessRunning = True</p><p> Exit Function</p><p> End If</p><p> Next</p><p>End Function</p><p></p><p>' ===</p><p></p><p>Dim Shell, process, prockill, return</p><p></p><p>Set Shell = CreateObject("WScript.Shell")</p><p></p><p>process = "MediaPortal"</p><p>prockill = "tskill " & process</p><p></p><p>return = Shell.Run (prockill, 0, True)</p><p></p><p>' Check for MediaPortal still running</p><p></p><p>do</p><p> WScript.Sleep(100)</p><p>loop while IsProcessRunning ( process & ".exe" ) </p><p></p><p>' Stop tvservice</p><p></p><p>return = Shell.Run("""C:\Windows\System32\net.exe""" & "stop tvservice", 1, true)</p><p></p><p>' Disable SkyStar2</p><p></p><p>return = Shell.Run("""C:\\devcon.exe""" & "disable PCI\VEN_13D0*", 1, true)</p><p></p><p>' Enable SkyStar2</p><p></p><p>return = Shell.Run("""C:\\devcon.exe""" & "enable PCI\VEN_13D0*", 1, true)</p><p></p><p>' Run MediaPortal</p><p></p><p>return = Shell.Run("""C:\\Program Files (x86)\\Team MediaPortal\\MediaPortal\\MediaPortal.exe""", 1, false)[/CODE]</p><p></p><p>Regards,</p><p>xavier</p></blockquote><p></p>
[QUOTE="xavier, post: 519586, member: 10592"] You need the devcon Microsoft tool (search in this forum for x32 or x64 versions). Next, you can run this script (or similar) at the resume: [CODE] Option Explicit ' ********************************************* ' This function checks if a process is running ' ********************************************* Function IsProcessRunning( strProcess ) Dim Process, strObject IsProcessRunning = False strObject = "winmgmts:\\.\root\cimv2" For Each Process in GetObject( strObject ).InstancesOf( "win32_process" ) If UCase( Process.name ) = UCase( strProcess ) Then IsProcessRunning = True Exit Function End If Next End Function ' === Dim Shell, process, prockill, return Set Shell = CreateObject("WScript.Shell") process = "MediaPortal" prockill = "tskill " & process return = Shell.Run (prockill, 0, True) ' Check for MediaPortal still running do WScript.Sleep(100) loop while IsProcessRunning ( process & ".exe" ) ' Stop tvservice return = Shell.Run("""C:\Windows\System32\net.exe""" & "stop tvservice", 1, true) ' Disable SkyStar2 return = Shell.Run("""C:\\devcon.exe""" & "disable PCI\VEN_13D0*", 1, true) ' Enable SkyStar2 return = Shell.Run("""C:\\devcon.exe""" & "enable PCI\VEN_13D0*", 1, true) ' Run MediaPortal return = Shell.Run("""C:\\Program Files (x86)\\Team MediaPortal\\MediaPortal\\MediaPortal.exe""", 1, false)[/CODE] Regards, xavier [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
TV-Cards
skystar2 not able to tune after resume ?
Contact us
RSS
Top
Bottom