Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Remote CC & setccobjgraphic *SOLVED* Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sjvonstein
Groupie
Groupie


Joined: February 05 2010
Location: United States
Online Status: Offline
Posts: 75
Posted: April 26 2010 at 13:35 | IP Logged Quote sjvonstein

I finally got the ph_setobjgraphic function to work. I haven't seen it written correctly anywhere on the boards, so below is my example:

Code:

if(ph_getinsteonlevel("TABLELAMP")=0,ph_setccobjgraphic("__A G-ALL","TABLELAMPSTATUS","C:\Program Files\powerhome\web\graphics\buttons\b1gray-d_75.gif"," "),ph_setccobjgraphic("__AG-ALL","TABLELAMPSTATUS","C:\Progr am Files\powerhome\web\graphics\buttons\b1green-d_75.gif"," "))


That being said, I am getting a weird problem with remote CC computers. Whenever the trigger is, errr... triggered... the graphic completely disappears from the CC, only to reappear if I restart the remote CC application. Any suggestions? It functions properly on the server running PH. Graphics display and change as intended.

Edited by sjvonstein - May 02 2010 at 18:35
Back to Top View sjvonstein's Profile Search for other posts by sjvonstein
 
sjvonstein
Groupie
Groupie


Joined: February 05 2010
Location: United States
Online Status: Offline
Posts: 75
Posted: April 29 2010 at 16:29 | IP Logged Quote sjvonstein

Anyone that can help me out here? Changing background colors updates perfectly to the Remote CC. I still can't figure out why the graphic change isn't working.
Back to Top View sjvonstein's Profile Search for other posts by sjvonstein
 
sjvonstein
Groupie
Groupie


Joined: February 05 2010
Location: United States
Online Status: Offline
Posts: 75
Posted: May 02 2010 at 18:36 | IP Logged Quote sjvonstein

Solved it myself. When the remote machine has the graphic files installed in a different location as compared to the host machine, the *.ini file settings are not applied to setobjgraphic graphic file paths.
Back to Top View sjvonstein's Profile Search for other posts by sjvonstein
 

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