Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: How to delay startup? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: July 04 2009 at 19:17 | IP Logged Quote jeffw_00

So I have problems with PH re-establishing communication with PLC after a reboot. disconnecting/reconnecting PLC fixed it, but I discovered today that it can also be fixed with a simple Re-init of powerhome.

I -believe- the problem is due to powerhome trying to connect to the PLC on powerup before the USB drivers are loaded.

So I would like to delay the startup of powerhome. Obviously I can write a DOS script that waits 30sec before starting Powerhome, but when I do this...

doze 30 (doze.exe is a useful DOS program)
cd c:\progra~1\powerhome
start pwrhome.exe

Powerhome starts up properly, but NOT Minimized! I can't seem to get it to start minimized unless I call it from the startup folder directory.

Does anyone know how to do a delayed startup of powerhome where it minimizes? Thanks!

(As a work-around, I'm doing a re-init 60 sec after it initialized - not better, since events that were scheduled before the re-init could be lost - which could be quite a number if the PC went down due to a power outage)


Thanks!
/j


Edited by jeffw_00 - July 04 2009 at 19:59
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 06 2009 at 11:37 | IP Logged Quote smarty

This might help, but does not answer your question directly....

What I do is use the ph_windowstate(1) command in a "start-up" macro to minimize the PH window.

Edited by smarty - July 06 2009 at 11:37


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: July 06 2009 at 12:04 | IP Logged Quote jeffw_00

i can try that -thanks
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: July 06 2009 at 12:23 | IP Logged Quote BeachBum

Would START /MIN powerhome.exe work?

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: July 06 2009 at 12:46 | IP Logged Quote jeffw_00

Hi Beachbum. thanks for the post.
Try it, I did. Didn't work for me.
That's why I posted 8-}
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: July 06 2009 at 19:31 | IP Logged Quote jeffw_00

thanks smarty...

doze 30
cd c:\progra~1\powerhome
start pwrhome.exe

and use ph_windowstate(1) as the first line in the init macro

cool!
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum