23rd August 2008 - There was an issue with our name caching server at around 08:00AM GMT. It has been fixed.

Setting up Powerhome DS and CC remotes

Well, ask how to?

Setting up Powerhome DS and CC remotes

Postby JakeBullet on Sun Aug 26, 2007 11:00 am

Ok...

1st thing here is to make sure the DS and CC remotes work outside of eHome. Once this done and and you can use the CC and DS remotes by themselves the all you need to do is run the eHome menu editor and turn on the menus.

We use VBScript to run / active the remotes. You can see this code in the eHomeClient.vbs file

'=================================================================
Function EXT_RUN_PHCC()
'--- Powerhome remote control center
'--- have we already init'd this?
If g_oGbl.Cargo_Item("PHCC_INIT") = "1" Then
g_oGbl.EH_ActivatePHCC '--- activate it
Else
'--- set the path
g_oGbl.Cargo_Add "C:\Program Files\powerhome\phremotecc.exe", "PHCC_PATH"
'--- set the caption
g_oGbl.Cargo_Add "Remote Control Center", "PHCC_CAPTION"
'--- load and activate
g_oGbl.EH_ActivatePHCC
'--- OK, set the Init flag
g_oGbl.Cargo_Add "1", "PHCC_INIT"
'--- move the window --- the .7 is a delay to let the EXE init itself
g_oGbl.EH_MoveWindow 0, -20, 800, 547, (g_oGbl.Cargo_Item("PHCC_HWND")), 0.7
End If

End Function

A note on that 0.7 param in the EH_MoveWindow function. This is a delay before we send a resize events to the Powerhome remote window. If you recieve a Powerhome error (resize events) then set this value to something higher. --- 1.0 or 1.2


Toss out some questions if you have any. I know, I know... I need to do a help file...

:lol:
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby Mannyman on Tue Aug 28, 2007 4:39 am

I guess these are coordinates to play with for slightly larger window...
0, -20, 800, 547
User avatar
Mannyman
 
Posts: 118
Joined: Fri Aug 18, 2006 5:46 am

Postby JakeBullet on Tue Aug 28, 2007 8:53 am

Yep... the -20 hides the title bar. These numbers are for 800*600

so its left, top, width, height
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby JakeBullet on Tue Aug 28, 2007 9:13 am

OK... if you are running Win2000 800*600 then the numbers above are fine (0, -20, 800, 547) but if you are using WinXP then

0, -30, 800, 560 Should look better.
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am


Return to How to...

Who is online

Users browsing this forum: No registered users and 1 guest



FREE FORUM Hosting by AtFreeForum. Create your Free WEB FORUM Hosting now!
GROUP DISCUSSION Features - Free FORUM HOSTING Directory Listing - DISCUSSION FORUM Terms of Service - FREE PHPBB Hosting Privacy
- FASHION ACCESSORIES
cron