Skip to content
MSN

I need help fixing this Statusbar to ReBar.dll

A TG007 community discussion started by JeremyStCyr.

Discussion 5 posts
Page 1 of 1
Open
Topic #322 · 5 published posts · 706 views

on *:start:{ statusbar }

 

alias ktl { .return dlls\ktools.dll }

alias statusbar {

dll $ktl CreateSb .

dll $ktl SbSetParts 165 335 485 630 780 1022 -1

dll $ktools SbAddIcon $mircdirPics\icons\userlist.ico

dll $ktools SbAddIcon $mircdirPics\icons\Block OS Hard Drive.ico

dll $ktools SbAddIcon $mircdirPics\icons\Block OS Dial-Up Networking.ico

dll $ktools SbAddIcon $mircdirPics\icons\Block OS Favorites.ico

dll $ktools SbAddIcon $mircdirPics\icons\icon.ico

dll $ktools SbSetIcon 0 > 0

dll $ktools SbSetIcon 1 > 1

dll $ktools SbSetIcon 2 > 2

dll $ktools SbSetIcon 3 > 3

dll $ktools SbSetIcon 4 > 4

dll $ktl SbSetText 0 > asdf > Nickname: $scid($activecid).me $iif($scid($activecid).away == $true,(Away))

dll $ktl SbSetText 1 > asdf > Ram: $remove($dll(dlls\moo.dll,meminfo,_),usage:)

dll $ktl SbSetText 2 > asdf > Uptime: $duration($calc($ticks / 1000))

dll $ktl SbSetText 3 > asdf > Free Space: $round($calc(($disk©.free)/1073741824),2) $+ Gb

dll $ktl SbSetText 4 > asdf > Windows: $os

dll $ktl PbSetParts 6 50 0 100

}

 

 

ty

on *:start:{ statusbar } 
on *:connect:{ .timer 1 0 statusbar }
on *:disconnect:{ .timer 1 0 statusbar }
on *:open:*:{ .timer 1 0 statusbar }
on *:close:*:{ .timer 1 0 statusbar }
on *:exit:{ undll }
on *:active:*:{ .timer 1 0 statusbar } 
on *:ping:{ .timer 1 0 statusbar }

alias ktl { .return dlls\ktools.dll }
alias undll { var %d = $dll(0) | while ( $dll(%d) != $null && $dll(%d) !isnum ) { .dll -u $dll(%d) | dec %d } }
alias icon { .return Pics\icons\ $+ $1- $+ .ico }

alias statusbar {
 dll $ktl CreateSb .
 dll $ktl SbSetParts 165 335 485 630 780 1022 -1
 dll $ktl SbAddIcon $con(userlist)
 dll $ktl SbAddIcon $icon(Block OS Hard Drive)
 dll $ktl SbAddIcon $icon(Block OS Dial-Up Networking)
 dll $ktl SbAddIcon $icon(Block OS Favorites)
 dll $ktl SbAddIcon $icon(icon)
 dll $ktl SbSetIcon 0 > 0
 dll $ktl SbSetIcon 1 > 1
 dll $ktl SbSetIcon 2 > 2
 dll $ktl SbSetIcon 3 > 3
 dll $ktl SbSetIcon 4 > 4
 dll $ktl SbSetText 0 > asdf > Nickname: $scid($activecid).me $iif($scid($activecid).away == $true,(Away))
 dll $ktl SbSetText 1 > asdf > Ram: $remove($dll(dlls\moo.dll,meminfo,_),usage:)
 dll $ktl SbSetText 2 > asdf > Uptime: $duration($calc($ticks / 1000))
 dll $ktl SbSetText 3 > asdf > Free Space: $round($calc(($disk©.free)/1073741824),2) $+ Gb
 dll $ktl SbSetText 4 > asdf > Windows: $os
 dll $ktl PbSetParts 6 50 0 100
}

MucH blink.gif

it looks like a combo of 2 addons

cause the ktools alais doesnt match

 

dll $ktl SbSetParts 165 335 485 630 780 1022 -1

dll $ktools SbAddIcon $mircdirPics\icons\userlist.ico

 

 

notice the

 

$ktl

 

and

 

$ktools

My code does NOT have bugs. It just develops random features.

I caught that too, so i edited his post and added a lil more to it cool.gif

It's not easy being cheesy... unsure.gif

If anyone else has questions related to statusbars, switchbars watever! Ask MucH hes an expert at those stuff smile.gif