mIRC Home    About    Download    Register    News    Help

Print Thread
#140629 27/01/06 11:39 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
Code:
alias ame {
  var %i = 0
  while (%i < $scon(0)) {
    inc %i 1
    scid %i
    if ($status == connected) { ame_ $1- }
  }
}
alias ame_ {
  var %i 1
  while (%i <= $chan(0)) {
    .describe $chan(%i) $1-
    echo $color(action) $chan(%i) $me $+  $1- 
    inc %i
    haltdef
  }
}

that working just fine in mirc v: 6.16, but not in 6.03. something that needs to be changed to work in 6.03 ? the both versions suport two networks at once.. and i cant figure out that makes it not working, any idea? :tongue:

#140630 28/01/06 04:29 AM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
No one that have any idea on this one? :tongue: realy need this to work confused

#140631 28/01/06 05:38 AM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
It looks like you gave yourself the answer. If it works in mIRC 6.16, then use that version instead of 6.03 which is open to exploitation. There is no reason to be using anything but the most up-to-date version of mIRC.

If the code works in 6.16 and not in 6.03, it's probably because there was a bug in 6.03 that has been fixed in one of the more recent versions. Perhaps this from versions.txt:
Quote:

v6.15
32.Fixed recursion gpf bug with /scon and /scid.


-genius_at_work

#140632 28/01/06 05:49 AM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
/ame text working ok without an alias, but i dont know enuff to write one that work, and i like 6.03, like how it's boult and everything, the new versions of mirc arent that good.. :tongue: thats why i hand around with this out dated one..

;------- edit

scid -at1 ame that is.. no problems there, my alias that are the big problem here..

Last edited by sparta; 28/01/06 05:51 AM.
#140633 28/01/06 07:32 AM
D
DaveC
DaveC
D
most likely its this var %i 1 needs to be var %i = 1 however seince i dont have 6.03 i cant check.

I would also suggest that you tighten up your coding practices, I have seen u using goto's all over the joint when a simple while loop well work. and now u do use a while loop, im seeiung two differing methodologies used. The first starting at zero checking you are below the last loop item needed, and then imedietly incrementing to next number, and the second one starts at 1 and checks for <= to last loop item needed, with the inc at the end.

#140634 28/01/06 07:35 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
I just tested the following with 6.03 and it worked perfectly

/scon -at1 /ame <message>

That sent the specified message to all channels that I was in and on all networks that I was connected to.

#140635 28/01/06 07:39 AM
D
DaveC
DaveC
D
think he dont weant to use it becuase he wants a custom output locally OR hes affraid of a double evaluation on the $1- maybe?

#140636 28/01/06 08:15 AM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
one reason is that if i dock a dialog to toolbar, in 6.03 it working just fine.. no problem att all, but if i dock the same dialog in6.16 the dialog hide the toolbar buttons, not that good :tongue: you maybe can help me with this one:
Code:
alias keybar { if (!$dialog(keybar)) { dialog -m keybar | $dllktools DockWindow $dialog(keybar).hwnd &gt; %toptop } }

dialog top.bar {
  size 2 65 507 1
  option dbu
 ;rest of the dialog, nothing importent there
}

any ideas on how NOT to cover the toolbar? just stupid if it covers it? :tongue: as i said befor, the values is set the same as in mirc v 6.03, and no problem there..



just need to add, %toptop give the dialog the value if it should be position Top or Bottom .. and DLL used is ktools .

#140637 28/01/06 10:21 AM
D
DaveC
DaveC
D
would the dll be designed for 6.03 and not 6.16 by any chance?

#140638 28/01/06 10:22 AM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
no idea.. just that i know it worked in 6.03 and not in 6.16, i look for a new version of it smile then we know the answer wink

;------------------ EDIT

someone that know anything about if ktool is compatible with mirc v 6.16 ? or if thet can recomend another DLL that does the same job? cos i couldent find anthing on the net about if it's compatible or not, all i found was that someone typed about that it mybe will come a new version of ktools.dll :tongue:

Last edited by sparta; 28/01/06 10:45 AM.

Link Copied to Clipboard