mIRC Home    About    Download    Register    News    Help

Print Thread
#49236 13/09/03 09:27 PM
Joined: Aug 2003
Posts: 5
K
Kermit Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Aug 2003
Posts: 5
If i have these simple script lines:

on *:LOAD: {
set %CBackground 1
set %CFText 0
set %OpText 8
set %VoiceText 4
set %CTBackground 15
set %CBText 5
set %CFSubC 3
set %CFSub 11
}

I get this as result in my variable section:
%CBackground
%CFText
%OpText
%VoiceText
%CTBackground
%CBText
%CFSubC
%CFSub

Could it be a bug that it can't remember my numbers there??

#49237 13/09/03 11:33 PM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
I'm using mIRC 6.1, tested all different ways of setting a var directly in the on load event, none worked for me...

even tried things like....

on *:LOAD:{ //echo -s setting veriable | //aliasset %cbackground 1 }
alias aliasset { //set $1 $2- }

It would not even run an echo command, seems like a bug in the on load event to me


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#49238 14/09/03 12:39 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well I tried all of those and they all worked fine in v6.1, with the following exception

on *:LOAD:{ //echo -s setting veriable | //aliasset %cbackground 1 }
needs to be
on *:LOAD:{ echo -s setting veriable | aliasset % $+ cbackground 1 }
to pass "%cbackground" on to the alias as a string instead of first evaluating it.

#49239 14/09/03 07:21 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Had the same problem for a long time until I realized that immediately after the on LOAD (or on START in my case) an alias was called that cleaned out the list again. You sure you don't have some unset's somewhere?


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49240 14/09/03 08:12 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Yeah, that was a syntax error on my behalf hehe, was busy with other stuff at time of test/post : )

To original poster, try moving the script down to the bottom of the script order (mIRC Editor, File, Order...) and have the on load in its own script file. This should initiate it right at the end after everything else. Letting you determine if or not there is an issue with another of the loaded scripts unsetting variabals.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#49241 14/09/03 03:20 PM
Joined: Aug 2003
Posts: 5
K
Kermit Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Aug 2003
Posts: 5
Thanks guys... I'm working around on it now but I do want to add that my script worked 'perfectly' in mIRC 603 but now that I've the new one it doesn't work anymore frown


Link Copied to Clipboard