WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Internet

Internet Rat & Tat bei Internetproblemen

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 25.12.2002, 13:26   #1
domx
Jr. Member
 
Registriert seit: 20.07.2002
Alter: 43
Beiträge: 64


domx eine Nachricht über ICQ schicken
Standard IRC - Scripten

Hi Leute ich suche Leute die sich mit (M)irc Scripten auskennen
Wenn einer denkt er hat was drauf dann meldet euch bitte unter
domx@gmx.net oder ICQ: 22284225

ich bräuchte einen IRC Befehl muit dem ich aus einer TXT Text auslesen kann schaut ungefähr so aus:

on 1:TEXT:!test:#:/msg $chan $read $mircdir\txt\test.txt

nur funkt des leider net!

mfg domX
____________________________________
http://www.tuning-team-vienna.com
domx ist offline   Mit Zitat antworten
Alt 26.12.2002, 16:02   #2
Kurt.J
Newbie
 
Registriert seit: 26.12.2002
Beiträge: 11


Standard

Hi,

on *:TEXT:!test:#:/msg $chan $read(C:\datei.txt,2)

So könnte das aussehen, wenn ich das richtig im Kopf habe. Zur Erklärung: $read(Dateiname, Zeilennummer)

Ich selbst bin im mIRC-Scripting nicht gerade versiert, wahrscheinlich findest du in speziellen Foren dafür bessere Hilfen. Recht gute Tutorials gibts ebenfalls, das meiner Meinung nach beste ist ein solches von Pairc (leider zZt down, sonst unter www.pairc.com erreichbar).

Kurt
Kurt.J ist offline   Mit Zitat antworten
Alt 27.12.2002, 14:18   #3
James
Meisteroptiker
 
Registriert seit: 19.05.2000
Ort: Salzburg
Alter: 43
Beiträge: 1.495


James eine Nachricht über ICQ schicken
Standard

on *:TEXT:!test:#:msg $chan $read(funny.txt, 24)

diese zeile würde jetzt aktiviert werden wenn ein anderer(also bei dir selbst ned) !test im channel schreibt und dann würde es diesen channel wo das geschrieben worden ist ($chan) die line 24 aus dem file funny.txt ausgeben. die files funny.txt und das script file im gleichen verzeichniss befinden wenn das funny.txt woanders is musst du halt den pfad angeben c:\test\funny.txt...


geholfen wird im undernet channel #mircscripters
oder auf www.mircscripts.org

das hier ist ein auszug aus dem mirc help file zu $read...

$read(filename, [ntsw], [matchtext], [N])
Returns a single line of text from a file.

This identifier works in conjunction with the /write command.

//echo $read(funny.txt)

Reads a random line from the file funny.txt.

//echo $read(funny.txt, 24)

Reads line 24 from the file funny.txt.

//kick # $1 $read(kicks.txt)

Reads a random kick line from kicks.txt and uses it in the kick command.

//echo $read(info.txt, s, mirc)

Scans the file info.txt for a line beginning with the word mirc.

//echo $read(help.txt, w, *help*)

Scans the file help.txt for a line matching the wildcard text *help*.

If you specify the s or w switches, you can also specify the N value to specify the line you wish to start searching from in the file, eg.:

//echo $read(versions.txt, w, *mirc*, 100)

If the n switch is specified then the line read in will not be evaluated and will be treated as plain text.

If the first line in the file is a number, it must represent the total number of lines in the file. If you specify N = 0, mIRC returns the value of the first line if it's a number.

If the t switch is specified then mIRC will treat the first line in the file as plain text, even if it is a number.
James ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 18:59 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag