Mirc

Just starting out? Need help? Post your questions and find answers here.
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Mirc

Post by kenet »

heya!
Anyone know a way to read, with purebasic ,the text writed on a opened channel in Mirc ?
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Re: Mirc

Post by WolfgangS »

kenet wrote:heya!
Anyone know a way to read, with purebasic ,the text writed on a opened channel in Mirc ?

Install a local IRC server and try to connect it.
If you're successful read CAREFULLY the RFT2812 manual (search it via Google in your language), and do what it describes.

if i remember right there are several IRC clients written in Purebasic around ...

Good Luck !

MFG
WolfgangS

Code: Select all

web.s="irc.debian.org"
local.s="127.0.0.1"
Connection=OpenNetworkConnection(web.s,6667)
If Connection
  Debug "connected"
Else
  debug "Error, can't connect to the irc.debian.org server"
EndIf
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Post by kenet »

i don't want to make an irc client! but read "what's going on" on a chan allready opened with a Mirc
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

möp

Post by WolfgangS »

kenet wrote:i don't want to make an irc client! but read "what's going on" on a chan allready opened with a Mirc
It's possible only for clients to get all the data you want from the IRC server because the server need to now whom it shall send all text from the other clients.

viewtopic.php?p=33943&highlight=irc+client#33943

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
Britney
New User
New User
Posts: 8
Joined: Tue Oct 21, 2003 2:06 pm

Post by Britney »

Kenet: Are you referring to something like DDE? Go into mIRC and type: /help DDE - I believe there is a DDE client/server example on the PB Resource site. I recently posted for help concerning the sendmessage() thing, which you should also maybe look into.
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Post by kenet »

ha yeah, should be that
thx! i'll take a look :)
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Post by kenet »

well, i looked on some site around
i learn some things :) but well i still don't know how to get the text writed on a #chan opened with mirc :/
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> i don't want to make an irc client! but read "what's going on" on a chan
> allready opened with a Mirc

mIRC has a log which you can enable that will save all text in a channel
as a file, that you can read offline later... is that what you want?
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Post by kenet »

nop
i want to read it "on the fly"

i'm sure it can be done with DDE
but i don't know how...

basicly, i want to make a "mirror" in a PB window, of what is it saying on a channel. and analyse it, and show only what i need to see :)
AngelSoul
User
User
Posts: 55
Joined: Tue Jul 29, 2003 9:16 am
Location: Canada

Post by AngelSoul »

It is possible since mIRC does support DLL files. I haven't created any with PureBasic yet but take a look at the help file from mIRC for the /DLL command.

Let's say you make a DLL with the following procedure:

Procedure TestDLL (mWnd,aWnd,data.s,param.s,show.b,nopause.b)
MessageRequester("Message",data,0)
mirccommand=2
ProcedureReturn mirccommand
EndProcedure

// you must leave those parameters as they are (mWnd,aWnd,data.s,param.s,show.b,nopause.b) you can change the name if you want but make sure you have those 5 there.


// Now in your remote.ini file //

on 1 : TEXT : * : ? : { /DLL dllfile.dll TestDLL $$1 }

-----------
basically the $$1 contains the text received. replace : ? : for : # : to receive channel text messages

Now i'm unsure if it'll work just like that, it's been a while i haven't played with it and one more thing to consider, procedure names are CASE sensitive.

The mirccommand is a flag on how mirc will behave upon exiting the procedure.

Consult the help file from mIRC for more details as there are other ways to make this work.

Hope it helps.
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Post by kenet »

huuum yes
but how i get the text back ?

sorry this is getting embarassing :/
AngelSoul
User
User
Posts: 55
Joined: Tue Jul 29, 2003 9:16 am
Location: Canada

Post by AngelSoul »

It's possible to send back mIRC commands via the procedure such as text, please wait a bit till i get home and i'll make you a nice and complete example.

Cheers!
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
AngelSoul
User
User
Posts: 55
Joined: Tue Jul 29, 2003 9:16 am
Location: Canada

Post by AngelSoul »

It looks like mirc can't recognize PB procedures :(
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
kenet
User
User
Posts: 24
Joined: Wed Apr 30, 2003 5:44 pm
Contact:

Post by kenet »

bah :) look like i should better forgot this idea heh

but well, thx for your help and time
i don't want to bother you much :)
Post Reply