Mirc
Mirc
heya!
Anyone know a way to read, with purebasic ,the text writed on a opened channel in Mirc ?
Anyone know a way to read, with purebasic ,the text writed on a opened channel in Mirc ?
Re: Mirc
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
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
möp
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.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
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
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
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.
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.
BASIC programmers never die, they just return without gosub.