mIRC Home    About    Download    Register    News    Help

Print Thread
#90775 17/07/04 04:21 AM
Joined: Aug 2003
Posts: 5
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Aug 2003
Posts: 5
In 6.16, the help file states: Note: This identifier cannot be used in a script event. One way around this is to use a /timer to initiate an input request after the script ends.

However, I am able to put $? into a on-connect event, and it works.


Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Yeah it is usable (unless Im misunderstanding your intent). A perfect example of this is:

/test {
if ($?="type your text here" == $null) { echo -s NULL }
else { echo $! }
}


No timer is needed and it DOES take the input from the $? and evaluates it in the $! I've given this to people to use for ops talkers (the kinds that DONT not send the message if it's blank) and it works for them fine


Those who fail history are doomed to repeat it
Joined: Aug 2003
Posts: 5
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Aug 2003
Posts: 5
The help file states that "This identifier cannot be used in a script event." Both connect and text are script events. Yet it can be used in "on connect" event.

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
ok, so then I did understand properly so yes, this would be an error in the help file


Those who fail history are doomed to repeat it
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
there are ways to use it in events... but it's not guranteed to work...

I used $input for something, and when having mIRC active it gave no problem...

but if I minimized it and locked my workstation it would give en error (and cause my mIRC to disconnect too as far as I could backtrack :-[ )


If it ain't broken, don't fix it!
Joined: Jul 2003
Posts: 19
R
Pikka bird
Offline
Pikka bird
R
Joined: Jul 2003
Posts: 19
if you read the help carefully it states "after the script ends"...
also if u check the help provided for the /timer command u' ll notice that timer 1 0 command executes the command "after the calling script ends"... so i quess that' s what u were looking for...


"Three words of destruction: Shun-Goku-Satsu"

Link Copied to Clipboard