mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2007
Posts: 40
S
silimon Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2007
Posts: 40
Hello

I wanted to know if.. for instance you have an alias in a remote script.. and then an on event trigger in the same script, is it possible for the two parts of the script to execute at the same time? I ask because these two portions of my script manipulate the same data and there's potential for errors if that happens -- unless of course I know it works that way ahead of time, then I can make some changes to it. The event is a socket read, fyi, and when the script is finished i intend to have several socket connections at once.

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
an alias event needs to be executed within a call or a mnually executed while an ON event section only executes if that event is called


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
Posts: 111
No it is not possible that the two parts will be executed at the same time, even if your event triggers the alias while you execute the alias manually. mIRC handles one thing at a time.

Joined: Mar 2007
Posts: 40
S
silimon Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2007
Posts: 40
That's a huge relief. thanks


Link Copied to Clipboard