Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
hedayat #1
Member since Sep 2011 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Change Status does not work?
Hi all,

this code work very well just for one time:
objXmpp.status = "text1";

objXmpp.SendPresence();


But if i will call it again and again, my status does not change!!! it just works for first Time!!! why???
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This code must work as long as you are connected to the server.
Please post you code and Xml logs when it does not work for you.

Alex
Avatar
hedayat #3
Member since Sep 2011 · 4 posts
Group memberships: Members
Show profile · Link to this post
You can test it very easy...

Create a timer with 5000 interval.. In the timer action change the status..... You can see it !!!

where is the XML log ?
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by hedayat:
You can test it very easy...

Create a timer with 5000 interval.. In the timer action change the status..... You can see it !!!

no I can't. Works as expected for me.

Quote by hedayat:
where is the XML log ?

http://www.ag-software.net/matrix-xmpp-sdk/matrix-develope…
Avatar
hedayat #5
Member since Sep 2011 · 4 posts
Group memberships: Members
Show profile · Link to this post
one times its work very well, but just one time.

i've got this two events:
objXmpp.OnReadXml += new XmlHandler(objXmpp_OnReadXml);
objXmpp.OnWriteXml += new XmlHandler(objXmpp_OnWriteXml);

this is the XML, write xml,
<presence><status>11:29:53 PM</status><priority>5</priority></presence>

read XML does not rased
Avatar
Alex #6
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I need the complete Xml log of your session.
Avatar
Alex #7
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #5
Quote by hedayat:
this is the XML, write xml,
<presence><status>11:29:53 PM</status><priority>5</priority></presence>

read XML does not rased

have you ever been connected and authenticated to the server before you change your status?

Alex
Avatar
hedayat #8
Member since Sep 2011 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hi,

It works, But there is another problem... look at this scenario pleases.

at first i set the Status like this:  

objXmpp.Status = "Text1";
objXmpp.Open();

after an interval time(for example 10 Sec) i change the status to Text2:
objXmpp.Status = "Text2";
objXmpp.SendMyPresence();

it changes the status. but after a while(for instance 5 sec) the Gtalk's status changes to "Text1" automatically...  why???
Avatar
Alex #9
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by hedayat:
it changes the status. but after a while(for instance 5 sec) the Gtalk's status changes to "Text1" automatically...  why???

I have no idea. MatriX does not change the status on its own.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS