mIRC Home    About    Download    Register    News    Help

Print Thread
#60824 17/11/03 08:45 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
this code enter and exit in a list of channel
Code:
alias join {
  set %xs 1
  while ( $read(chan.txt,%xs) ) {
    .timer 1 $calc(%xs * %tra) j $ifmatch
    .timer 1 $calc(%xs * %tra + %ton) ext $ifmatch
    inc %xs
  }
}  

but the script execute the cycle "while" without pause so in a big list the system crush because there are too much "timer command" in wait of execution...
The cycle while can't be paused?
Anyone has an idea to resolve this problem, thanks!

#60825 17/11/03 08:50 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Why would you like to do such a thing?

#60826 17/11/03 08:53 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
because I would have a list of users of my channel (where I'm operator @) but this code doesn't work...
you can help me?

#60827 18/11/03 06:24 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
What exactly is this code doing? Cause with the /j and all it looks like you're trying to join a whole lotta channels.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#60828 18/11/03 11:47 AM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
I don't know if you red my old post (users on file .txt)
so, the script save all nicks when I enter a channel, then it must only enter in a list of channel for having a list of users of those channels.
The problem is that if you use a list of 2-3 channel it works, but if you use a list of 9-10 or more channel it crush because the script execute the "while" cycle while "timer commands" are waiting to be execute. This crush Mirc.
It is possible to do wait the "while" cycle between a "timer command" and another?
For "timer command" I means
Code:
 .timer 1 10 j $ifmatch  

I hope you understand, sorry for my english... smile

#60829 18/11/03 12:44 PM
Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Try that.. Hope you don't use it for bad thinks(like spamming)
Code:
 
Alias Join {
  .timer 1 10 JoinNext 1 $read(chan.txt,1)
}

Alias JoinNext {
  !join $2
  var %Nextline = $calc($1 + 1)
  var %read = $read(chan.txt,%Nextline)
  if ($left(%read,1) != #) return
  .timer 1 10 JoinNext %Nextline %read
}


*Script is not tested*


mIRC Chm Help 6.16.0.3 Full Anchored!
#60830 18/11/03 04:30 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
I've got two words: SPAM!


Code:
//if ( khaled isgod ) echo yes | else echo no
#60831 18/11/03 06:36 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
it works... great!! smile


Link Copied to Clipboard