FireBuzZ TM Community
Welcome To FireBuzZ Forum

tutorial to create a mini room searcher  Png
FireBuzZ TM Community
Welcome To FireBuzZ Forum

tutorial to create a mini room searcher  Png
FireBuzZ TM Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

FireBuzZ TM Community

nokte mohem: gozashtane har goone matlab dar morede v.p.n va s.o.c.k.s va har goone f.i.l.t.e.r shekan va bahs haye s.i.a.si o mazhabi mamnoo ast dar soorate moshahede barkhord khahad shod
 
HomeGalleryLatest imagesSearchRegisterLog in
Latest topics
» Salam Bacheha
tutorial to create a mini room searcher  I_icon_minitimeby TasbeaT Thu Aug 11, 2016 8:33 pm

» id Maker Onlain FireBuzZ TeaM
tutorial to create a mini room searcher  I_icon_minitimeby modaaaa Sun Mar 06, 2016 2:51 am

» id maker v2 coded by 50
tutorial to create a mini room searcher  I_icon_minitimeby modaaaa Sun Mar 06, 2016 2:50 am

» آپدیت جدید xmod برای نسخه جدید کلش اف کلنز (زمستان 2016) .هماهنگ با 8.116.2
tutorial to create a mini room searcher  I_icon_minitimeby l!v!lonster Wed Feb 17, 2016 10:02 am

» help plz komak mikham fori
tutorial to create a mini room searcher  I_icon_minitimeby l!v!lonster Tue Feb 16, 2016 4:37 pm

» فیلم اموزشی نصب Ejabberd
tutorial to create a mini room searcher  I_icon_minitimeby kurd98 Fri Jul 24, 2015 3:26 pm

» اجبرد بر روی شبکه محلی
tutorial to create a mini room searcher  I_icon_minitimeby kurd98 Fri Jul 24, 2015 3:20 pm

» online spybot and server bots...
tutorial to create a mini room searcher  I_icon_minitimeby huss4in. Wed Jul 15, 2015 3:53 am

» online mobile server bot 24/7 online
tutorial to create a mini room searcher  I_icon_minitimeby i).t33m Sat May 30, 2015 6:52 am

» TeamViewer 10.0.41459
tutorial to create a mini room searcher  I_icon_minitimeby i).t33m Sat May 30, 2015 6:38 am

» Topic Jame -- Server bot
tutorial to create a mini room searcher  I_icon_minitimeby shona_chokra Sun Mar 22, 2015 12:19 am

» PV Message Flooder Nimbuzz 2015 by sholeh
tutorial to create a mini room searcher  I_icon_minitimeby sholeh Sat Mar 07, 2015 2:11 pm

» Room + PV Flooder Nimbuzz 2015
tutorial to create a mini room searcher  I_icon_minitimeby sholeh Tue Feb 17, 2015 6:57 pm

» PV Flooder Nimbuzz 2015 by sholeh
tutorial to create a mini room searcher  I_icon_minitimeby sholeh Sat Feb 14, 2015 12:42 am

» chat box vb.net...
tutorial to create a mini room searcher  I_icon_minitimeby the.last.black.hat Wed Jan 28, 2015 5:23 pm

» Change Avatar by vb.net...
tutorial to create a mini room searcher  I_icon_minitimeby the.last.black.hat Wed Jan 28, 2015 3:29 pm

» online bot severs
tutorial to create a mini room searcher  I_icon_minitimeby lof-team Wed Jan 21, 2015 6:10 pm

» Evil floOder
tutorial to create a mini room searcher  I_icon_minitimeby kurad Wed Nov 19, 2014 2:35 pm

» super black scorpion flood room = 4 pvt traget in one time 3.0
tutorial to create a mini room searcher  I_icon_minitimeby hesho Sat Aug 23, 2014 8:24 pm

» v*p*s AT LOW PRICE
tutorial to create a mini room searcher  I_icon_minitimeby sweetsam01 Tue Jul 29, 2014 6:20 pm

Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
esi.0181 (1065)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
l!v!lonster (839)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
masoud (686)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
yaaser (452)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
Mer+sad (391)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
TasbeaT (367)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
musikh (326)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
pe3are-tariki (313)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
sabuory (308)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
viper-drakula (271)
tutorial to create a mini room searcher  I_vote_lcaptutorial to create a mini room searcher  I_voting_bartutorial to create a mini room searcher  I_vote_rcap 
Top posting users this week
No user
Who is online?
In total there are 19 users online :: 0 Registered, 0 Hidden and 19 Guests :: 1 Bot

None

Most users ever online was 113 on Thu Dec 12, 2013 8:09 am
Search
 
 

Display results as :
 
Rechercher Advanced Search
دیکشنری آنلاین
Sokhanani Az Behesht
Keywords
May 2024
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  
CalendarCalendar

Share
 

 tutorial to create a mini room searcher

View previous topic View next topic Go down 
AuthorMessage
masoud
Admin
Admin

masoud
Male Medals : 5
Posts : 686
Emtiaz : 41308
Thanked : 95
Join date : 2013-06-09
Asl Asl : masoud 19 iran
My Mood : tutorial to create a mini room searcher  Mashghool

tutorial to create a mini room searcher  Empty
PostSubject: tutorial to create a mini room searcher    tutorial to create a mini room searcher  I_icon_minitimeTue Aug 06, 2013 11:37 am

Quote :
first add below controls to your form

// control name
// 3 textbox
private System.Windows.Forms.TextBox txtid; // a textbox , rename to txtid
private System.Windows.Forms.TextBox txtpsw; // a textbox, rename to txtpsw
private System.Windows.Forms.TextBox txtroom; // a textbox, rename to txtroom
// 5 button
private System.Windows.Forms.Button btnlogout;// a Button, rename to btnlogout
private System.Windows.Forms.Button btnstart;////////////////////////////////////
private System.Windows.Forms.Button btnstop;/////////////////////////////////
private System.Windows.Forms.Button btnclear;///////////////////////////////////////
private System.Windows.Forms.Button btnlogin;//////////////////////////
// 1 listbox
private System.Windows.Forms.ListBox listroom; //ListBox , rename to listroom
// 1 timer
private System.Windows.Forms.Timer timer1;//a timer
// 1 label
private System.Windows.Forms.Label lblinfo;// a label,rename to lblinfo

Quote :
from properties change interval of timer1 to 2000(2 sec)

this.timer1.Interval = 2000;


Quote :
in a free place of form1 class past this code
Code:
Code:
 agsXMPP.XmppClientConnection x;
        int i = 0;
[color]
with doublclick on btnlogin past below codes into onclick events of that
Code:
[/color]
Code:
 x = new agsXMPP.XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com" };
            x.Open(txtid.Text, txtpsw.Text, "www.freebuzz.ir");
            x.OnLogin += new agsXMPP.ObjectHandler(OnLogin);
            x.OnAuthError += new agsXMPP.XmppElementHandler(OnAuthError);
            x.OnClose += new agsXMPP.ObjectHandler(OnClose);
            x.OnReadXml += new agsXMPP.XmlHandler(OnReadXml);



Quote :
repeat for btnlogout and past below codes
Code:
Code:
 if (x.XmppConnectionState != agsXMPP.XmppConnectionState.Disconnected)
                x.Close();


Quote :
repeat doublclick on btnstart and past this codes
Code:
Code:
if (btnstart.Text == "pause")
            {
                btnstart.Text = "start";
                timer1.Stop();
          
            }else{
             
                btnstart.Text = "pause";
                timer1.Start();
            }


Quote :
repeat for btnstop and past
Code:
Code:
btnstart.Text = "start";
            timer1.Stop();
            i = 0;


Quote :
and for btnclear
[color]

Code:
[/color]
Code:
listroom.Items.Clear();


Quote :
now doublclick on listroom
[color]

Code:
[/color]
Code:
try
            {
 
              
System.Windows.Forms.Clipboard.SetText(listroom.SelectedItem.ToString().Substring(0,
 listroom.SelectedItem.ToString().IndexOf("@") - 0));//copy room name to
 clipboard
            }
            catch { }


Quote :
for timer1 too
[color]

Code:
[/color]
Code:
 try
            {

 
               x.Send("<iq type='set'
to='conference.nimbuzz.com'><query
xmlns='jabber:iq:search'><set
xmlns='http://jabber.org/protocol/rsm'><index>" + i +
"</index><max>1</max></set><x type='get'
xmlns='jabber:x:data'><field var='name'><value>" +
txtroom.Text +
"</value></field></x></query></iq>"); //
index "i" max 1 with any send grab one room , u can change 1 to 10 and
grabb 10 room on any recive and use of next and prive like
nimbuzzsymbian  in this case dont use of timer
                i += 1;
                lblinfo.Text = "Searching...";
            }
            catch { }


Quote :
for handel onlogin onreadxml ... we write thats codes into a free place of form1 class
[color]

Code:
[/color]
Code:
private void OnClose(object sender)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.ObjectHandler(OnClose), new object[] { sender });
                return;
            }
           
                lblinfo.ForeColor = Color.Red;
                lblinfo.Text = "Disconnected";
          
        }
        private void OnLogin(object sender)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.ObjectHandler(OnLogin), new object[] { sender });
                return;
            }
                lblinfo.ForeColor = Color.Green;
                lblinfo.Text = "connected";
            

        }
        private void OnAuthError(object sender, agsXMPP.Xml.Dom.Element e)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.XmppElementHandler(OnAuthError), new object[] { sender, e });
                return;
            }
            
                lblinfo.ForeColor = Color.Red;
                lblinfo.Text = "Wrong Id or Password";
             
        }
        private void OnReadXml(object sender, string xml)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.XmlHandler(OnReadXml), new object[] { sender, xml });
            }
            else
            {
                string r;
                string t;
                xml = xml.Replace("\"", "'");
                if (xml.IndexOf("from='conference.nimbuzz.com'") != -1)
                {

                    if (xml.IndexOf("<field var='jid' type='jid-single'><value>") != -1)
                    {

                        r = xml.Substring(xml.IndexOf("<field var='jid' type='jid-single'><value>") + 42);
                        r = r.Substring(0, r.IndexOf("</value>") - 0);//jid of conference

                        if (xml.IndexOf("<field var='num_users' type='text-single'><value>") != -1)
                        {

 
                           t = xml.Substring(xml.IndexOf("<field
var='num_users' type='text-single'><value>") + 49);
                            t = t.Substring(0, t.IndexOf("</value>") - 0); // number of users
                            listroom.Items.Add(r + " 25/" + t);
                        }
                    }
                    else
                    {
                        lblinfo.Text="Dosetn Exist any room with this keyword" ;
                        btnstop_Click(null, null);

                    }
                }
            }
        }
 



Quote :
all our codes
[color]

Code:
[/color]
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        agsXMPP.XmppClientConnection x;
        int i = 0;
    
        private void OnClose(object sender)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.ObjectHandler(OnClose), new object[] { sender });
                return;
            }
           
                lblinfo.ForeColor = Color.Red;
                lblinfo.Text = "Disconnected";
          
        }
        private void OnLogin(object sender)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.ObjectHandler(OnLogin), new object[] { sender });
                return;
            }
                lblinfo.ForeColor = Color.Green;
                lblinfo.Text = "connected";
            

        }
        private void OnAuthError(object sender, agsXMPP.Xml.Dom.Element e)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.XmppElementHandler(OnAuthError), new object[] { sender, e });
                return;
            }
            
                lblinfo.ForeColor = Color.Red;
                lblinfo.Text = "Wrong Id or Password";
             
        }
        private void OnReadXml(object sender, string xml)
        {
            if (base.InvokeRequired)
            {
                base.BeginInvoke(new agsXMPP.XmlHandler(OnReadXml), new object[] { sender, xml });
            }
            else
            {
                string r;
                string t;
                xml = xml.Replace("\"", "'");
                if (xml.IndexOf("from='conference.nimbuzz.com'") != -1)
                {

                    if (xml.IndexOf("<field var='jid' type='jid-single'><value>") != -1)
                    {

                        r = xml.Substring(xml.IndexOf("<field var='jid' type='jid-single'><value>") + 42);
                        r = r.Substring(0, r.IndexOf("</value>") - 0);//jid of conference

                        if (xml.IndexOf("<field var='num_users' type='text-single'><value>") != -1)
                        {

 
                           t = xml.Substring(xml.IndexOf("<field
var='num_users' type='text-single'><value>") + 49);
                            t = t.Substring(0, t.IndexOf("</value>") - 0); // number of users
                            listroom.Items.Add(r + " 25/" + t);
                        }
                    }
                    else
                    {
                        lblinfo.Text="Dosetn Exist any room with this keyword" ;
                        btnstop_Click(null, null);

                    }
                }
            }
        }
 
    

        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {

 
               x.Send("<iq type='set'
to='conference.nimbuzz.com'><query
xmlns='jabber:iq:search'><set
xmlns='http://jabber.org/protocol/rsm'><index>" + i +
"</index><max>1</max></set><x type='get'
xmlns='jabber:x:data'><field var='name'><value>" +
txtroom.Text +
"</value></field></x></query></iq>");
                i += 1;
                lblinfo.Text = "Searching...";
            }
            catch { }
        }

   

        private void listroom_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
 
              
System.Windows.Forms.Clipboard.SetText(listroom.SelectedItem.ToString().Substring(0,
 listroom.SelectedItem.ToString().IndexOf("@") - 0));//copy room name to
 clipboard
            }
            catch { }
        }

        private void btnlogin_Click(object sender, EventArgs e)
        {
            x = new agsXMPP.XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com" };
            x.Open(txtid.Text, txtpsw.Text, "www.freebuzz.ir");
            x.OnLogin += new agsXMPP.ObjectHandler(OnLogin);
            x.OnAuthError += new agsXMPP.XmppElementHandler(OnAuthError);
            x.OnClose += new agsXMPP.ObjectHandler(OnClose);
            x.OnReadXml += new agsXMPP.XmlHandler(OnReadXml);
        }

        private void btnlogout_Click(object sender, EventArgs e)
        {
            if (x.XmppConnectionState != agsXMPP.XmppConnectionState.Disconnected)
                x.Close();
        }

        private void btnstart_Click(object sender, EventArgs e)
        {
            if (btnstart.Text == "pause")
            {
                btnstart.Text = "start";
                timer1.Stop();
          
            }else{
             
                btnstart.Text = "pause";
                timer1.Start();
            }
        }

        private void btnstop_Click(object sender, EventArgs e)
        {
            btnstart.Text = "start";
            timer1.Stop();
            i = 0;
        }

        private void btnclear_Click(object sender, EventArgs e)
        {
            listroom.Items.Clear();
        }

     
    }
}



Quote :
this is our soft result
[color]

tutorial to create a mini room searcher  Search_room


 [/color]
Back to top Go down
http://www.fire-buzz.ir
atheet98
new member
new member

atheet98
Posts : 1
Emtiaz : 39141
Thanked : 0
Join date : 2013-08-20

tutorial to create a mini room searcher  Empty
PostSubject: Re: tutorial to create a mini room searcher    tutorial to create a mini room searcher  I_icon_minitimeTue Aug 20, 2013 11:25 pm

thanx
Back to top Go down
 

tutorial to create a mini room searcher

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Power Team Mini Id Tools [ Room Searcher and Block List Options ] - News
» New1-Team Advertiser Bot v2 ( 20 ID in 20 Room ) + Room Searcher ( Adv in pv and room) + Source C#
» New1-Team Mini Full Massenger v1(S2a + S2o(without any adv) + Chat pv + Chat room + room manager + room Badigard) + source .. C#
» Source RoOm SearCher C#
»  Room Searcher For NImbuzz

Permissions in this forum:You cannot reply to topics in this forum
FireBuzZ TM Community :: PROGRAMMING :: C#.NET-