Page 1 of 1
Mirc
Posted: Mon Oct 27, 2003 5:20 pm
by kenet
heya!
Anyone know a way to read, with purebasic ,the text writed on a opened channel in Mirc ?
Re: Mirc
Posted: Mon Oct 27, 2003 9:56 pm
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
Posted: Tue Oct 28, 2003 4:24 am
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
möp
Posted: Tue Oct 28, 2003 5:50 am
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
Posted: Tue Oct 28, 2003 5:00 pm
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.
Posted: Tue Oct 28, 2003 8:59 pm
by kenet
ha yeah, should be that
thx! i'll take a look

Posted: Wed Oct 29, 2003 4:05 am
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 :/
Posted: Wed Oct 29, 2003 5:28 am
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?
Posted: Wed Oct 29, 2003 8:40 am
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

Posted: Wed Oct 29, 2003 12:10 pm
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.
Posted: Wed Oct 29, 2003 1:06 pm
by kenet
huuum yes
but how i get the text back ?
sorry this is getting embarassing :/
Posted: Wed Oct 29, 2003 2:48 pm
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!
Posted: Wed Oct 29, 2003 5:54 pm
by AngelSoul
It looks like mirc can't recognize PB procedures

Posted: Wed Oct 29, 2003 11:07 pm
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
