mIRC Home    About    Download    Register    News    Help

Print Thread
Question about how scripts operate #199721 20/05/08 01:01 PM
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.

Re: Question about how scripts operate [Re: silimon] #199724 20/05/08 02:42 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
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* }
Re: Question about how scripts operate [Re: Lpfix5] #199730 20/05/08 03:37 PM
Joined: Jan 2006
Posts: 111
N
noMen Offline
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.

Re: Question about how scripts operate [Re: noMen] #199736 20/05/08 05:46 PM
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