mIRC Home    About    Download    Register    News    Help

Print Thread
#109688 31/01/05 06:53 PM
Joined: Sep 2004
Posts: 237
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
Im doing something like this.
/auser #Friends $address($$1,5) $?="Info" | /msg $$1 "?"
Now where that "?" is i want the Input from $?="Info" placed there... so i dont have to type the input twice. I tried something along the lines of
/auser #Friends $address($$1,5) $?="Info" | /msg $$1 $ulist($$1,#Friends).info
but that didnt work at all ..... so how do i get that initial input to tack onto the msg?
Does that even make sense?

#109689 31/01/05 07:19 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
//tokenize 32 $$1 $?="Info" | auser #Friends $address($$1,5) $2- | /msg $$1 $2-

#109690 31/01/05 07:52 PM
Joined: Sep 2004
Posts: 237
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
Perfect..... Thanks a lot.

#109691 31/01/05 08:58 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Or you can use $!, which holds the value of the last $? in the script:

//echo -a I typed $?="Type your message" | echo -a I typed $! again | echo -a I typed $! once more


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#109692 01/02/05 12:05 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
oh thats a nice one to find out

#109693 01/02/05 01:46 PM
Joined: Sep 2004
Posts: 237
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
Thanks qwerty, that is now being stored in my own personal help folder. wink
I know i've seen this all before but i am in the help files so much i just forget where i see these little things.
--like the nick too easy to type laugh


Link Copied to Clipboard