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
General
Leapcast (chromecast emu) with MP
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="biohazardxxx" data-source="post: 1045771" data-attributes="member: 106228"><p>Ok I've now have a workaround which make this solution run perfectly <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>To end orphan processes of leapcast and python before starting add this code to your VBS start script after the line:</p><p>Set WshShell = WScript.CreateObject("WScript.Shell")</p><p></p><p>[CODE]'Kill leapcast if already running!</p><p>Dim objWMIService, colProcessList</p><p>Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")</p><p>Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'leapcast.exe' or Name = 'python.exe'")</p><p>For Each objProcess in colProcessList</p><p> Return = WshShell.Run("taskkill /PID " & objProcess.ProcessId, 0, True)</p><p>Next[/CODE]</p><p></p><p>Then import the attached windows task (change the user after adding!).</p><p></p><p>By this a windows task will run the Start.vbs after resuming from Standby.</p><p></p><p>Happy casting <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="biohazardxxx, post: 1045771, member: 106228"] Ok I've now have a workaround which make this solution run perfectly :) To end orphan processes of leapcast and python before starting add this code to your VBS start script after the line: Set WshShell = WScript.CreateObject("WScript.Shell") [CODE]'Kill leapcast if already running! Dim objWMIService, colProcessList Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2") Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'leapcast.exe' or Name = 'python.exe'") For Each objProcess in colProcessList Return = WshShell.Run("taskkill /PID " & objProcess.ProcessId, 0, True) Next[/CODE] Then import the attached windows task (change the user after adding!). By this a windows task will run the Start.vbs after resuming from Standby. Happy casting ;) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
General
Leapcast (chromecast emu) with MP
Contact us
RSS
Top
Bottom