mIRC Homepage
Posted By: Prizm $input confusion - 10/06/03 10:25 PM
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??


Posted By: KingTomato Re: $input confusion - 10/06/03 11:02 PM
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
© mIRC Discussion Forums