Log for #mirc on 2008-01-03


Session Start: Thu Jan 03 00:00:00 2008
Session Ident: #mirc
[00:14] <Roby> hello. another question about mIRC scripting: why doesnt this work: "//echo $r
[00:15] <Roby> * /echo: insufficient parameters
[00:15] <Roby> works with ABC
[00:18] <Roby> the real question is - how do I make it work :)
[00:24] <DFJKDFJ> H
[00:27] <Bekar> roby: echo -a ...
[00:28] <Bekar> Roby: echoing without a target is bad.. BAD...
[00:28] <Bekar> always echo to a target.. If you don't care which window, then use either -a
[00:28] <Bekar> If you do care, then echo #target ...
[00:29] <Bekar> this also stops numbers from being swallowed when you echo a number. if you
[00:31] <Roby> indeed, it works with echo now, but how do I make it work in a script? like: %
[00:45] <Roby> how do I specify its text - not a colour code?
[00:53] <Bekar> Roby: the only time the number/letter issue comes up is in a $read() wildcard
[00:54] <Roby> yep, I $read wildcard from a text file, then $right. can I make it work?
[00:54] <Roby> maybe $strip?
[00:54] <Bekar> if you're reading a wildcard string from a file, and the value is possibly a
[00:54] <Bekar> which is 'n' I think.
[00:55] <Bekar> hrm.. wait.. no, i was thinking backwards.
[00:55] <Bekar> show me what you're trying to do.
[00:55] <Bekar> and what exactally isn't working.
[00:55] <Roby> sec, will type
[01:03] <Roby> all for now, I am trying to understand what is happening in the script, I wrot
[01:03] <Bekar> .. and you've not told me what it's doing, so I can't really help you.
[01:04] <Roby> ok, I got it, just wasnt looking where I supposed to, will type now what is go
[01:10] <Roby> %whatIfoundinthefile = $read(C:\file.txt, w, * $+ %whatIlookforinthefile $+ *)
[01:10] <Roby> if ( A0 isin %whatIfoundinthefile ) {
[01:10] <Roby> if ( B0 isin %whatIfoundinthefile ) {
[01:10] <Roby> %whatIfoundinthefile = $right(%whatIfoundinthefile,-1)
[01:10] <Roby> }
[01:10] <Roby> %whatIfoundinthefile = $right(%whatIfoundinthefile,-1)
[01:12] <abou> hyyyyyyyyy
[01:12] <abou> kayfa l 7al
[01:14] <_roby> here it is Bekar: http://pastebin.com/d1c3bec4a
[01:33] <Bekar> *waits for internet connection to catch up*
[01:33] <_roby> http://pastebin.com/d2087444d
[01:33] <_roby> check this - its what it does short :)
[01:42] <Bekar> umm..
[01:42] <Bekar> want the first two characters right?
[01:43] <Bekar> so use $left(%whatIfoundinthefile, 2)
[01:44] <Bekar> *whee!* 1008G 8.0G 949G 1% /var/local/datastore
[01:44] * _[NoiZ] is now known as [NoiZ]
[01:45] <_roby> I want last two characters, but if first character of last two is 0, then I w
[01:47] <Bekar> is it always 0-padded?
[01:49] <_roby> if 0, then remove it, it can, it always starts with B, always 3 characters
[01:50] <Bekar> ok, so they are always zero-padded.
[01:50] <_roby> remove B always, but if 0, then also 0 removed
[01:50] <Bekar> is 'b01' (or whatever it happens to be) the only thing on the line, or is it
[01:51] <_roby> its more text there - 3 words in the text file
[01:51] <_roby> each line 3 words
[01:52] <Bekar> b01 word word
[01:52] <Bekar> ok
[01:52] <_roby> something.B01 something $timestamp
[01:53] <Bekar> $base($right($gettok($read(test.txt, w, *word*), 1, 32), -1), 10, 10)
[01:53] <_roby> =o
[01:53] <Bekar> so. the $read() in the middle is unchanged.
[01:54] <Bekar> you then get the first word, using a $gettok() in this instance. you could al
[01:54] <Bekar> then you do the $right()
[01:54] <Bekar> and the $base() is to get rid of leading 0's.
[01:55] <_roby> its basically the same as I have, only $base is added. should $right work if
[01:58] <Bekar> the $gettok() is to grab the first word. you don't have that.
[01:58] <Bekar> the $base() replaces the if stuff you've got.
[02:00] <_roby> but its still $right from $read (file, w, word)
[02:01] <_roby> Ill try it in the script, but I think its gonna see it as colour code again
[02:54] <phpnuborn> hey jet wake up, buddy
[03:16] <Roby> thanks, Bekar, $gettok and $deltok worked correctly - not like $right or $left
[03:41] <jinijava> hi all
[03:46] <Bekar> ;)
[04:27] <Ariax> hello
[04:35] * cop493 is now known as cop
[05:37] <Jacksoft> hi all
[05:53] <bobsob> Happy new year -> right back at ya
[06:00] <m0t4n3l> sall
[06:01] <m0t4n3l> e careva roman?
[06:16] <OrhanZ> Is there an admin here?
[07:48] * Kniht` is now known as Kniht
[08:32] <diff> Is it possible to encapsulate a hashtable as a property? "Public Property intH
[08:33] <Cyborg_sa> which protection script is compatible with mIRC 6.31
[08:33] <sat> does this look like the VB help channel?
[08:33] <Cyborg_sa> no
[08:33] <sat> Cyborg_sa, i have no idea
[08:34] <LO_KEY> Cyborg_sa we dunno, we dont test nor recommend pre-made scripts
[08:35] <Jacksoft> anyone can give me a list with all raws? :|
[08:35] <diff> Ha, wrong channel.
[08:35] <sat> thought so :p
[08:35] <sat> Jacksoft there are a few sites that have a lot of them
[08:35] <sat> unfortunately www.mirc.net is down
[08:36] <Jacksoft> ah, mirc.net resuscited
[08:36] <Jacksoft> *_*
[08:36] <sat> or wait, it isn't
[08:36] <sat> well there you go then :)
[08:36] <Jacksoft> good good
[08:36] <Jacksoft> poor mirc.net
[08:36] <Jacksoft> hd crash
[08:36] <sat> note that even mirc.net's list is not necessarily complete
[08:37] <Jacksoft> and now it's at 1year turnet back :(
[08:37] <Jacksoft> *turned
[08:37] <sat> yeah
[08:54] <boubou> hi
[09:24] <cornflake> guys, anyone around that could sort me out with a quick regex to remove t
[09:25] <argv[0]> //echo -a $regsubex(this (test)is a(test), /\(.+?\)/g, )
[09:27] <Sais> And you meant "e.g." not "i.e.".
[09:27] <argv[0]> ie works
[09:28] <Kollectiv> ff is better
[09:28] <Sais> lol
[09:29] <Sais> i.e. would imply that that was the only thing that fitted the description, not
[09:30] <argv[0]> no it wouldnt
[09:30] <argv[0]> "in other words, 'This Is A(Test) leaving This Is A'"
[09:32] <argv[0]> and if you make a minor change from "leaving" to "would leave", then it mak
[09:34] <Kollectiv> e.g. is a better fit
[09:35] <argv[0]> theyre pretty interchangeable
[09:35] <Kollectiv> not really
[09:36] <Kollectiv> "This Is A(Test) leaving This Is A" is not another way of saying "remove
[09:36] <Kollectiv> it's an example, hence e.g.
[09:36] <argv[0]> thats not what the sentence was though
[09:37] <argv[0]> "I would like to make a swear kick. For example, when someone says XYZ my s
[09:37] <Sais> By that reading there's no point having both. "id est" = "that is", which - in
[09:37] <argv[0]> "I would like to make a swear kick. In other words, when someone says XYZ m
[09:37] <Sais> fits*
[09:37] <Kollectiv> argv[0]: yes, you second example would also be wrong
[09:37] <Kollectiv> your*
[09:37] <argv[0]> not really
[09:37] <Kollectiv> yes really
[09:38] <argv[0]> its describing the first sentence in other words
[09:38] <argv[0]> makes perfect sense to me.
[09:38] <argv[0]> you're making the assumption and conclusion that the second sentence can on
[09:38] <Sais> It does if you misread i.e.
[09:38] * Hrung- is now known as Hrung
[09:38] <argv[0]> Sais misread?
[09:39] <Kollectiv> http://ancienthistory.about.com/od/abbreviations/f/ievseg.htm
[09:39] <Sais> http://sara.natcorp.ox.ac.uk/cgi-bin/saraWeb?qy=i.e.
[09:39] <Sais> heh.
[09:40] <Sais> ...and why does this machine think that 4.35 GB > 38GB ??
[09:41] <Kollectiv> your machine thinks?
[09:42] <Sais> personification
[09:43] <Kollectiv> anthropomorphization!
[09:44] <Sais> that too....
[09:50] <cornflake> alot of discussion about my use of the english language :P
[09:50] <Kollectiv> latin!
[09:50] <cornflake> argv[0], thanks, but i actually dont know what will be between the bracke
[09:50] <Kollectiv> exclamation mark!
[09:51] <argv[0]> it doesnt matter...
[09:51] <argv[0]> if you actually looked at the example
[09:51] <cornflake> i did look at the example
[09:51] <argv[0]> not hard enough, then
[09:51] <cornflake> ah
[09:51] <cornflake> duh
[09:52] <cornflake> for some reason i thought the 2nd (test) was specifing the text to remove
[10:50] <florin89b> sal
[11:33] <costy> care styty unde sa joc shi eu trivia
[11:33] <costy> :(
[11:33] <jackal^> english
[11:38] <[ro][clic> sal
[11:39] <[ro][clic> cum ma conectez si eu
[11:39] <[ro][clic> ?
[11:39] <mely> zdravo
[11:39] <jackal^> english
[11:39] <[ro][clic> no spik english
[11:39] <mely> no bosna and hercegovina
[11:39] <Vicarious> yes you do..
[11:58] <eFrankThe> Hey im looking for someone who wants to make some money
[11:58] <Raccoon> good for you.
[11:58] <Raccoon> now get lost.
[11:59] <mamir82> are you ok
[11:59] <Raccoon> you want to pay me to write a script for you?
[12:00] <mamir82> non bye
[12:00] <culiptist> Hello is there anyone from TPB on?
[14:09] <Jacksoft> bye all
[14:19] <clden> sal
[14:48] <jackal^> whats the difference (if any) between /raw and /quote ? will one of them wo
[14:49] <Kollectiv> /quote is more common
[14:53] <tomalak> indeed, /raw is the mIRC version of that command ... but /quote is included
[14:53] <tomalak> well, confusion reasons
[14:55] <jackal^> thanks
[15:21] <sicz> hello all :)
[15:21] <sicz> may i start my questions?
[15:22] <Sais> You have to wait for the bell.
[15:26] <Sais> ...
[15:30] <tomalak> heh
[15:30] <tomalak> *DING*
[15:39] <deanc> Is there a quick way to disable all scrips loaded into mirc from running temp
[15:39] <Kollectiv> /remote off
[15:39] <deanc> thanks
[15:40] <Kollectiv> That won't stop timers, mind
[16:02] * Disconnected
[16:02] * Attempting to rejoin channel #mirc
[16:02] * Rejoined channel #mirc
[16:02] * Topic is 'mIRC 6.31@mirc.stealth.net: Happy new year :)'
[16:02] * Set by Mentality!~Chris@cpc2-stev1-0-0-cust392.lutn.cable.ntl.com on Tue Jan 01 01:54:51
[16:05] * Sais is now known as Proboscic
[16:23] * Frozen`He is now known as Onur
[17:01] <etotheipi> http://www.holycraplions.com/paste/1876 <-- text isn't erasing properl
[17:02] <etotheipi> after you type a letter, it's supposed to blank the letter with the same
[17:19] <argv[0]> none of that code works for me, so im guessing thats not your only problem
[17:19] <etotheipi> errr... it relies on a few files -- two sounds and a dictionary
[17:21] <etotheipi> sounds are obviously commentoutable, but the dictionary..just use somethi
[17:22] <Pawl> is this how it's spelled? lagzania the italian dish?
[17:22] <etotheipi> Pawl: wrong channel, and lasagne.
[17:23] <Pawl> okie thnx
[17:23] <etotheipi> that might just be the only time those words ever come into the same sent
[17:26] <crash_> :O
[17:42] <pelotero> alguien con kien conversardelcentro
[18:14] <argv[0]> etotheipi why not create a simpler test case that shows your issue than 100
[18:14] <argv[0]> rather than*
[18:15] <etotheipi> because I digged it out of an archive
[18:15] <etotheipi> I have no idea what half of it does :p
[18:15] <argv[0]> well that doesnt help prove a point does it, heh
[18:18] <etotheipi> well, not as such...
[18:19] <etotheipi> I'll consign it away ;)
[18:45] * Raccoon thinks he found a new scripting language to distract himself with
[18:48] <HorseC> Raccoon
[18:48] <Raccoon> yo
[18:48] <HorseC> did ya see my memo on the othe net ?
[18:48] <Raccoon> hehe. not sure about that one :)
[18:49] <Raccoon> i've heard of other channels by the same name with quite unsavory interests
[18:53] <HorseC> hear ya :)
[18:57] <yaZ> hey
[18:57] <yaZ> wats uo
[18:58] <rickcp> yaZ: hi, is there something we can help you with?
[18:58] <yaZ> well
[18:58] <yaZ> hmm
[18:58] <yaZ> ya
[18:58] <yaZ> im starting a website, but i dunno howto use html that well
[18:58] <rickcp> try typing complete sentences then hit enter
[18:59] <yaZ> any of you guys know a program that can code me the html codes?
[18:59] <rickcp> try an html channel
[19:00] <cornflake> any of you guys using securecrt? damn thing is driving me nuts, for some
[19:02] <dmare> change emulation
[19:03] <cornflake> i have, umpteen times
[19:04] <cornflake> ive set any settings i could find that where remotely similar to puttys s
[19:51] <argv[0]> i use putty
[19:52] <argv[0]> securecrt is fugly
[20:33] * argv[0] changes topic to 'mIRC 6.31@mirc.stealth.net - Obama and Huckabee in Iowa'
[20:49] <sweethot> hi
[20:52] <argv[0]> spicysour
[21:15] <acton> uh. is there a way to sead the random generator?
[21:16] <acton> the read thing sorta isn't very random.
[21:17] <acton> it keeps resorting to the same joke over and over
[21:20] <argv[0]> ive never had a problem with $rand
[21:20] <argv[0]> what exactly are you doing
[21:20] <acton> ON 1:TEXT:$(!joke):#:/msg $chan {random joke}: $read jokes.txt
[21:21] <acton> but the $read isn't randomizing much. it's read the same thing like 2 times i
[21:22] <argv[0]> 2 times in a row out of 50 isnt very surprising.....
[21:22] <acton> uh. yeah. it is. if you resead it shouldn't do that
[21:22] <argv[0]> what? that doesnt make sense
[21:22] <acton> computers aren't totally random, but I've never seen that happen like that if
[21:22] <argv[0]> seed*
[21:23] <argv[0]> its also $read(jokes.txt) ever since 4 years ago
[21:23] <argv[0]> not $read jokes.txt
[21:23] <acton> what's the diff? still works
[21:23] <argv[0]> sure, it might this time
[21:23] <argv[0]> anyway, randomness doesnt dictate that you cant end up with the same number
[21:24] <acton> no. but the probability is very slim, with 50 lines.
[21:24] <argv[0]> $rand(1,50) can easily return "2" twice in a row, and it would still be ran
[21:24] <acton> is there a way to reseed?
[21:24] <argv[0]> its not slim at all, its about 1 in 100
[21:24] <argv[0]> no.
[21:24] <acton> thanks. that's what I wanted to know.
[21:24] <argv[0]> 1 in 100 isnt a "slim" probability by any means
[21:25] <argv[0]> how many times has it happened?
[21:25] <acton> yeah? and if you get 2 of the same thing in a row. it's 2 out of 100. basical
[21:25] <acton> like a lot
[21:25] <argv[0]> mirc seeds the random number generator at initialization probably, just lik
[21:25] <argv[0]> its pretty standard.
[21:26] <acton> I've seen programs that sead before random. if you seed with like srand(time(
[21:26] <argv[0]> mirc does that
[21:26] <argv[0]> but you only seed once.
[21:26] <argv[0]> seeding more than once doesnt make the results any more random
[21:27] <acton> if you seed before you generate a random anything. it does. time will always
[21:27] <argv[0]> in fact, seeding the number generator has nothing to do with arbitrary cons
[21:27] <argv[0]> that's wrong, acton
[21:28] <acton> no. it's not. but thanks.
[21:28] <acton> you answered my question
[21:29] <argv[0]> srand is used to seed the generator so as to not get the same *sequence* of
[21:45] <argv[1]> http://pastie.caboo.se/134773 for kicks
[21:48] <argv[1]> seems its about a 1:20 chance of having the same random number (1,50) repea
[21:48] <argv[1]> on average
[21:48] <argv[1]> and reseeding has no effect at all
[21:49] * what is now known as WHAT
[21:50] * WHAT is now known as what
[21:50] <argv[1]> WHAT!
[21:55] * zzaps is now known as zzap
[22:04] * argv[1] is now known as argv[0]
[22:33] * Hrung- is now known as Hrung
[22:39] * hanzi is now known as hanziCS
[23:53] <RickyWh> hi
[23:53] <RickyWh> is there any way to join a channel without having the new channel become ac
[23:54] <RickyWh> if i type /j #mirc it always joins the new channel and then makes it active
[23:54] <diabolic> /join -n #foo
[23:54] <RickyWh> cool
[23:54] <RickyWh> does mirc help have a list of all the switches?
[23:55] <diabolic> /help /join
[23:56] <RickyWh> cool, thanks
Session Close: Fri Jan 04 00:00:00 2008