NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 23 24 25 26 27 … 159 Next »
Close NextPVR while running Custom Task

 
  • 0 Vote(s) - 0 Average
Close NextPVR while running Custom Task
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#11
2011-08-17, 07:41 AM
McBainUK Wrote:Thanks imiline! Smile Here's the batch file I'm using based on your example.
Assuming PDVD8 is the same as version 7 that I used to run, you should be able to give it a drive letter ( eg D: ) at the end of the call to it to get it to automatically start playing the disc too.

McBainUK Wrote:And so the nasty little command window for the batch file is not visible I also created a shortcut to the bat file (with run minimizes option set), and then added a NPVR menu item to launch the shortcut:
I've actually got an ancient Java program I wrote that makes the window completely invisible (that I keep meaning to update to C#), but others have done something similar. It's been discussed in previous threads too. I've not tried it, but a quick search turned up this: http://www.joeware.net/freetools/tools/quiet/index.htm

Iain
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#12
2011-08-17, 06:48 PM
imilne Wrote:Assuming PDVD8 is the same as version 7 that I used to run, you should be able to give it a drive letter ( eg D: ) at the end of the call to it to get it to automatically start playing the disc too.
Thansk for the heads up. Added /drive f: and now it auto starts the movie Smile
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#13
2012-01-23, 08:36 AM
I've been using the bat from from post #10 for a while now and it works well. There's just 2 things that annoy me with it:
1. Power DVD doesn't hide the mouse cursor automatically for me so I have to get off the sofa and move it off the screen.
2. The bat file resumes NextPVR on quitting PowerDVD but it doesn't have the focus. This means I have to leave the sofa again!

Is there any solutions to these problems? I'm open to alternative scripting technologies - I can't believe that the bat file is still a good way to script stuff in 2012!
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Sykor
Offline

Member

Posts: 182
Threads: 3
Joined: Mar 2009
#14
2012-01-23, 11:16 AM (This post was last modified: 2012-01-23, 02:46 PM by Sykor.)
You of all people should know: google is your friend Tongue

1. hiding the mouse cursor: http://www.avsforum.com/avs-vb/showthrea...st13272738
2. running npvr when it's already running gives it focus. double call? The small app mentioned in the link above, also as parameters to bring windows to front and/or give it focus.

As far as alternatives, windows scripting as been around since 98, and powershell seems powerfull enough. Not really sure if any of those are able to run "invisible" to the user. Also not sure, if they're all that different from the .bat variety (for your specific use).
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#15
2012-01-23, 11:36 AM
Thanks Mr Google Smile

Will try those out later tonight.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#16
2012-01-23, 12:54 PM
Try a nextpvr.exe -ontop to (hopefully) insist on focus when returning to it.

Iain
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#17
2012-01-23, 04:39 PM
I use irsuite and hip. To get GBPVR (really) back in focus I have the "play" button and "back" button to move the cursor to the top right then left mouse click when nothing is in focus. This only works if it's in full screen mode.
E6400, 2 GB RAM ,500 GB + 250 GB HD, PVR150+ Adaptec 3610, RW 2 + HIP, Antec 2480 w/ mini ninja ...still using v 0.99
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#18
2012-01-24, 06:30 AM
Thanks for the tips.

Here's the updated batch file. Very pleased with it Smile It now hides the mouse on stating PowerDVD and restores focus o NextPVR on resume.

blurary.bat
Code:
taskkill /im NextPVR.exe"
D:\nircmd\nircmd.exe setcursor 1920 0
start /D"C:\Program Files\CyberLink\PowerDVD8" /WAIT PowerDVD8.exe /fullscreen /drive f:
start /D"C:\Program Files\NPVR" NextPVR.exe"
ping 127.0.0.1 -n 6
start /D"C:\Program Files\NPVR" NextPVR.exe"
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error getting EPG data with NextPVR juliescamilla 2 322 2025-04-01, 10:07 AM
Last Post: juliescamilla
  Using NextPVR instead of Channels DVR Fangking79 3 1,585 2023-11-01, 11:32 PM
Last Post: mvallevand
  Multiple instances of NextPVR on Kodi Spaldo 4 1,219 2023-06-01, 09:13 AM
Last Post: Spaldo
  FrndlyTV on NextPVR markosjal 0 1,073 2022-11-18, 07:50 AM
Last Post: markosjal
  NextPVR server configuration suggestions. mvallevand 0 908 2022-08-04, 12:58 AM
Last Post: mvallevand
  Is it possible to export NextPVR's EPG in XML format Paul92 3 1,570 2022-07-05, 01:38 PM
Last Post: mvallevand
  newbie to NEXTPVR Need help with TV guides sffire 16 4,108 2021-10-10, 05:46 AM
Last Post: sffire
  Kodi and NextPVR question RoshaBeli 1 1,298 2021-08-30, 07:05 PM
Last Post: sub
  How to access NextPVR remotely without Kodi? devilkepo74 2 2,397 2021-02-05, 11:48 AM
Last Post: Graham
  Nextpvr laurihold78 1 1,399 2021-01-19, 12:37 PM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode