| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> hi all <1> and in fact, $addtok does that automatically <2> heh it does <2> how conveniant <1> :) yup <3> sat <3> here is the paste... <3> http://www.rafb.net/paste/results/uDfNw050.html <4> you need to actually do a sockread before you'll get into that while <4> that being said, why 4 times inc %delay if you can do: inc %delay 4 o.O <3> i don't know <4> before the while loop, put: sockread %data <3> that has nothing to do with it though <3> before the while? <4> 23:23:19 FiberOPti: you need to actually do a sockread before you'll get into that while <4> $sockbr shows the amount of bytes read in by a sockread command, but you're only doing it for the first time inside the while
<3> the sockread happens before that <4> i only see it in your event _within_ the while, not outside it <3> i know <3> sat asked me to paste just the sockread <3> so i did <4> and i'm telling you, you gotta put a: sockread %data, before the while, inside the on sockread event <3> ok <4> btw really bad idea to not name your socket events, it will trigger on any socket you open <3> well i just asked if that was what you meant <3> they are named <4> aka name it instead of putting * <4> on *:sockread:*:{ <4> not named <3> i changed the name to a * <3> for the paste <4> now try again with that sockread before the while (that doesn't mean yhou gotta get rid of that other sockraed, that one should stay) <3> i use this sockread all the time <3> the only problem i ever have with it is this PING reply <3> this isn't the only script i have with this sockread in it <4> have you done it yet and tested? <3> yes but not this year <4> if somethign doesnt worki, then you gotta debug it, that means for example putting some echo's in that event to do like: echo -a data: %data <3> i tested it the year i made it <4> to see if you're actually getting the data correctly itc <3> and have been using it ever since <4> i am talking about putting that sockread before the while, have you done it and tested it yet <3> you just said it just now <3> i am not sure what all i tried the first time anymore <4> ? <2> lol <3> i just know this was the most stable way of what i tested <3> you think that will fix the problem if the ping not being sent? <2> Cascade[]: he is saying have you put the sockread where he told you to and test it out? <3> i know what he is saying <2> lol <4> yet you're not doing it ;) <3> why won't he answer my question? <3> i asked "do you think this will fix the whole problem?" <4> well, this was fun, ttyl <2> i think the best way to find out is to test it urself.... <2> its one line of code, good lords <1> Cascade[]: who knows? if you're doing things the wrong way, anything can happen <3> i have been testing it all day <2> later FiberOPti <4> lata~ <3> sat did you look at it? <1> yes <3> ok <1> and FiberOPtics is spot on <3> you think i should do that and test it? <3> well i will try it then <3> i only posted it because you wanted to see it <1> even if it doesn't make a difference, it will make your script *more correct* <3> ok, brb <1> and yeah, your ping reply code is still wrong as well <1> as you're not using what i told you to <3> ok <3> but just so you know... <3> the script does this before sockread... <3> : /sockwrite... <3> on *:sockwrite:mybotsock:{
<3> /sockread %data <3> } <1> what the hell? <1> you're using /sockread from an "on sockwrite" event? <3> that's what the help file says to do <1> no, that's not what the helpfile says <3> but the sockwrite happens in sockopen <1> so? <1> *ONLY* use the /sockread command from the "on sockread" event, unless you know *EXACTLY* what you're doing <5> if i have a combo .. how can i put a value in there ? what did option do i need to set? <5> i dont want to great a total list.. just show the option that currently set <3> ok <3> i just read it again and i must have misunderstood it <3> i just added that sockwrite today <1> Amien: what do you mean "in there"? <3> thinking that was what the help file meant <1> i told you yesterday how to add lines to a combobox <5> in the menu .. the pull down is shown .. but only 1 file .. its empty .. <5> file= rule <1> rule ? <5> yes .. that worked .. <1> you mean line? <5> yes <1> hmm and not all lines are showing? <1> or..? <5> yes .. all lines are showing .. but when the user didnt hit anything yet .. the combobox is empty .. i want the current value there <1> ahh okay <1> you can do that by selecting an item, with /did -c <1> (after adding it, of course) <1> (or while adding it, in fact) <3> sat <3> should i have only 1 /sockread %data in there? <3> i have 2 right now <3> one inside the while <5> so that will be something like this: /did -c generate 106 $hget(%table,time) ? <3> should i delete the one inside the while loop? <1> Cascade[]: 2 is fine <1> Amien: /did -c, if NOT used with -a at the same time (/did -ca), takes a line number <3> i put the /sockread %data back in the while loop and it's not hanging anymore <5> -ca did the job .. tnx again <1> Cascade[] you should do exactly what FiberOPti told you <3> now my original PING script might work <3> i did that <1> Amien np :) <1> Cascade[] okay. then what i pasted earlier should work as well <3> but no one answered when i asked if i should delete the other one <3> from the loop <3> i don't know what you pasted earlier <3> unless you mean the $gettok() <1> yes, that's what i mean <3> ok <3> well i have been using some of that <3> along with my $replace <1> yes, incorrectly <3> well can you tell me once more? <1> you should not use $replace at all for this <3> i had to close mirc to stop it from hanging <1> [20:34.51] <1> if ($gettok(%data,1,32) == PING) { sockwrite -n $sockname PONG $gettok(%data,2-,32) } <3> ok thanks <6> ctrl+break will break you out of infinite while loops <6> instead of having to close mirc <3> i tried that <6> sometimes you have to hammer it <3> but all i could do is switch to other programs <3> so i closed mirc <3> i have a fast keyboard repeat rate <3> and i tried it for about 10 seconds <3> along with pressing it again and again <6> ok ok <5> but howcome -ca works .. and -ca doenst <5> -ca and -c <2> c jus checks, a adds the item <7> hiiiiiiiiiii <1> well as i said, if -c is used without -a, -c takes a line number, not text
Return to
#mirc or Go to some related
logs:
#linuxhelp discover which motherboard
apache mod_rewrite to iis change port graffiti fontsT 2.0 #red Enable Live Preview movie clip preview -component #politics #stocks #politics #slackware
|
|