Jump to content

takaharu_

Members
  • Posts

    141
  • Joined

  • Last visited

Posts posted by takaharu_

  1. Draw a rectangle using the rectangle tool then at the bottom-right, click the plus (+) symbol next to "Filers:" and select either Inner Bevel from Bevel and Emboss or select Bevel Boss from Eye Candy 4000 LE.

    If you want to use the latter (Bevel Boss) then you might want to include the text as in the button. In this case, before applying the filter, use select all then Select > Flatten Selection. This will combine the selection into one item so you can then buttonise it.

    Couldn't be simpler (unless I didn't explain it well).

  2. Took me a while to find this again but I got there in the end:

    alias url.find {
    var %n = $wildtok($1-,http*,0,32), %i = 1, %e = $1-
    while (%n >= %i) {
       var %x = $wildtok(%e,http*,%i,32)
       var %y = $chr(3) $+ 12 $+ $chr(31) $+ %x $+ $chr(15) $+ $iif(* iswm %e,$left(%e,1) $+ $left(%e,2),$null)
       var %e = $replace(%e,%x,%y)
       inc %i
    }
    var %n = $wildtok(%e,www.*,0,32), %i = 1
    while (%n >= %i) {
       var %x = $wildtok(%e,www.*,%i,32)
       var %y = $chr(3) $+ 12 $+ $chr(31) $+ %x $+ $chr(15) $+ $iif(* iswm %e,$+ $left(%e,1) $+ $left(%e,2),$null)
       var %e = $replace(%e,%x,%y)
       inc %i
    }
    return %e
    }

    Hope this helps; it will colour the links and (if memory serves) retain the original formatting of the text.

    Takaharu: This is a test for www.tg007.net URLs.

     

    You would use it in a similar way to this:

    on *:text:*:#:{ echo -a $url.find($1-) }

    Random

    You could try something like this:

    alias RandomTest {
      echo -a This is a random test.
      echo -a Your random word is: $gettok($1-,$r(1,$numtok($1-,32)),32)
    }

    This would be used in the form: /RandomTest this is a test

  3. For future reference, you cannot use $chan on a dialog as it refers to a channel event. Instead, you will need to use an alias such as $active (referring to the active window, which is not necessarily a channel window) or $comchan. However, neither of these are completely flawless if you are in multiple channels. Instead, I would recommend creating a temporary hash table or variable containing the channel name that you wish to use; storing the channel name will ensure that you refer to the correct channel that you were referring to.

     

    You can argue that using mIRC is pointless as you can just as easily use a webchat service or a web browser that has built-in IRC compatibility so essentially, all mIRC addons are pointless. However, the experience of using a programming language as simple as mIRC's coding can aid future learning of a different programming language, such as C++. In this instance, mr_s now knows that he cannot use $chan in a dialog.

  4. Although the vast majority of Windows users use C:/Windows as their primary Windows directory there are exceptions.

    My default directory is D: because that's where I've got Windows XP installed, as well as my boot.ini file. Windows 2003 is on my E: drive so, obviously, its default directory is E:.

    On the other hand it is being quite pedantic but it is a good idea to take others into consideration.

×
×
  • Create New...