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 … 176 177 178 179 180 … 1231 Next »
Running UI apps from postprocessing.bat

 
  • 0 Vote(s) - 0 Average
Running UI apps from postprocessing.bat
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#1
2009-01-26, 08:12 PM
I have emailed sub privately, but hope to find out if anyone else has ideas on this.

Postprocessing.bat is run hidden, for fairly intelligent reasons. One side-effect of this is that this seems to limit utilities that need to interact with the user interface. In my case, I am trying to run POWERCFG to change the standby timeout, but it is having no effect from inside this batch file.

I have implemented a dodgy workaround involving piping the POWERCFG command to a batch file, and having the task scheduler check for it "every minute". I am using a small VBS script to run the batch file hidden, according to:

http://www.winhelponline.com/blog/ru...ommand-prompt/

This keeps the window hidden, but still passes through the UI-related commands. I feel clever, but not elegant.

I am wondering if anyone knows how to enable such utilities called from inside this file, while keeping the batch invisible?
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#2
2009-01-26, 09:00 PM
Hmmm. I use powercfg from windows scheduler to turn powersaving on from 2200 hours.
I did try to get it working from gbpvr's MVP/PCH menu as a menu item but they never had any effect. It worked from the pvrx2 interface on the server. This makes me think it is permissions rather than the UI.
I have a feeling it was due to the recording service not running as a system user and/or those sorts of permissions.

I gave in at that point as something else cropped up and I forgot to pursue it.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#3
2009-01-26, 09:09 PM
Just a guess:Maybe switch the setting for the gbpvrrecordingservice to: "allow to interact with desktop"

Hans
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#4
2009-01-26, 09:13 PM
OK - now I'm confused. Powercfg is a command-line tool isn't it? Where does the UI come into it?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2009-01-26, 10:28 PM (This post was last modified: 2009-01-26, 10:57 PM by pBS.)
i'd agree with HtV about the permissions..

but to run a gui or a batch file and have the window visible, just 'start' another batch file from the first one...works for me for comskip, doing one right now..
[allows me to cancel or pause the comskip during peak hd activity]
but that also may be dependent on the 'allow interaction w/desktop' also...Smile

i believe you can also run the batch file w/ 'runas' the desktop user and achieve same results..

i'm wondering why it's not the default service state from install...or at least save the current setting and reapply upon re-install..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#6
2009-01-27, 08:47 AM
HtV Wrote:Just a guess:Maybe switch the setting for the gbpvrrecordingservice to: "allow to interact with desktop"

Hans

Sorry: I should have clarified that I had already set this. It cleared up some other problems, but not this one.
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#7
2009-01-27, 08:53 AM
pBS Wrote:but to run a gui or a batch file and have the window visible, just 'start' another batch file from the first one...works for me for comskip, doing one right now..
[allows me to cancel or pause the comskip during peak hd activity]
but that also may be dependent on the 'allow interaction w/desktop' also...Smile

No. I am actually running POWERCFG from another batch file called by PostProcessing.bat. It had no effect until I piped the commands into yet another batch file, and checked for it with an "every minute" scheduled task.

I already have GB-PVR Recording Service set to interact with the desktop.

pBS Wrote:i believe you can also run the batch file w/ 'runas' the desktop user and achieve same results..

This command, on the other hand, I didn't even know until today. It seems a likely solution. I will try it soon.
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#8
2009-01-27, 08:56 AM
bgowland Wrote:OK - now I'm confused. Powercfg is a command-line tool isn't it? Where does the UI come into it?

Good question, and I don't have a clear answer. There are just some programs that don't respond, or respond strangely, unless they are allowed to interact with the "desktop" (the UI). Sub solved another problem for me by suggesting that I set the recording service with this allowance.

I am guessing that, in the case of Powercfg, it is considered to be something that can surprise users; suddenly, your computer is shutting down in one minute, and you didn't tell it to, and you didn't see anything tell it to. You know, that sort of thing.

Nevertheless, I am old enough to remember a time when my computers ALWAYS did as I told them. I want those days back.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#9
2009-01-27, 10:52 AM
Thinking to my powercfg problem where it works from the GUI on teh PC but not from an MVP

The recording service runs as user SYSTEM by default. PVRX2 runs as the current user.

RUNAS is looking favourite.
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#10
2009-01-30, 02:47 PM
martint123 Wrote:Thinking to my powercfg problem where it works from the GUI on teh PC but not from an MVP

The recording service runs as user SYSTEM by default. PVRX2 runs as the current user.

RUNAS is looking favourite.

Sadly, I've now had a chance to test this (yes, for hours...the file is invisible, after all), and RUNAS does not seem to solve the problem. When I use it to run the POWERCFG under my own user account name, there is no change in the process; the system ignores the command.
« 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
  Postprocessing and the recordings database shsw 1 1,521 2010-08-29, 04:46 PM
Last Post: sub
  Running comskip at a scheduled time? gonzo90017 4 2,171 2010-05-19, 06:09 AM
Last Post: pBS
  Lost in a sea of Acronyms. Confusion is running amuck in my head Talcum 8 3,028 2010-04-12, 08:07 AM
Last Post: ga_mueller
  ffdshow postprocessing on .ts file playback alibert 2 1,715 2010-04-05, 05:33 AM
Last Post: alibert
  webadmin not running? aneez 7 2,808 2010-02-24, 07:30 PM
Last Post: aneez
  File conversions not running luttrell1962 2 1,623 2010-02-06, 06:23 AM
Last Post: luttrell1962
  NVIDIA 6200 Settings (running slow/choppy) Atrus 7 6,034 2010-01-29, 12:13 AM
Last Post: Zeno110
  quick postprocessing Q drbenjamin 2 1,837 2010-01-25, 08:50 PM
Last Post: drbenjamin
  Crash when running pvxr2 to import xml file carpeVideo 5 2,602 2010-01-07, 02:40 PM
Last Post: carpeVideo
  Multiple audio decoders running liteswap 2 1,507 2009-11-12, 11:37 PM
Last Post: liteswap

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

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

Linear Mode
Threaded Mode