Jump to content


Photo

Basic System Meter


  • Please log in to reply
4 replies to this topic

#1 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 13 August 2014 - 08:52 PM

Posted Image

 

This is a BBinterface that will display a basic meter that shows cpu usage, ram usage and swap usage. The usage is displayed in integer %, a bar and a line graph for each one.

 

Here is the source. 

!---- BBInterface 0.9.9 ----@BBInterface Plugin SetPluginProperty SnapWindows true@BBInterface Plugin SetPluginProperty SnapDistance 7@BBInterface Plugin SetPluginProperty SnapPadding 2@BBInterface Plugin SetPluginProperty IconSaturation 160@BBInterface Plugin SetPluginProperty IconHue 64@BBInterface Plugin SetPluginProperty DeskDropCommand ""@BBInterface Plugin SetPluginProperty GlobalOnload ""@BBInterface Plugin SetPluginProperty GlobalOnunload ""@BBInterface Plugin SetPluginProperty ClickRaise false@BBInterface Plugin SetPluginProperty SuppressErrors true@BBInterface Plugin SetPluginProperty ZeroControlsAllowed false@BBInterface Plugin SetPluginProperty EnableShadows false@BBInterface Plugin SetPluginProperty UseTooltip false@BBInterface Plugin SetPluginProperty ClearConfigurationOnLoad true@BBInterface Plugin SetPluginProperty ModuleAutoSave true@BBInterface Plugin OnLoad ""@BBInterface Plugin OnUnload ""!---- Frame1 ----@BBInterface Control Create Frame Frame1@BBInterface Control SetWindowProperty Frame1 X 1525@BBInterface Control SetWindowProperty Frame1 Y 346@BBInterface Control SetWindowProperty Frame1 Width 133@BBInterface Control SetWindowProperty Frame1 Height 206@BBInterface Control SetWindowProperty Frame1 Border true@BBInterface Control SetWindowProperty Frame1 IsVisible true@BBInterface Control SetWindowProperty Frame1 Style "Flat"@BBInterface Control SetWindowProperty Frame1 IsToggledWithPlugins true@BBInterface Control SetWindowProperty Frame1 IsOnAllWorkspaces true@BBInterface Control SetWindowProperty Frame1 IsOnTop true@BBInterface Control SetWindowProperty Frame1 AutoHide false@BBInterface Control SetWindowProperty Frame1 IsSlitted false@BBInterface Control SetWindowProperty Frame1 IsTransparent true@BBInterface Control SetWindowProperty Frame1 Transparency 75@BBInterface Control SetWindowProperty Frame1 MakeInvisible "Never"@BBInterface Control SetControlProperty Frame1 HAlign "Center"@BBInterface Control SetControlProperty Frame1 VAlign "Top"@BBInterface Control SetControlProperty Frame1 HasTitleBar true@BBInterface Control SetControlProperty Frame1 IsLocked true@BBInterface Control SetAgent Frame1 Caption StaticText "System"!---- Frame1::Label1 ----@BBInterface Control CreateChild Frame1 Label Label1@BBInterface Control SetWindowProperty Label1 X 86@BBInterface Control SetWindowProperty Label1 Y 20@BBInterface Control SetWindowProperty Label1 Width 45@BBInterface Control SetWindowProperty Label1 Height 16@BBInterface Control SetWindowProperty Label1 Border true@BBInterface Control SetWindowProperty Label1 IsVisible true@BBInterface Control SetWindowProperty Label1 Style "Flat"@BBInterface Control SetControlProperty Label1 HAlign "Right"@BBInterface Control SetControlProperty Label1 VAlign "Center"@BBInterface Control SetAgent Label1 Caption SystemMonitor "CPUUsage"!---- Frame1::Label2 ----@BBInterface Control CreateChild Frame1 Label Label2@BBInterface Control SetWindowProperty Label2 X 2@BBInterface Control SetWindowProperty Label2 Y 20@BBInterface Control SetWindowProperty Label2 Width 82@BBInterface Control SetWindowProperty Label2 Height 16@BBInterface Control SetWindowProperty Label2 Border true@BBInterface Control SetWindowProperty Label2 IsVisible true@BBInterface Control SetWindowProperty Label2 Style "Flat"@BBInterface Control SetControlProperty Label2 HAlign "Left"@BBInterface Control SetControlProperty Label2 VAlign "Center"@BBInterface Control SetAgent Label2 Caption StaticText "CPU"!---- Frame1::Slider1 ----@BBInterface Control CreateChild Frame1 Slider Slider1@BBInterface Control SetWindowProperty Slider1 X 2@BBInterface Control SetWindowProperty Slider1 Y 38@BBInterface Control SetWindowProperty Slider1 Width 129@BBInterface Control SetWindowProperty Slider1 Height 12@BBInterface Control SetWindowProperty Slider1 Border true@BBInterface Control SetWindowProperty Slider1 IsVisible true@BBInterface Control SetWindowProperty Slider1 Style "Flat"@BBInterface Control SetControlProperty Slider1 Value 0.099586@BBInterface Control SetControlProperty Slider1 Vertical false@BBInterface Control SetControlProperty Slider1 Reversed false@BBInterface Control SetControlProperty Slider1 Appearance 0@BBInterface Control SetControlProperty Slider1 BroadcastValueMinimum 0@BBInterface Control SetControlProperty Slider1 BroadcastValueMaximum 100@BBInterface Control SetAgent Slider1 Value SystemMonitor "CPUUsage"!---- Frame1::Label3 ----@BBInterface Control CreateChild Frame1 Label Label3@BBInterface Control SetWindowProperty Label3 X 2@BBInterface Control SetWindowProperty Label3 Y 82@BBInterface Control SetWindowProperty Label3 Width 82@BBInterface Control SetWindowProperty Label3 Height 16@BBInterface Control SetWindowProperty Label3 Border true@BBInterface Control SetWindowProperty Label3 IsVisible true@BBInterface Control SetWindowProperty Label3 Style "Flat"@BBInterface Control SetControlProperty Label3 HAlign "Left"@BBInterface Control SetControlProperty Label3 VAlign "Center"@BBInterface Control SetAgent Label3 Caption StaticText "RAM"!---- Frame1::Label4 ----@BBInterface Control CreateChild Frame1 Label Label4@BBInterface Control SetWindowProperty Label4 X 86@BBInterface Control SetWindowProperty Label4 Y 82@BBInterface Control SetWindowProperty Label4 Width 45@BBInterface Control SetWindowProperty Label4 Height 16@BBInterface Control SetWindowProperty Label4 Border true@BBInterface Control SetWindowProperty Label4 IsVisible true@BBInterface Control SetWindowProperty Label4 Style "Flat"@BBInterface Control SetControlProperty Label4 HAlign "Right"@BBInterface Control SetControlProperty Label4 VAlign "Center"@BBInterface Control SetAgent Label4 Caption SystemMonitor "PhysicalMemoryUsed"!---- Frame1::Slider2 ----@BBInterface Control CreateChild Frame1 Slider Slider2@BBInterface Control SetWindowProperty Slider2 X 2@BBInterface Control SetWindowProperty Slider2 Y 100@BBInterface Control SetWindowProperty Slider2 Width 129@BBInterface Control SetWindowProperty Slider2 Height 12@BBInterface Control SetWindowProperty Slider2 Border true@BBInterface Control SetWindowProperty Slider2 IsVisible true@BBInterface Control SetWindowProperty Slider2 Style "Flat"@BBInterface Control SetControlProperty Slider2 Value 0.370000@BBInterface Control SetControlProperty Slider2 Vertical false@BBInterface Control SetControlProperty Slider2 Reversed false@BBInterface Control SetControlProperty Slider2 Appearance 0@BBInterface Control SetControlProperty Slider2 BroadcastValueMinimum 0@BBInterface Control SetControlProperty Slider2 BroadcastValueMaximum 100@BBInterface Control SetAgent Slider2 Value SystemMonitor "PhysicalMemoryUsed"!---- Frame1::Label5 ----@BBInterface Control CreateChild Frame1 Label Label5@BBInterface Control SetWindowProperty Label5 X 2@BBInterface Control SetWindowProperty Label5 Y 144@BBInterface Control SetWindowProperty Label5 Width 82@BBInterface Control SetWindowProperty Label5 Height 16@BBInterface Control SetWindowProperty Label5 Border true@BBInterface Control SetWindowProperty Label5 IsVisible true@BBInterface Control SetWindowProperty Label5 Style "Flat"@BBInterface Control SetControlProperty Label5 HAlign "Left"@BBInterface Control SetControlProperty Label5 VAlign "Center"@BBInterface Control SetAgent Label5 Caption StaticText "SWAP"!---- Frame1::Label6 ----@BBInterface Control CreateChild Frame1 Label Label6@BBInterface Control SetWindowProperty Label6 X 86@BBInterface Control SetWindowProperty Label6 Y 144@BBInterface Control SetWindowProperty Label6 Width 44@BBInterface Control SetWindowProperty Label6 Height 16@BBInterface Control SetWindowProperty Label6 Border true@BBInterface Control SetWindowProperty Label6 IsVisible true@BBInterface Control SetWindowProperty Label6 Style "Flat"@BBInterface Control SetControlProperty Label6 HAlign "Right"@BBInterface Control SetControlProperty Label6 VAlign "Center"@BBInterface Control SetAgent Label6 Caption SystemMonitor "PageFileUsed"!---- Frame1::Slider3 ----@BBInterface Control CreateChild Frame1 Slider Slider3@BBInterface Control SetWindowProperty Slider3 X 2@BBInterface Control SetWindowProperty Slider3 Y 162@BBInterface Control SetWindowProperty Slider3 Width 129@BBInterface Control SetWindowProperty Slider3 Height 12@BBInterface Control SetWindowProperty Slider3 Border true@BBInterface Control SetWindowProperty Slider3 IsVisible true@BBInterface Control SetWindowProperty Slider3 Style "Flat"@BBInterface Control SetControlProperty Slider3 Value 0.083995@BBInterface Control SetControlProperty Slider3 Vertical false@BBInterface Control SetControlProperty Slider3 Reversed false@BBInterface Control SetControlProperty Slider3 Appearance 0@BBInterface Control SetControlProperty Slider3 BroadcastValueMinimum 0@BBInterface Control SetControlProperty Slider3 BroadcastValueMaximum 100@BBInterface Control SetAgent Slider3 Value SystemMonitor "PageFileUsed"!---- Frame1::Frame3 ----@BBInterface Control CreateChild Frame1 Frame Frame3@BBInterface Control SetWindowProperty Frame3 X 2@BBInterface Control SetWindowProperty Frame3 Y 52@BBInterface Control SetWindowProperty Frame3 Width 129@BBInterface Control SetWindowProperty Frame3 Height 28@BBInterface Control SetWindowProperty Frame3 Border true@BBInterface Control SetWindowProperty Frame3 IsVisible true@BBInterface Control SetWindowProperty Frame3 Style "Toolbar"@BBInterface Control SetControlProperty Frame3 HAlign "Center"@BBInterface Control SetControlProperty Frame3 VAlign "Top"@BBInterface Control SetControlProperty Frame3 HasTitleBar false@BBInterface Control SetControlProperty Frame3 IsLocked false@BBInterface Control SetAgent Frame3 Image Graph "LINECHART"@BBInterface Control SetAgent Frame3 Image.Value SystemMonitor "CPUUsage"!---- Frame1::Frame4 ----@BBInterface Control CreateChild Frame1 Frame Frame4@BBInterface Control SetWindowProperty Frame4 X 2@BBInterface Control SetWindowProperty Frame4 Y 114@BBInterface Control SetWindowProperty Frame4 Width 129@BBInterface Control SetWindowProperty Frame4 Height 28@BBInterface Control SetWindowProperty Frame4 Border true@BBInterface Control SetWindowProperty Frame4 IsVisible true@BBInterface Control SetWindowProperty Frame4 Style "Toolbar"@BBInterface Control SetControlProperty Frame4 HAlign "Center"@BBInterface Control SetControlProperty Frame4 VAlign "Top"@BBInterface Control SetControlProperty Frame4 HasTitleBar false@BBInterface Control SetControlProperty Frame4 IsLocked false@BBInterface Control SetAgent Frame4 Image Graph "LINECHART"@BBInterface Control SetAgent Frame4 Image.Value SystemMonitor "PhysicalMemoryUsed"!---- Frame1::Frame5 ----@BBInterface Control CreateChild Frame1 Frame Frame5@BBInterface Control SetWindowProperty Frame5 X 2@BBInterface Control SetWindowProperty Frame5 Y 176@BBInterface Control SetWindowProperty Frame5 Width 129@BBInterface Control SetWindowProperty Frame5 Height 28@BBInterface Control SetWindowProperty Frame5 Border true@BBInterface Control SetWindowProperty Frame5 IsVisible true@BBInterface Control SetWindowProperty Frame5 Style "Toolbar"@BBInterface Control SetControlProperty Frame5 HAlign "Center"@BBInterface Control SetControlProperty Frame5 VAlign "Top"@BBInterface Control SetControlProperty Frame5 HasTitleBar false@BBInterface Control SetControlProperty Frame5 IsLocked false@BBInterface Control SetAgent Frame5 Image Graph "LINECHART"@BBInterface Control SetAgent Frame5 Image.Value SystemMonitor "PhysicalMemoryUsed"

How to Install:

1: Go to C:bb_iPluginsBBinterface and open BBInterface.rc.

2: Select all and delete, then replace with the code above.

3: From the Menu go BlackBox>Configuration>Plugins>Load/Unload>BBInterface

 

Option 2:

1: Downlaod the attached zip file. Attached File  BBInterface.zip   1.45KB   45 downloads

2: Extract the BBinterface.rc to your BBinterface folder and replace the existing one

3: Load BBinterface or reconfig blackbox from menu.

 

About Editing: The great thing about BBInterface is that you dont need to edit the file itself for most things

 

Edit Menu:

To Access the edit menu for any part of the interface just[color=#ff8c00;] ctrl+righ[/color]t click what you want to edit and then choose the changes you wish to make.

 

From this menu you can do almost anything in BBInterface, so feel free to play around and learn. If you screw anyting up too bad just go back and paste the code then reconfig blackbox from the menu.

 

Resize:

1: Click what you want to resize and then hold [color=#ff8c00;]Alt and use the left mouse button to drag it to the size you want.[/color]

 

I am posting this as [color=#ff8c00;]something for people who are new to BBInterface to have a starting point[/color] and something really harmless to experiment with to learn how to edit BBInterface better.


  • pitkon likes this

#2 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 14 August 2014 - 05:59 AM

Wonderful! Eat your heart out, Rainmeter :D


  • Pico_No_Blackbox likes this

#3 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 14 August 2014 - 06:09 AM

yeah now if i can only find out why i dont have the other system meters i will be set cuz then i can add hard drive and network monitors!


  • pitkon likes this

#4 m00k00

m00k00

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 June 2015 - 09:38 PM

Thanks for the tutorial! Looks good and also works great, except for the fact that it would display -100% for my CPU all of the time. I've got a Intel Core i7 QuadCore with 4x4,0GhZ. Any suggestions how i could configure it so that it would display for each core the current load or if that's not going to work out at least get rid of the -100%? That would be great. Also i've already learned that BBinterface is probably the only thingy it could use to create bars on secondary screen(s) ... i've got 4 screens attached right now. So thank you very much for the code snippet, i can now use it as a kind of base reference to create the stuff i've got on my mind already :)



#5 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 21 June 2015 - 05:33 AM

I have the same Intel setup as you - and I don't get a -100% reading. That's strange. As for different cores display, mojmir managed to do it - though it doesn't work for all PCs, as I sadly found out. He may help you there. He is probably uploading a new bbi build tomorrow (Monday, June 22) so it's a chance to fix stuff.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users