Top

Comments

  (53)  RSS
zonirc's
zonirc
Comments: 24
 
mIRC Snippet:  $treeview
Posted on Aug 25, 2008 12:17 pm
thanx typo youre right, I forgotten to remove the $switchbar(its can be used on 6.32 and above)... and the var line is actually for easy reading, so if anyone like to have a one line setting of var then you can edited it :)) anyway thanx Typo for telling about my error including $switchbar
irchainscriptz
Comments: 48
 
mIRC Snippet:  $treeview
Posted on Aug 24, 2008 9:25 pm
Nice been looking for something like this for a long time. Good work zonirc
Typo
Comments: 230
 
mIRC Snippet:  $treeview
Posted on Aug 24, 2008 9:26 am
I had to remove
$switchbar
from
$iif($switchbar && %sbpos isnum $replacex(%pos,2,2-3,3,2-3),$gettok(%inin5,32,44),0)
to get it to work for me but after that it seemed fine.

I couldn't see anywhere else in the script that uses the $switchbar identifier or even a %switchbar variable so I just deleted it.

I like this script. Very cool idea but it runs very slow for me tho I'm fairly certain that thats the saveini call.

Also, your code just looks sloopy how you have it. Even if I leave your comments I still make it look a ton better by simply combining some vars and bringing things together like:
Code:
alias treeview {
  ;$treeview(size|wsize|hsize|x|y|w|h|pos|position|coord)
  saveini
  var %inin4 $readini($mircini, options, n4), %inin5 $readini($mircini, options, n5), %inin8 $readini($mircini, options, n8)
  ;if you use mirc mIRC 6.32 and above, then you can put the above line inside this statement and
  ;change '$gettok(%inin8,3,44)' to '$treebar'. Therefore its only save the current setting when
  ;the treebar is on. This code have been write to make it work on 6.21 also.
  if ($gettok(%inin8,3,44)) {
    var %pos $gettok(%inin8,2,44), %position $replacex(%pos,0,bottom,1,top,2,left,3,right), %sbpos $gettok(%inin4,21,44), %sbsize $iif(%sbpos isnum $replacex(%pos,2,2-3,3,2-3),$gettok(%inin5,32,44),0), %wsize $calc($window(-2).w - $window(-3).w $iif(%pos isnum 2-3,- %sbsize)), %hsize $gettok(%inin8,23,44), %size = $gettok(%inin8,4,44), %border = $calc(%wsize - %size)
    var %w $iif(%pos isnum 2-3,$int($calc(%wsize - %border $replacex(%pos,2,$null,3,/ 2))),$window(-3).w), %h = $iif(%pos isnum 2-3,$window(-3).h,%hsize), %x $iif(%pos = 3,$calc($window(-2).x + $window(-3).w + %sbsize),$iif(%pos = 2,$int($calc($window(-2).x + (%border / 2))),$window(-3).x)), %y $iif(!%pos,$calc($window(-3).y + $window(-3).h),$iif(%pos = 1,$calc($window(-3).y - %h),$window(-3).y)), %coord %x %y %w %h
  }
  return $($+(%,$1),2)
}

Thats 3 var lines instead of 15 of them.

Well done. 7/10
^Neptune
Comments: 377
 
mIRC Snippet:  $treeview
Posted on Aug 24, 2008 8:49 am
:O
This looks really good
biase
Comments: 5
 
mIRC Snippet:  /getvid - download youtube video
Posted on May 14, 2008 2:54 pm
lol... you guys really dunno how to use google to search for codec or other player to play this file. my real player works fine with this file... if u didnt like realplayer i suggest to download k-lite mega codec.
zonirc
Comments: 24
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 11, 2008 4:18 pm
thanx water_dragon
at least someone feel this one are useful :P
anyway this snippet will downloading a .flv file(which that was a youtube video file format) and that means you need a FLV player which like mountaindew suggesting you can try total video player or you can google for 'flv player' or you can get a codec that supported the .flv player such as storm codec.

water_dragon you can renamed the file as any .xxx that you like, however you still need a FLV player to play it. Even if you rename it as .wmv(for example) and your player didnt support flv format then an error occured.

If you want to convert the downloaded file, once again u can follow what mountaindew said. Or you can try media converter(which im prefer :P), you can get it at http://www.mediaconverter.org/ (either you want used the online converter or download its free version)

For others, there was some major problem for the url this snippet echoing(at @getvid). Since any url that have a spaces are not being converted into url form so a clicking at it will not working(eventhough its work but its redirect the browser to a wrong url).... So its better used the '-b' switches for this moment(until Ive got a desire to recode this thing-got many video to download so cant have spare time to coding lol :P)
water_dragon
Comments: 51
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 5, 2008 3:25 am
(changes 10/10 To 8/10 since hes just found somethink out that he never realised) still a good script tho
water_dragon
Comments: 51
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 2, 2008 12:50 pm
lol just do (sample) linkin park in the end.avi - save it as an avi file :P thats wot i done
mountaindew
Comments: 1,647
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 2, 2008 9:57 am
well i'm guessing this downloads the flv files? if so, use total video player (i also reccoment total video converter, so that you can convert to mp4, wmv, mpg, etc.) and i think when you download the converter, the player comes with it.
water_dragon
Comments: 51
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 2, 2008 12:42 am
never mind figured it out wicked script :) 10/10 i be useing this one alot now :D
water_dragon
Comments: 51
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 2, 2008 12:09 am
Still cant find a program/player to play these Files :( any one got any suggestions?
water_dragon
Comments: 51
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 1, 2008 12:04 pm
iv got realplayer dont work
LucSatise
Comments: 122
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 1, 2008 11:17 am
get realplayer ;p
water_dragon
Comments: 51
 
mIRC Snippet:  /getvid - download youtube video
Posted on Feb 1, 2008 11:11 am
it Downloads for me but wot do i use to play the file ? can anyone Tell me that 9/10 (10/10 if you can tell me how to play the file :P)
zonirc
Comments: 24
 
mIRC Snippet:  IX12CDisMsg
Posted on May 17, 2006 6:54 am
sorry for that thing ... i dunt had a time to make the documentation
anyway its supposed to block any message that you dont want to see.
For example when you add word 'asl plz' then it will either do one of this(regarding to option that you turn on):
* will not open query windows if user message contain the word 'asl plz'
* will not echoing user messages on channel or query if its containing word 'asl plz'
* will echoing the user messages but color it to your background color so it will look a like being hide.
DarthReven
Comments: 468
 
mIRC Snippet:  IX12CDisMsg
Posted on May 13, 2006 5:24 am
What is the scripts actually purpose? It would be helpful to people if you actually provided a discription of the script and its use.
zonirc
Comments: 24
 
mIRC Snippet:  /loadfile
Posted on May 6, 2006 10:51 pm
KuTsuM... well I think youre are right.. i have rethinking about it and actually ive use tokenizing to make my coding more easiest so that later on I didnt need to use $gettok but can refer the param as $1, $2, etc... but in this code its not usefull anyway. However, I think youre are wrong about $1 will be refering as "my" since when you using /filter -k it will matching the whole line and $1 will be refer to it therefore if you using $2 or else it simply will not return anything. Also, im using the -n switches which means each matching line will be return with the line numbers which is on this format:
<line> <whole matching line>
therefore when i want to refer it as on this thing: (Line: $1 File: %f $+ ))
but like what i said at the start that it is not usefull... thanx anyway KuTsuM... well im will look into this code more after this to recoding it.
KuTsuM
Comments: 139
 
mIRC Snippet:  /loadfile
Posted on May 3, 2006 3:00 pm
$1 on that string is "my", besides I don't see how it's usefull. It takes a lot of system resources to split strings up, and if you just want to return the entire string, use $1-, rather than splitting the string up once again
zonirc
Comments: 24
 
mIRC Snippet:  /loadfile
Posted on May 3, 2006 8:29 am
well the purpose is to check the specified file not containing any existed alias since if its already existed then only the 1st found alias will be triggered by mirc so its will make the specified file cant work correctly :) and for the tokenizing $1 actualy when you use /filter into custom alias you will receive all the result on $1. For example when the result is "my nickname is zonIRC" so when you refer it as $1 it will return all of the words but if you refer it as $2 you will not get anything since only $1 is supported.

spitfire3292
Comments: 36
 
mIRC Snippet:  /loadfile
Posted on May 2, 2006 6:42 pm
whats it do exactly? lol..is it just an easier way to load things?
1 2 3 Next
Bottom