mIRC Home    About    Download    Register    News    Help

Print Thread
#29105 10/06/03 10:25 PM
Joined: May 2003
Posts: 177
P
Prizm Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: May 2003
Posts: 177
In the mIRC help file, it says the following about the $input identifier:

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.


My question is, if the $input identifer cannot be used in a script event, then why do the following examples work fine?

Code:
on *:DISCONNECT:{
  return $input(You have disconnected from the server.,io,Disconnect)
}

on *:START:{
  if ($input(Would you like to connect to a server?,iy,Server Connection) == $true) server
}


I don't quite understand what the help file means by the $input identifier cannot be used in a script event. I just managed to successfully use it in the two examples above.

Someone care to explain??



#29106 10/06/03 11:02 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Other events cause your server connection to "hang" where as these your not connected to a server at the time of the event. Ex: If you have an on text event with the input, all on text events must wait for your responce to the $input before they can continue processing, inclduing a server ping reply, text being recieved, etc, creating a potencially huge buffer. >:D


-KingTomato

Link Copied to Clipboard