Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 04 2009 at 19:17 | IP Logged
|
|
|
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 |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: July 06 2009 at 11:37 | IP Logged
|
|
|
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 |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 06 2009 at 12:04 | IP Logged
|
|
|
i can try that -thanks
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: July 06 2009 at 12:23 | IP Logged
|
|
|
Would START /MIN powerhome.exe work?
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 06 2009 at 12:46 | IP Logged
|
|
|
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 |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 06 2009 at 19:31 | IP Logged
|
|
|
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 |
|
|