mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2012
Posts: 14
D
d0wn Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jan 2012
Posts: 14
i tested on 6.16 and is working fine, but on 7.19 and 7.27 not.

i want to identify a text on a file and return to the text below

ex:
hello
hey

find "hello" and return to "hey"

Code:
alias testread {
  if ($read(test.txt,nw,hello)) { return $gettok($read(test.txt,n,$calc($readn +1)),1,32) }
}

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
This works fine for me here. Are you sure there isn't any whitespace on the "hello" line that is preventing the match (ie. "hello ")?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Mar 2010
Posts: 145
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 145
Try using Wildcards instead? (e.g: *Hello*)


Nothing...

Link Copied to Clipboard