mIRC Home    About    Download    Register    News    Help

Print Thread
#117902 20/04/05 10:21 PM
Joined: Apr 2004
Posts: 73
Z
Babel fish
OP Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
I would like to see the ability of recalling the value of an alias, such as [ [ %x ] ] , only as something like [ [ $chan ] ] . This would be very useful in the fact that you wouldn't have to set a variable to something as simple as the channel name. I hope I make sense in this suggestion, lol.

-Zelda4ever


/tokenize 32 $gettok($1-,1-,32)
#117903 20/04/05 10:25 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
It didn't make much sense to me. A more descriptive example maybe?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#117904 20/04/05 10:31 PM
Joined: Apr 2004
Posts: 73
Z
Babel fish
OP Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
Okay,

Lets say I have a simple on text event. (no, I am not asking you to script this example.) and then I want to look up the nick's info using nickserv, which could be done via .msg nickserv $nick . After receiving notices from nickserv, I want to scan each notice for the previously evaluated $nick. And, if mIRC was busy processing remotes while the same event occured, $nick would be then set to the event that just called for it. Sort of like a line, I suppose.


/tokenize 32 $gettok($1-,1-,32)
#117905 20/04/05 11:03 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
So you want for example, inside any channel-related event, [ [ $chan ] ] to return the channel name of the previous channel-related event? Or did I miss it again?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#117906 21/04/05 04:18 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
This is what groups are good for imho

#117907 21/04/05 08:41 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
That made less sence than the first time.

Are you saying this...

on *:text:!blah:#:{ msg nickserv $nick }
on *:notice:*:?:{ echo A NOTICE JUST CAME FROM $nick ABOUT [ [ $nick ] ] } I do know this is not what [ [ $nick ] ] does people!

and i say in channel !blah
and you get

A NOTICE JUST CAME FROM nickserv ABOUT DaveC

Is that it?

If so I doubt it can be done, how is mirc ment to keep track of what caused what in a event driven enviroment.

#117908 21/04/05 10:25 PM
Joined: Apr 2004
Posts: 73
Z
Babel fish
OP Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
Ok, let me try this again. Hopefully for the last time. laugh

Here is an example:

on *:text:!reeval:#chan:/.msg $chan $ $+ nick was last set to $reeval($nick,1) and the $ $+ chan that was evaluated two times ago is $reeval($chan,2) $+ .

Probably something like that. In my last post I also mixed in what I thought should also be featured, but it turns out I could have just done what I wanted if I used a hidden window.
Sorry for the confusion.


/tokenize 32 $gettok($1-,1-,32)
#117909 21/04/05 10:55 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
For things like this (Things most users wouldn't have a use for) I think you should use the scripting language.


New username: hixxy
#117910 21/04/05 10:57 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Why would that be helpful? $nick could have been set any number of times between the previously occurring event you want to retrieve info from and the one in which $reeval() is called.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#117911 22/04/05 02:28 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
yeah i agree, my mirc likely does about 3 to 5 events a second., cant see how the idea of having a back log is gonna help anyone.

Although i can see it getting used some times i guess

Something like

usage $eventid
returns a number that can be used in palce of N below

usage $eventid(N).prop
returns $prop ie $eventid(4).nick returns the value of $nick when $eventid returned 4

usage $eventid(N).release
returns $null and releases N for reuse (more concerned with freeing up the memory really)


so you could have
Code:
;
;John might say in #club !see Im as big as a tree
;
on *:text:!see *:#:{
  set $+(%,blah.,$nick) $eventid  [color:blue](hmmmm damn you still have to uniquely remember the return value dont you lol, oh well anyway the idea was)[/color] 
  who $nick
}
;
;352 raw reply lets say is ->> DaveC * ~blob somedomain.com irc.server.net John H 4 Johnnyboy
;
raw 352:*:{
  if ($($+(%,blah.,$6),2) {
    var %i = $v1
    describe $eventid(%i).chan just saw $9 say $eventid(%i).2-
    unset $+(%,blah.,$6)
  }
}
;
;so I do a /describe #club just saw Johnnyboy say Im as big as a tree
;


ok a pointless script but just an example.

Still as Tidy_Trax said, its not something that couldnt be scripted, without to much hassel really, just some hashtable, and store all the current identifiers when its called.


Link Copied to Clipboard