SwitchBar Replacement (SS-Bar) — File Browser
SwitchBarReplacementSS-Barv1.1 / SwitchBarReplacementSS-Barv1.1 / ss-bar / ss-bar.mrc
ss-bar.mrc — 5 KB — Download this file
dialog bar {
title "You shouldn't see this"
size -1 -1 730 32
option pixels
list 6, 1 2 800 23, size
}
on *:dialog:bar:init:*:{
mdx SetMircVersion $version
mdx MarkDialog $dname
mdx SetDialog $dname style tool
mdx SetControlMDX 6 toolbar arrows nodivider list wrap noresize flat > $bdll
mdx SetBorderStyle 6
did -i $dname 6 1 bmpsize 16 16
did -i $dname 6 1 setimage icon small 3, $+ $mircexe
did -i $dname 6 1 setimage icon small 4, $+ $mircexe
did -i $dname 6 1 setimage icon small 17, $+ $mircexe
did -i $dname 6 1 setimage icon small $scriptdirdcc.ico
did -i $dname 6 1 setimage icon small 5, $+ $mircexe
did -i $dname 6 1 setimage icon small 8, $+ $mircexe
did -i $dname 6 1 setimage icon small 9, $+ $mircexe
did -i $dname 6 1 setimage icon small $scriptdirico17.ico
did -i $dname 6 1 setimage icon small $scriptdirico14.ico
did -a $dname 6 +av 1 Servers
did -a $dname 6 +av 2 Channels
did -a $dname 6 +av 5 Queries
did -a $dname 6 +av 3 Custom
did -a $dname 6 +av 4 Dcc Files
did -a $dname 6 +av 7 Dcc Chats
did -a $dname 6 1 -
did -a $dname 6 +av 8 Notify
;did -a $dname 6 +av 9 Control Panel
}
on *:LOAD:{ if ($version < 6.02) {
echo 2 -a [ERROR] You need mIRC 6.02 or higher, get the newest version at: http://mirc.com
}
}
alias closebar {
if ($dialog(bar)) {
dll -u winattach.dll
dialog -c bar bar
}
}
alias openbar {
if (!$dialog(bar)) dialog -mh bar bar | dll $+(",$scriptdir,winattach.dll,") attach $dialog(bar).hwnd
}
on *:dialog:bar:dclick:6:{
if ($did($dname,6).sel == 2) popup scon .server 3 scon <i> window -a "Status Window"
elseif ($did($dname,6).sel == 3) popup chan _ 4 window -a $eval($chan(<i>),0)
elseif ($did($dname,6).sel == 4) popup query _ 5 window -a $eval($query(<i>),0)
elseif ($did($dname,6).sel == 5) popup window _ 17 window -a $eval($gettok($dll($pdll,GetProperty,window <i> text),2,32),0)
elseif ($did($dname,6).sel == 6) dccpopup
elseif ($did($dname,6).sel == 7) popup chat _ 9 window -a "Chat $chr(36) $+ Chat $+ ( $+ <i> $+ ) "
elseif ($did($dname,6).sel == 9) popup notify _ ico17.ico whois $eval($gettok($dll($pdll,GetProperty,notify <i> text),2,32),0)
;elseif ($did($dname,6).sel == 10) ControlP
}
alias -l popup {
var %i 0, %t $eval($+($,$1,$chr(40),0,$chr(41)),2)
dll $pdll New $1 16 16
dll $pdll LoadImg $1 icon normal $iif($3 isnum,$+($3,$chr(44),mirc.exe),$+($scriptdir,$3))
while (%i < %t) {
inc %i
var %c = $+($,$1,$chr(40),%i,$chr(41),$iif($2 != _,$2))
if ($1 != notify || $eval($+(%c,.ison),2)) { dll $pdll AddItem $1 0 1 $eval(%c,2)) }
}
var %temp = $dll($pdll,Popup,$1 $mouse.dx $mouse.dy)
if ($gettok(%temp,1,32) == ok) {
$eval($replace($4-,<i>,$gettok(%temp,3,32)),2)
}
}
alias -l dccpopup {
dll $pdll New send 16 16
dll $pdll LoadImg send icon normal 7, $+ $mircexe
dll $pdll LoadImg send icon normal 8, $+ $mircexe
var %get 0
var %getamnt $get(0)
while (%get < %getamnt) {
inc %get
dll $pdll AddItem send 0 2 GET - $get(%get) $cr ok
}
if ($get(0) > 0 ) {
dll $pdll AddItem send 0
}
var %send 0
var %sdnamnt $send(0)
while (%send < %sdnamnt) {
inc %send
dll $pdll AddItem send 0 1 SEND - $send(%send) $cr ok
}
var %do = $dll($pdll,Popup,send $mouse.dx $mouse.dy)
if ($gettok(%do,1,32) == ok) {
var %com = $gettok(%do,4-,32)
var %item = $gettok(%do,3,32)
var %dcctype = $gettok($dll($pdll,GetProperty,send %item text),2,32)
var %dccnick = $gettok($dll($pdll,GetProperty,send %item text),4,32)
if (%dcctype == GET) {
window -a "Get %dccnick $+($get(%dccnick).file,")
}
elseif (%dcctype == SEND) {
window -a "Send %dccnick $+($send(%dccnick).file,")
}
}
}
alias -l ControlP {
dll $pdll New controlp 16 16
dll $pdll LoadImg controlp icon normal $scriptdirico14.ico
dll $pdll AddItem controlp 0 1 Open Control Panel
dll $pdll AddItem controlp 0
dll $pdll AddItem controlp 0 0 Hashview
dll $pdll AddItem controlp 0 0 OmniGet
dll $pdll AddItem controlp 0 0 Theme System
var %do = $dll($pdll,Popup,controlp $mouse.dx $mouse.dy)
if ($gettok(%do,1,32) == ok) {
var %item = $gettok(%do,3,32)
echo -a %item
if (%item == 1) {
opencontrolpanelalias
}
elseif (%item == 3) Themesystemalias
elseif (%item == 4) omnishare
elseif (%item == 5) hash
elseif (%item == 6) halflifeserveralias
elseif (%item == 7) weatherforecastalias
}
}
alias all-items {
if ($gettok($dll($pdll,GetProperty,controlp size),1,32) === OK) {
var %total $gettok($dll($pdll,GetProperty,controlp size),2,32)
var %i 1
while (%i < %total) {
echo -a Item %i $+ : $dll($pdll,GetProperty,controlp %i text)
inc %i
}
}
}
alias -l mdx {
if ( $2- == $null ) return $dll($udll,$1,.)
return $dll($udll,$1,$2-)
}
alias -l pdll return $+(",$scriptdir,popups.dll")
alias -l udll return $+(",$scriptdir,mdx.dll")
alias -l bdll return $scriptdirbars.mdx