NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 237 238 239 240 241 … 1231 Next »
Custom tasks (from NMT/PCH)

 
  • 0 Vote(s) - 0 Average
Custom tasks (from NMT/PCH)
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#1
2008-10-24, 09:06 PM
I created a couple of Custom tasks in config, using powercfg to switch between two power schemes - one to turn standby/hibernate off, the other to turn it back on.
It works a treat run from the server but doesn't appear to be actioned if run from the PCH. (I can't be 100% sure, but I thought it did work from MVP).

Is this expected behaviour ? If not what could I be doing wrong as it works from the server menu.

thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2008-10-25, 01:07 AM
I'm sure it'll be running them, but I have no way to know if what you're trying to run works from the localsystem user account.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
2008-10-25, 08:37 AM
Ah, thanks. Then I guess it's not going to work if powercfg requires admin rights.

tasks are:-

ExecuteMenuTask created: C:\WINDOWS\system32\powercfg.exe /s gbpvr
ExecuteMenuTask created: C:\WINDOWS\system32\powercfg.exe /s always_on
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#4
2008-10-25, 11:11 AM
It would be the other way around, the task would be run with Local System rights, which is a little different. The issue is that it must be a non-interactive (no screen output or key input) app.

Martin
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#5
2008-10-25, 03:06 PM
powercfg is a standard XP commandline only app. The only output from it would be if you specifically asked for it. The two examples I had above produce no output.

I've added 'everyone' to the authorised read/execute users and will have a try.


Ahhhhh - remote login in didn't spot it (the PCH and server are two floors apart) but dragging the two together shows that a DOS box flashes up momentarily on the server screen when the options are clicked on the PCH.

Does this make what I'm trying to do impossible then??

thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#6
2008-10-25, 03:22 PM
No. I'd start by adding a command line > C:\temp\martin.txt to read what is being output to the DOS box.

Martin
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#7
2008-10-25, 03:28 PM
Slight correction to my previous message.

I meant to say the dos box flashes up on the screen when the menu is clicked on the server and seemingly not when run the the pch.

Martin, I can't add your suggested extra line to anywhere as it is within gbpvr itself rather than a bat or cmd file i.e. in the plugins > add a task screen.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#8
2008-10-25, 03:36 PM
It won't let you add this as an argument?

Martin
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#9
2008-10-25, 04:25 PM
There isn't a lot of options available - as below. I'm assuming it is sub that opens the dos box to run the addon??
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#10
2008-10-25, 05:05 PM
I can executie a batch file containing powercfg from a task using cmd.exe as the program so tasks do run from the pch.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  custom task overlay issue robert2011 13 5,639 2011-04-15, 08:06 AM
Last Post: stustunz
  No wake up after custom hibernation gkovacsp 13 9,471 2010-02-10, 03:31 PM
Last Post: guudj77
  Some Custom Tasks don't hide GBPVR ydekmekji 6 2,183 2010-01-19, 04:58 PM
Last Post: ydekmekji
  Custom "overscan" zoom setting? imilne 0 1,222 2009-10-04, 05:50 PM
Last Post: imilne
  Special Trick to Create Custom Task? tjb 12 4,664 2009-08-31, 11:14 AM
Last Post: Snooze
  Running custom Auto-Convert khaver 1 1,160 2009-03-03, 05:11 PM
Last Post: khaver
  Custom Submenu Crashes When Using Slick Skin sfrasernz 5 1,991 2009-02-06, 10:10 PM
Last Post: Arty_Tigger
  Specifying custom recording settings Braklet 2 1,283 2008-11-18, 04:27 PM
Last Post: Braklet
  PreConversion tasks? bgowland 4 1,590 2008-10-28, 05:03 PM
Last Post: bgowland
  Need some help with a custom aspect ratio JP23 4 1,544 2008-09-07, 01:04 PM
Last Post: JP23

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

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

Linear Mode
Threaded Mode