Author |
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 29 2007 at 21:00 | IP Logged
|
|
|
Allllrighty!
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
|
Posted: January 31 2007 at 14:59 | IP Logged
|
|
|
Tony,
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
|
Posted: January 31 2007 at 17:49 | IP Logged
|
|
|
Thanks Dave. I'll try that tonight.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 31 2007 at 22:30 | IP Logged
|
|
|
No workie...
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
|
Posted: February 01 2007 at 09:12 | IP Logged
|
|
|
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>
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
|
Posted: February 01 2007 at 13:32 | IP Logged
|
|
|
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!
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: February 01 2007 at 14:21 | IP Logged
|
|
|
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.
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
|
Posted: February 01 2007 at 19:01 | IP Logged
|
|
|
Heh. The " - 1" worked! Thanks!
|
Back to Top |
|
|
cmhardwick Senior Member
Joined: July 08 2006 Location: United States
Online Status: Offline Posts: 290
|
Posted: February 01 2007 at 22:32 | IP Logged
|
|
|
I was close ... at least it was a space problem
__________________ Cicero, Enjoying automation!
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: February 02 2007 at 10:39 | IP Logged
|
|
|
Thanks for this tip. This will work for my setup!!!
++++++++++++++++++++++++++++++++++++++++++++++++++++
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
|
Posted: February 02 2007 at 22:20 | IP Logged
|
|
|
Try...
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: 728
|
Posted: February 03 2007 at 12:08 | IP Logged
|
|
|
Once again, thanks Tony. That worked.
__________________ 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
|
Posted: February 03 2007 at 12:19 | IP Logged
|
|
|
I just found this will work, too...
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 |
|
|
|
|