[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xAP Jabber
------=_NextPart_000_002D_01C8E070.994ABC30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ok, I've updated to the 0.5 beta and am now using the following
(<br/>) whi=
ch seems to work:
tmp=3D"Message.Send" & chr(10)
tmp=3Dtmp & "{" & chr(10)
tmp=3Dtmp & "to=3Dsomechimp@xxxxxxx" & chr(10)
tmp=3Dtmp & "body=3DEnvironment: [Info]<br/>Garage
Temperature: " & GarageL=
evel & " deg C. RackTop Temperature: " & RackTopLevel
& " deg C. RackBottom=
Temperature: " & RackBottomLevel & " deg C. Outside
Temperature: " & Outsi=
deLevel & " deg C." & chr(10)
tmp=3Dtmp & "}" & chr(10)
xap.sendxap tmp,"messenger.cmd"
Note that anything in just <> tags seems to cause the app to
disconnect fro=
m the Jabber server.
Thanks,
Martyn
----- Original Message -----=20
From: James Traynor=20
To: xap_automation@xxxxxxx=20
Sent: Monday, July 07, 2008 8:05 PM
Subject: Re: [xap_automation] xAP Jabber
using <BR> should do the trick.=20
(Jabber messages are pretty much HTML. The non-html message part is forme=
d from the html part so <BR> becomes a linefeed)
The display message method should work too but I think a bugette is stopp=
ing the line feeds going through.
hth
James
Martyn Wendon wrote:=20
Hello,
Using xAP Jabber, how can I formulate a message to encorporate line bre=
aks?
e.g.=20
xap-header
{
v=3D12
hop=3D1
uid=3DFF456200
class=3Dmessenger.cmd
source=3Dmi4.floor.AHSHASERVER
}
message.send
{
to=3Dsomechimp@xxxxxxx
body=3DEnvironment: <Info> Garage Temperature: 17.81 deg C. RackTop=
Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C. Outside Tem=
perature: 17.02 deg C.
}
I want the resulting IM message to look like:
Environment: <Info>
Garage Temperature: 17.81 deg C.
RackTop Temperature: 30.63 deg C.
RackBottom Temperature: 28.34 deg C.
Outside Temperature: 17.02 deg C.
I've tried various combinations of <br> \r \n \\r\\n \r\n etc etc but
n=
ot got it working yet - I'm sure I'm missing something simple???
Thanks,
Martyn
=20=20=20
------=_NextPart_000_002D_01C8E070.994ABC30
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ok, I've updated to the 0.5 beta
and am now using
the following (<br/>) which seems to
work:</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>tmp="Message.Send"
& chr(10)<BR>tmp=tmp &
"{" & chr(10)<BR>tmp=tmp & "<A
href="mailto:to=martynwendon%hotmail.com@xxxxxxx/msn">to=somechimp@<WBR>somejabber.<WBR>server</A>"
& chr(10)<BR>tmp=tmp & "body=Environment:
[Info]<br/>Garage
Temperature: " & GarageLevel & " deg C. RackTop
Temperature: " &
RackTopLevel & " deg C. RackBottom Temperature: "
& RackBottomLevel
& " deg C. Outside Temperature: " & OutsideLevel
& " deg C." &
chr(10)<BR>tmp=tmp & "}" &
chr(10)<BR>xap.sendxap
tmp,"messenger.cmd"</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Note that anything in just
<> tags seems to
cause the app to disconnect from the Jabber
server.</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Martyn</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message -----
</DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color:
black"><B>From:</B>
<A title=james.traynor@xxxxxxx href="mailto:james.traynor@xxxxxxx">James
Traynor</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=xap_automation@xxxxxxx
href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B>
Monday, July 07, 2008 8:05 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B>
Re: [xap_automation] xAP
Jabber</DIV>
<DIV><BR></DIV><BR>using <BR> should
do the trick. <BR>(Jabber messages
are pretty much HTML. The non-html message part is formed from the html
part
so <BR> becomes a linefeed)<BR>The display message
method should work
too but I think a bugette is stopping the line feeds going
through.<BR><BR>hth<BR><BR>James<BR><BR>Martyn
Wendon wrote:
<BLOCKQUOTE cite=mid:000b01c8e04a$68c96550$1201a8c0@xxxxxxx
type="cite">
<DIV id=ygrp-text>
<P></P>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Using xAP Jabber, how can I
formulate a message
to encorporate line breaks?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>e.g. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>xap-header<BR>{<BR>
v=12<BR>
hop=1<BR>
uid=FF456200<BR>
class=messenger.<WBR>cmd<BR>
source=mi4.floor.<WBR>AHSHASERVER<BR>}</FONT></DIV><FONT
face=Arial size=2>
<DIV><BR>message.send<BR>{<BR>
<A
href="mailto:to=somechimp@xxxxxxx"
moz-do-not-send="true">to=somechimp@<WBR>somejabber.<WBR>server</A><BR>
body=Environment: <Info> Garage Temperature: 17.81 deg C.
RackTop
Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C. Outside
Temperature: 17.02 deg C.<BR>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I want the resulting IM message to look like:</DIV>
<DIV> </DIV>
<DIV>Environment: <Info></DIV>
<DIV>Garage Temperature: 17.81 deg C.</DIV>
<DIV>RackTop Temperature: 30.63 deg C.</DIV>
<DIV>RackBottom Temperature: 28.34 deg C.</DIV>
<DIV>Outside Temperature: 17.02 deg C.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I've tried various combinations of <br> \r \n
<A
href="file://%5C%5Cr%5C%5Cn"
moz-do-not-send="true">\\r\\n</A> \r\n etc
etc but not got it working yet - I'm sure I'm missing something
simple???</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Martyn</DIV></FONT></DIV><!--End group
email --></BLOCKQUOTE><BR><SPAN
style="COLOR: white" width="1"></SPAN>
</BLOCKQUOTE>
<span width="1" style="color:
white;"/>__._,_.___</span>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- **begin egp html banner** -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=3990/stime=1215459171"
width="1" height="1"> <br>
<!-- **end egp html banner** -->
<!-- **begin egp html banner** -->
<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xap_automation/join;_ylc=X3oDMTJmM2oxN3Y2BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyMTU0NTkxNzE-">Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a> <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJka2E3NGljBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjE1NDU5MTcx">
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/">
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe">
Unsubscribe
</a>
<br>
</div>
<br>
<!-- **end egp html banner** -->
<span style="color: white;"/>__,_._,___</span>
</BODY></HTML>
------=_NextPart_000_002D_01C8E070.994ABC30--
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|