| 
    
     | 
       
        | Author |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Allllrighty!
           | Posted: January 29 2007 at 21:00 | IP Logged |   |  
           | 
 |  
 What am I doing wrong here?
 
 
 
| Code: 
 
    
    | 
      
       | ph_ssrequest ( "ip", port, "name", "pw", "FORMULA", "ph_openiewindow( ~'PH Window~',  ~'http://ip:port/ph-cgi/directhtml?html='<html> <body> {CID} </body> </html>'~', 128, -1, -1, 800, 600, 10)" ) |  |  |  |  
        | Back to Top |       |  
        |  |  
        | dhoward Admin Group
 
  
  
 Joined: June 29 2001
 Location: United States
 Online Status: Offline
 Posts: 4447
 | 
          Tony,
           | Posted: January 31 2007 at 14:59 | IP Logged |   |  
           | 
 |  
 Not sure if my testing replicates yours or not, but the formula below was successfully run in PowerHome to communicate to a DCC client:
 
 
 
| Code: 
 
    
    | 
      
       | ph_ssrequest("ip", port, "user", "password", "FORMULA", "ph_openiewindow('PH Window','http://ip:port/ph-cgi/directhtml?html=~" <html> <body> {CID} </body> </html>~" ',128, - 1, - 1,800,600,10)") |  |  |  
 HTH,
 
 Dave.
 
 
 Edited by dhoward - January 31 2007 at 15:11
 |  
        | Back to Top |       |  
        |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Thanks Dave. I'll try that tonight.
           | Posted: January 31 2007 at 17:49 | IP Logged |   |  
           | 
 |  |  
        | Back to Top |       |  
        |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          No workie...
           | Posted: January 31 2007 at 22:30 | IP Logged |   |  
           | 
 |  
 This in...
 
 
 
| Code: 
 
    
    | 
      
       | ph_ssrequest("ip", port, "id", "pw", "FORMULA", "ph_openiewindow('PH Window','http://ip:port/ph-cgi/directhtml?html=~"< html> <body> {CID}</body> </html>~"', 128, -1, -1, 1600, 1200, 10)") |  |  |  
 Gives this out...
 
 
 
| Quote: 
 
    
    | 
      
       | The result of your previous formula: ph_ssrequest("ip", port, "id", "pw", "FORMULA", "ph_openiewindow('PH  Window','http://ip:port/ph-cgi/directhtml?html=~"{CID}~"', 128, -1, -1, 1600, 1200, 10)") 
 is: PHSSP/1.0 200 OK Server: PowerHome DCC Socket Server/1.1 Content-type: text Content-Length: 1 !
 |  |  |  
 
 Edited by TonyNo - January 31 2007 at 22:33
 |  
        | Back to Top |       |  
        |  |  
        | cmhardwick Senior Member
 
  
  
 Joined: July 08 2006
 Location: United States
 Online Status: Offline
 Posts: 290
 | 
          Not sure if it makes a difference, but there is a space in your beginning html tag. You're code shows < html> instead of <html>
           | Posted: February 01 2007 at 09:12 | IP Logged |   |  
           | 
 |  I'm not sure if that will kill it or not. Just something I spotted.
 
 __________________
 Cicero, Enjoying automation!
 |  
        | Back to Top |       |  
        |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          The board really messes with HTML code (no space in the real line). It took a while for me to get it to even show that much!
           | Posted: February 01 2007 at 13:32 | IP Logged |   |  
           | 
 |  |  
        | Back to Top |       |  
        |  |  
        | dhoward Admin Group
 
  
  
 Joined: June 29 2001
 Location: United States
 Online Status: Offline
 Posts: 4447
 | 
          Heh, Tony, I know what you mean.  I must have edited my reply about 7 times before I was finally satisfied with the spacing and absence of added junk.
           | Posted: February 01 2007 at 14:21 | IP Logged |   |  
           | 
 |  
 However, based upon what you're getting back, the actual ph_openiewindow formula is what is having a problem.  Based upon the code you posted (which may not be actually what you've got), the problem is most likely the negative signs in front of the 1's.  I would verify that a space before and after the dash exists (I got the same error until I fixed this).  It's really irritating sometimes how picky PowerBuilder is on this issue.
 
 Dave.
 
 |  
        | Back to Top |       |  
        |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Heh. The " - 1" worked! Thanks!
           | Posted: February 01 2007 at 19:01 | IP Logged |   |  
           | 
 |  |  
        | Back to Top |       |  
        |  |  
        | cmhardwick Senior Member
 
  
  
 Joined: July 08 2006
 Location: United States
 Online Status: Offline
 Posts: 290
 | 
          I was close ... at least it was a space problem
           | Posted: February 01 2007 at 22:32 | IP Logged |   |  
           | 
 |   
 __________________
 Cicero, Enjoying automation!
 |  
        | Back to Top |       |  
        |  |  
        | smarty Super User
 
  
  
 Joined: May 21 2006
 Location: United States
 Online Status: Offline
 Posts: 729
 | 
          Thanks for this tip.  This will work for my setup!!!
           | Posted: February 02 2007 at 10:39 | IP Logged |   |  
           | 
 |  
 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 
 Not meaning to hijack this thread (but it appears already complete), how do I get the following quotes to work?
 
 
 Not working:
 ph_openiewindow( "MARTY House - Device Selection Window", "http://localhost/ph-cgi/directhtml?html='ROOM_:{ROOM SELECT}<FONT FACE="Times New Roman" SIZE="+3"  COLOR="#FF0000">Example</FONT><br>DEVICE:{ROO M DEVICE SELECT}<br>STATUS:{ROOM DEVICE STATUS}'", 196, -1, -1, 1100, 540, 5)
 
 Works:
 ph_openiewindow( "MARTY House - Device Selection Window", "http://localhost/ph-cgi/directhtml?html='<b>ROOM_: {ROOM SELECT}</b><br>DEVICE: {ROOM DEVICE SELECT}<br>STATUS: {ROOM DEVICE STATUS}'", 196, -1, -1, 1100, 540, 3)
 
 How do I make a font color change work?
 
 
 __________________
 Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
 |  
        | Back to Top |     |  
        |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Try...
           | Posted: February 02 2007 at 22:20 | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | ph_openiewindow( "MARTY House - Device Selection Window", "http://localhost/ph-cgi/directhtml?html='ROOM_:{ROOM SELECT}<FONT SIZE=+3 COLOR=red>Example</FONT><br>DEVICE:{ROOM DEVICE SELECT}<br>STATUS:{ROOM DEVICE STATUS}'", 196, -1, -1, 1100, 540, 5) |  |  |  
 Edited by TonyNo - February 02 2007 at 22:20
 |  
        | Back to Top |       |  
        |  |  
        | smarty Super User
 
  
  
 Joined: May 21 2006
 Location: United States
 Online Status: Offline
 Posts: 729
 | 
          Once again, thanks Tony.  That worked.
           | Posted: February 03 2007 at 12:08 | IP Logged |   |  
           | 
 |  
 __________________
 Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
 |  
        | Back to Top |     |  
        |  |  
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          I just found this will work, too...
           | Posted: February 03 2007 at 12:19 | IP Logged |   |  
           | 
 |  
 ph_openiewindow( "MARTY House - Device Selection Window", "http://localhost/ph-cgi/directhtml?html='ROOM_:{ROOM SELECT}<FONT SIZE=+3 face=~"arial black~">Example</FONT><br>DEVICE:{ROOM DEVICE SELECT}<br>STATUS:{ROOM DEVICE STATUS}'", 196, -1, -1, 1100, 540, 5)
 
 Edited by TonyNo - February 03 2007 at 12:26
 |  
        | Back to Top |       |  
        |  |  |  |