Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    help get profile

    Share
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open help get profile

    Post by jonewaram on Wed Oct 30, 2013 5:56 pm

    slm dostan Naz 
    khobin???khaste nabashid8-) 
    azizan mikhastam bedonam get profile ro
    bekham b bot online ezaf konam chetor
    hame chize midonam
    just nemidonam cheto to pv taraf bayad piyade
    she age y xml bedid ya y rahnamaee dameton garm
    :@}->--: IN LOVE Boos 
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Thu Oct 31, 2013 3:39 am

    dostan yeki help bede
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 20
    Location : Iran , Qazvin , Qazvin

    Open Re: help get profile

    Post by Mehran Mahmoudi on Thu Oct 31, 2013 6:09 am


    To Alan Profile Ro Kamel Gerefti?
    Age Gerefti ke Dige Tamume, be Jaye Inke Masalan Country Ro Toye Label Ya TextBox Neshun Bedi Ya Harchi Dige,Bia Befres Pv Taraf,alan daram miram madrese 9vaght ke kamel tozih bedam






    [You must be registered and logged in to see this link.]
    __

    [You must be registered and logged in to see this link.]

    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Thu Oct 31, 2013 6:15 am

    ok dadashe golam age yeki betone y tozih mokhtasar bede ya age xml bede dge behtar mamnonesh misham
    avatar
    Nima
    Csharp Admin
    Csharp Admin

    Posts : 210
    Points : 326
    Thanks : 56
    Join date : 2013-07-08
    Age : 23
    Location : Iran-AmoL

    Open Re: help get profile

    Post by Nima on Thu Oct 31, 2013 7:52 am


    Doste Aziz Xml Get Profile ro Dari ? kho age dari injorie

    if (msg.Body == "p/")
    {
    // masalan Nima.Send(xml get profilo mizari bad to xml bejaye id mizari (msg.Body.Replase("p/", "")) );
    }

    Hamin





    avatar
    Nima
    Csharp Admin
    Csharp Admin

    Posts : 210
    Points : 326
    Thanks : 56
    Join date : 2013-07-08
    Age : 23
    Location : Iran-AmoL

    Open Re: help get profile

    Post by Nima on Thu Oct 31, 2013 8:42 am

    inam xml get profile ke to forum hast gereftam

    Code:

    Nima.Send("<iq to='" + (msg.Body.Replace("p/", "").Replace("&", "&amp;").Replace("'", "&apos;").Replace("\"", "&quot;").Replace(">", "&gt;").Replace("<", "&lt;")) + "@nimbuzz.com' type='get' id='CsharpTeaM'><query xmlns='http://jabber.org/protocol/profile'/></iq>");
    ♦ Good Luck ♦





    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Fri Nov 01, 2013 7:15 am

    Code:
    if (msg.Body == "p/")
    {
    // masalan Nima.Send(xml get profilo mizari bad to xml bejaye id mizari (msg.Body.Replase("p/", "")) );
    }

    dada ino k gofti chetor bayad beshe???
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sat Nov 02, 2013 7:52 am

    AQA in surc get prf chekaresh konam k to pv bedash
    plz help me


    Code:
     private void button1_Click(object sender, EventArgs e)
            {
                x.Server = "nimbuzz.com";
                x.ConnectServer = "o.nimbuzz.com";
                x.Open(textBox1.Text, textBox2.Text, textBox3.Text, 50);
                x.OnAuthError += new XmppElementHandler(failed);
                x.OnLogin += new ObjectHandler(connected);
                x.OnClose += new ObjectHandler(dc);
                x.OnReadXml += new agsXMPP.XmlHandler(OnReadXml);
                x.OnMessage += new agsXMPP.protocol.client.MessageHandler(cnt_OnMessage);

            }
            private void failed(object sender, Element e)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new XmppElementHandler(failed), new object[] { sender, e });
                }
                else
                {

                    textBox1.BackColor = Color.Red;
                    textBox2.BackColor = Color.Red;
                    textBox3.BackColor = Color.Red;
                    textBox1.Enabled = true;
                    textBox2.Enabled = true;
                    textBox3.Enabled = true;

                }
            }
            private void connected(object sender)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new ObjectHandler(connected), new object[] { sender });
                }
                else
                {

                    textBox1.BackColor = Color.Green;
                    textBox2.BackColor = Color.Green;
                    textBox3.BackColor = Color.Green;
                    textBox1.Enabled = false;
                    textBox2.Enabled = false;
                    textBox3.Enabled = false;

                }
            }
            private void dc(object sender)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new ObjectHandler(dc), new object[] { sender });
                }
                else
                {
                    textBox1.BackColor = Color.Yellow;
                    textBox2.BackColor = Color.Yellow;
                    textBox3.BackColor = Color.Yellow;
                    textBox1.Enabled = true;
                    textBox2.Enabled = true;
                    textBox3.Enabled = true;

                }
            }
            void cnt_OnMessage(object sender, agsXMPP.protocol.client.Message Msg)
            {
                if (InvokeRequired)
                    BeginInvoke(new agsXMPP.protocol.client.MessageHandler(cnt_OnMessage), new object[] { sender, Msg });
                else
                {
                    if (Msg.Body.ToLower().Contains("p/"))
                    {
                   
                      x.Send("<iq to='" + Msg.Body.Replace("p/", "") + "@nimbuzz.com' type='get' id='amirslr'><query xmlns='http://jabber.org/protocol/profile'/></iq>");
                     
                    }

                }
            }
            private void button3_Click(object sender, EventArgs e)
            {
              x.Send("<iq to='" + textBox4.Text  + "@nimbuzz.com' type='get' id='jonewaram'><query xmlns='http://jabber.org/protocol/profile'/></iq>");
            }
            private void OnReadXml(object sender, string xml)
            {
                if (InvokeRequired)
                {
                    BeginInvoke(new XmlHandler(OnReadXml), new object[] { sender, xml });
                    return;
                }
                else
                {
                    xml = Strings.Replace(xml, "\"", "'", 1, -1, CompareMethod.Text);

                    if (((Strings.InStr(xml,"<value>http://jabber.org/protocol/profile</value>",CompareMethod.Binary) != 0)))
                    {
                        string PRo = xml;

                        if ((Strings.InStr(PRo, "'status'", CompareMethod.Binary) != 0))
                        {
                            string prSTS = PRo.Substring(PRo.IndexOf("<field var='status'") + 1);
                            prSTS = prSTS.Substring(0, prSTS.IndexOf("</") - 0);
                            string stSKH = prSTS.Substring(prSTS.IndexOf(">") + 2);
                            string STS = stSKH.Substring(stSKH.IndexOf(">") + 1);
                            label4.Text += STS;
                        }
                        if ((Strings.InStr(PRo, "'nickname'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='nickname'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string Nick = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label5.Text += Nick;
                        }
                        if ((Strings.InStr(PRo, "'street'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='street'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string street = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label6.Text += street;
                        }
                        if ((Strings.InStr(PRo, "'locality'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='locality'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string local = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label7.Text += local;
                        }
                        if ((Strings.InStr(PRo, "'country'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='country'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string con = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label8.Text += con;
                        }
                        if ((Strings.InStr(PRo, "'username'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='username'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string user = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label9.Text += user;
                        }
                       
                    }
                }
            }
         
        }
    }
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sat Nov 02, 2013 9:29 am

    aqa yeki komak kone lotfan kheyli niyaz daram
    avatar
    rasolahwazi
    New Member
    New Member

    Posts : 23
    Points : 59
    Thanks : 2
    Join date : 2013-07-01

    Open Re: help get profile

    Post by rasolahwazi on Sat Nov 02, 2013 10:15 am

    سلام عزیزم
    من قبل دو هفته پیش یادم اومد یکی نوشته بودم
    اینم سورس کاملش
    گذاشتم گفتم شاید به دردت بخوره
    تصویر



    [You must be registered and logged in to see this link.]

    لینگ سورس
    [You must be registered and logged in to see this link.]
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sat Nov 02, 2013 2:07 pm

    dada azizam get prf ro kamel baladam fadat soalo qashang bekhon dad mikham remot she to pv bedash just hamino eshkal daram dostan aziz bazam migam mikham prf ro kamel to pv neshon bed
    tanx
    in codo k dadam just age mishe yeki y taqire kochik bede k to pv prf ro bede tnx hamegi


    Code:
    private void button1_Click(object sender, EventArgs e)
            {
                x.Server = "nimbuzz.com";
                x.ConnectServer = "o.nimbuzz.com";
                x.Open(textBox1.Text, textBox2.Text, textBox3.Text, 50);
                x.OnAuthError += new XmppElementHandler(failed);
                x.OnLogin += new ObjectHandler(connected);
                x.OnClose += new ObjectHandler(dc);
                x.OnReadXml += new agsXMPP.XmlHandler(OnReadXml);
                x.OnMessage += new agsXMPP.protocol.client.MessageHandler(cnt_OnMessage);

            }
            private void failed(object sender, Element e)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new XmppElementHandler(failed), new object[] { sender, e });
                }
                else
                {

                    textBox1.BackColor = Color.Red;
                    textBox2.BackColor = Color.Red;
                    textBox3.BackColor = Color.Red;
                    textBox1.Enabled = true;
                    textBox2.Enabled = true;
                    textBox3.Enabled = true;

                }
            }
            private void connected(object sender)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new ObjectHandler(connected), new object[] { sender });
                }
                else
                {

                    textBox1.BackColor = Color.Green;
                    textBox2.BackColor = Color.Green;
                    textBox3.BackColor = Color.Green;
                    textBox1.Enabled = false;
                    textBox2.Enabled = false;
                    textBox3.Enabled = false;

                }
            }
            private void dc(object sender)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new ObjectHandler(dc), new object[] { sender });
                }
                else
                {
                    textBox1.BackColor = Color.Yellow;
                    textBox2.BackColor = Color.Yellow;
                    textBox3.BackColor = Color.Yellow;
                    textBox1.Enabled = true;
                    textBox2.Enabled = true;
                    textBox3.Enabled = true;

                }
            }
            void cnt_OnMessage(object sender, agsXMPP.protocol.client.Message Msg)
            {
                if (InvokeRequired)
                    BeginInvoke(new agsXMPP.protocol.client.MessageHandler(cnt_OnMessage), new object[] { sender, Msg });
                else
                {
                    if (Msg.Body.ToLower().Contains("p/"))
                    {
                 
                      x.Send("<iq to='" + Msg.Body.Replace("p/", "") + "@nimbuzz.com' type='get' id='amirslr'><query xmlns='http://jabber.org/protocol/profile'/></iq>");
                   
                    }

                }
            }
            private void button3_Click(object sender, EventArgs e)
            {
              x.Send("<iq to='" + textBox4.Text  + "@nimbuzz.com' type='get' id='jonewaram'><query xmlns='http://jabber.org/protocol/profile'/></iq>");
            }
            private void OnReadXml(object sender, string xml)
            {
                if (InvokeRequired)
                {
                    BeginInvoke(new XmlHandler(OnReadXml), new object[] { sender, xml });
                    return;
                }
                else
                {
                    xml = Strings.Replace(xml, "\"", "'", 1, -1, CompareMethod.Text);

                    if (((Strings.InStr(xml,"<value>http://jabber.org/protocol/profile</value>",CompareMethod.Binary) != 0)))
                    {
                        string PRo = xml;

                        if ((Strings.InStr(PRo, "'status'", CompareMethod.Binary) != 0))
                        {
                            string prSTS = PRo.Substring(PRo.IndexOf("<field var='status'") + 1);
                            prSTS = prSTS.Substring(0, prSTS.IndexOf("</") - 0);
                            string stSKH = prSTS.Substring(prSTS.IndexOf(">") + 2);
                            string STS = stSKH.Substring(stSKH.IndexOf(">") + 1);
                            label4.Text += STS;
                        }
                        if ((Strings.InStr(PRo, "'nickname'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='nickname'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string Nick = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label5.Text += Nick;
                        }
                        if ((Strings.InStr(PRo, "'street'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='street'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string street = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label6.Text += street;
                        }
                        if ((Strings.InStr(PRo, "'locality'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='locality'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string local = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label7.Text += local;
                        }
                        if ((Strings.InStr(PRo, "'country'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='country'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string con = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label8.Text += con;
                        }
                        if ((Strings.InStr(PRo, "'username'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='username'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string user = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            label9.Text += user;
                        }
                     
                    }
                }
            }
       
        }
    }


    alan 2 roze giram age mishe yeki dorosto hesabi komak kone lotfan
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sat Nov 02, 2013 5:35 pm

    kasi nist komak kone bad jor lazemam:( 
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sun Nov 03, 2013 2:25 am

    ALAN 2 roze cheshmam b sait kasi komak nemikone Smile 
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sun Nov 03, 2013 11:08 am

    jedi jedi hichkas komak nemikone ha
    Khande lol! 
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Tue Nov 05, 2013 10:12 am

    yeki komak nemikone???
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 20
    Location : Iran , Qazvin , Qazvin

    Open Re: help get profile

    Post by Mehran Mahmoudi on Tue Nov 05, 2013 12:28 pm

    Khande Mammad Bza In Softam Tamum She behet Komak Mikonam Dorostesh Koni Khande
    Alan Hamash Madrese Hastam Khoone Basham Dars Mikhoonam ya Minevisam !






    [You must be registered and logged in to see this link.]
    __

    [You must be registered and logged in to see this link.]

    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Tue Nov 05, 2013 12:31 pm

    bashad:D 
    avatar
    ar6iya
    Junior Member
    Junior Member

    Posts : 55
    Points : 123
    Thanks : 34
    Join date : 2013-06-11
    Age : 24
    Location : shiraz

    Open Re: help get profile

    Post by ar6iya on Thu Nov 07, 2013 5:45 pm

    DAdash man pc nadaram va emtahan nakardam in ravesho, moshkeli ke dari inke vaqti dastor midi ke profile idi behet bde naqes behet mide ya neshon behet nmide , moshklet ine ?

    daqiq nemidonam ama bayad az string use koni

    ro hamon source get profile ina ezafe kon

    Code:
    string b = textBox1.Text//jaye ke profile behet neshon mide
    Code:
        x.OnMessage += new agsXMPP.protocol.client.MessageHandler(cnt_OnMessage1);
    Code:
    void cnt_OnMessage1(object sender, agsXMPP.protocol.client.Message Msg)
              {
                  if (InvokeRequired)
                      BeginInvoke(new agsXMPP.protocol.client.MessageHandler(cnt_OnMessage1), new object[] { sender, Msg });
                  else
                  {
                      if (Msg.Body.ToLower().Contains("p/"))
                      {
                          textBox2.Text = (Msg.Body.ToLower().Replace("p/", ""))// Textbox2 jaye ke idi taraf midi ke profilesho begiri

                          x.Send("<message to=\"" + Msg.From + "\" type=\"chat\"><body>" + b + "</body></message>");

                      }

                  }
              }
    bazam sharmandam age javab nadad pcim dorost beshe vasat dorosesh mikonam
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Thu Nov 07, 2013 6:20 pm

    nashod dadasham
    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: help get profile

    Post by iman saeedi on Fri Nov 08, 2013 12:42 pm

    [/font]
    etelato bezar aval bere to ye textbox yani chi
    idi ke goft p/iman bere to ye textbox bad get profile ham ke kard bere to ye textbox dg hala ye timer bezar xml send pmo tosh qarar bede va jaye id textboxi ro bezar ke id dastor girandero gerefte bad to qesmate pmesham textboxi ke get profile karde ro bede va timer ro roye 1000 tanzim kon hala bezar harki goft p/ timer feal she va be ina pm bede age nafahmidi bego bishtar tozih bedam Khande
    [/font]
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sat Nov 09, 2013 4:55 am

    iman yekam bishtar tozih bede Khande 
    avatar
    ar6iya
    Junior Member
    Junior Member

    Posts : 55
    Points : 123
    Thanks : 34
    Join date : 2013-06-11
    Age : 24
    Location : shiraz

    Open Re: help get profile

    Post by ar6iya on Sat Nov 09, 2013 1:53 pm

    DAqiqan Iman ham , hamin ke source ke goozashtam dare mige. ama ba in tafavot ke ye timer bayad be source ezafe beshe.
    avatar
    h0s$€!n
    New Member
    New Member

    Posts : 9
    Points : 16
    Thanks : 3
    Join date : 2013-07-26

    Open Re: help get profile

    Post by h0s$€!n on Sat Nov 09, 2013 2:34 pm

    aziz chera inqad khodeto azyat mikoni:D 
    begu label1 send she masalan Khande 
    hamin Khande





    my ID : HOSSEIN_76.AHVAZ@N.C
    POWER@N.C


    eynak
    avatar
    pokhte
    Csharp Admin
    Csharp Admin

    Posts : 139
    Points : 253
    Thanks : 82
    Join date : 2013-06-29
    Age : 22
    Location : IRaN/Fars/KaZerouN

    Open Re: help get profile

    Post by pokhte on Sat Nov 09, 2013 2:36 pm

    man source bacheha ro yekami dastkari kardam befarma :
    vase inke responsi nadad , [yani id block bod ya tu server nabod] mitoni ye timer bezari ke check kone Pmi send karde ya na , age na bege ke blocke (hale in ghesmatesh ro nadashtam benevisam)!

    Code:

                  if(msg.Body.ToLower().StartsWith("p/"))
                    {
                        MessageFrom = msg.From.ToString();
                        ram.Send("<iq to='" + (msg.Body.Replace("p/", "").Replace("&", "&amp;").Replace("'", "&apos;").Replace("\"", "&quot;").Replace(">", "&gt;").Replace("<", "&lt;")) + "@nimbuzz.com' type='get' id='CsharpTeaM'><query xmlns='http://jabber.org/protocol/profile'/></iq>");
                    }
    Code:

            private string Profile, MessageFrom;
            private void OnReadXml(object sender, string xml)
            {
                if (InvokeRequired)
                {
                    BeginInvoke(new XmlHandler(OnReadXml), new object[] { sender, xml });
                    return;
                }
                else
                {
                    xml = Strings.Replace(xml, "\"", "'", 1, -1, CompareMethod.Text);

                    if (((Strings.InStr(xml, "<value>http://jabber.org/protocol/profile</value>", CompareMethod.Binary) != 0)))
                    {
                        string PRo = xml;
                        Profile = "";
                        if ((Strings.InStr(PRo, "'status'", CompareMethod.Binary) != 0))
                        {
                            string prSTS = PRo.Substring(PRo.IndexOf("<field var='status'") + 1);
                            prSTS = prSTS.Substring(0, prSTS.IndexOf("</") - 0);
                            string stSKH = prSTS.Substring(prSTS.IndexOf(">") + 2);
                            string STS = stSKH.Substring(stSKH.IndexOf(">") + 1);
                            Profile += STS;
                        }
                        if ((Strings.InStr(PRo, "'nickname'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='nickname'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string Nick = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            Profile += Nick;
                        }
                        if ((Strings.InStr(PRo, "'street'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='street'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string street = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            Profile += street;
                        }
                        if ((Strings.InStr(PRo, "'locality'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='locality'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string local = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            Profile += local;
                        }
                        if ((Strings.InStr(PRo, "'country'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='country'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string con = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            Profile += con;
                        }
                        if ((Strings.InStr(PRo, "'username'", CompareMethod.Binary) != 0))
                        {
                            string prSTS1 = PRo.Substring(PRo.IndexOf("<field var='username'") + 1);
                            prSTS1 = prSTS1.Substring(0, prSTS1.IndexOf("</") - 0);
                            string stSKH1 = prSTS1.Substring(prSTS1.IndexOf(">") + 2);
                            string user = stSKH1.Substring(stSKH1.IndexOf(">") + 1);
                            Profile += user;
                            ram.Send(new agsXMPP.protocol.client.Message(new Jid(MessageFrom),MessageType.chat, Profile));
                            Profile = null;
                            MessageFrom = null;
                        }

                    }
                }
            }





    There is no where to run. Destiny will be come...
    avatar
    jonewaram
    Csharp Admin
    Csharp Admin

    Posts : 231
    Points : 407
    Thanks : 120
    Join date : 2013-08-18
    Age : 26
    Location : Iran♥khozestan♥ahwaz

    Open Re: help get profile

    Post by jonewaram on Sun Nov 10, 2013 7:44 am

    aqa dame hamaton garm makhsoasan dash ramtin(pokhte) age eshteba nakonam
    mrc az komaki k kardin

    Sponsored content

    Open Re: help get profile

    Post by Sponsored content


      Current date/time is Wed Oct 18, 2017 3:14 pm