mIRC Home    About    Download    Register    News    Help

Print Thread
N
netsplit
netsplit
N
Two issues.

One the nickist doesn't redraw proper. If you switch between windows the nicklist ends up covered up with part of the other window. Something causing the nicklist to update (join/parts, clicking in it, ect.) make it redraw okay so thinking there should be a script solution to that. I'll see what I can come up with later.

The biggest trouble though. Cut and Paste is broken in a very bad way. If you past it deletes all the text in the script and replaces it with the paste text.

That could cause some serious accidental data loss (and painful considering all my scripts are completly written by me)

6.17 is said to work okay, but my tab script needs version 6.2 or greater.

I'd appriciate any pointers someone can give me smile

Using PClinuxOS and win version .9.37

Last edited by netsplit; 18/05/07 12:30 AM.
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
I've not run into these problems. I use the WINE version that's included with Xandros.

C
Constantine
Constantine
C
Cant remember what set of editors come in pclinuxos but I use gedit and it works just fine doing my mirc script tweaks.
wine-0.9.36 on Fedora Core 6

N
netsplit
netsplit
N
Okay Figured out how to fix the script editor problems.

Method one if you don't have access to native windows system dlls

go to a terminal and type winecfg. Then go to the applications tab and click add application. Then browse and find your mirc.exe. Making sure it's selected in the applications tab click the libararys tab. Now you need to set two overrides. riched20 and riched32. pick riched20 from the drop and click add. do the same for riched32. Now select riched20 click edit set it disable. Do the same for riched32. Cick okay to save yoru config and there ya go.

Keep in mind this will disable ctrl+z, however right click undo works just fine. There might be other bugs.

Now if you have access to some windows dlls coughgooglecough do method one. Then copy riched20.dll and riched32.dll to your wine's system32 directory. Mine was at /home/netsplit/.wine/drive_c/windows/system32 . Now go back into winecfg and the librarys tab. edit riched20 and riched32 and set them to native.

There ya go fully functional script editor edit and ctrl+z works!

Figured that out all by myself. Well google and konsole helped.



Now using my fully functional script editor. I wrote this little script that fixes the nicklist update bug. The one where it don't redraw properly when switching between maximized windows in mirc. It works be removing and then re-adding the last nick in the nicklist. Haven't had much of a chance to test so might have some weirdness.

here it is
Code:
on *:START:intwinefix

alias intwinefix {
  hmake wfhash
  .timerrefreshwin 0 1 watchfocus 
}

alias refreshlist {
  var %llinenum = $line($active,0,1)
  if ($len(%llinenum) > 0) {
    var %lline = $line($active,%llinenum,1)
    var %llinecolor = $line($active,%llinenum,1).color
    dline -l $active %llinenum
    aline $(-lc $+ %llinecolor) $active %lline
  }
}

alias watchfocus {
  if ($hget(wfhash,lastwin) != $active) {
    refreshlist
  }
  hadd wfhash lastwin $active
}




Open the script editor, go to remotes, then pick file, new. then paste that in. Then type use the command /intwinefix to make sure it gets kick started. Keep in mind that code may have some bugs has it hasn't been extensively tested yet. However I'm sure the way I yammer on irc I'll find any bugs if they exist soon. smile

Next on on this old mirc we'll rip out out the floor and redo the pipeing to match modern stanards! I'm Norm Abram.*credits roll*


Link Copied to Clipboard