SysMetrics plugin v1.11 full sample list

This page contains a full list and explanation of every sample in SysMetrics plugin

SysMetrics samples are (click for sample details):

- SysMetrics-MAIN
- ScrollingTitle
- Transparency
- Transparency-OtherWindows
- X-Ray
- DoubleClick
- GetPixelColor
- Coloring
- Magnifier
- MousePosition
- KeyState
- LeftBar
- DatePicker

 

SysMetrics-MAIN:

FUNCTIONS USED: - GetSysMetrics, Transparency, EnableInput, DisableInput, SetTitle, GetTitle, DriveType, EnvironmentPath

This sample is the main sample and it contains samples of a lot of the functions. It shows how to get some of the SysMetrics, and you have a full list of what you can get in the manual. It shows how to get some other stuff from a users computer, and shows how to slowly fade your project onto screen. It shows you how to set a static title and get the current title...

 

ScrollingTitle:

FUNCTIONS USED: - SetTitle, GetTitle

This sample shows advanced usage of the Set/GetTitle functions. Advanced usage means that you use the standard features of the plugin in some MMB code to make it look like a new, better function. In this case, you use MMB scripting to get a scrolling title.

 

Transparency:

FUNCTIONS USED: - Transparency, TransparentColor

In this sample you see how to make a window slowly fade in, how to change window opacity and how to make the color 255,0,255 (standard trasnparency color) transparent which serves mostly for making holes in the MMB window. It is important to notice that you either use TransparentColor or Transparency, never both. If you use only Transparency, then only the window will be set to your wanted opacity. If you use TransparentColor, then you can set the window opacity (if you don't want any window transparency, set it to 255 (fully opaque)) and also tell MMB that the color 255,0,255 is transparent fully.

 

Transparency-OtherWindows:

FUNCTIONS USED: - TransparencyWindow

This simple sample will show you how you can make any window transparent/semi-transparent/opaque by inputing it's name. You write it's name and the amount of transparency you want to use and TransparencyWindow function will make the specified window as transparent as you specified ;)
NOTE: This will not work for child windows... If you need support for child windows, let me know... If I have time I will try to play with it...

 

X-Ray:

FUNCTIONS USED: - TransparentColor

This funny sample will show you how you can make a program that will have a moving part (in this sample it moves right with your cursor) of the window transparent so it looks like your x-raying through your window... I don't know if it's usefull but it looks cool ;)

 

DoubleClick:

FUNCTIONS USED: - SetDblClickTime, GetDblClickTime

This is a really simple sample that shows you how you can use these two functions to get users mouse double click time (the max time between two left clicks to make them count as a double click), and change it if you want.

 

GetPixelColor:

FUNCTIONS USED: - GetPixelColor

In this sample you can see how to make your very own color picker that picks any screen color, even off the project window.

 

Coloring:

FUNCTIONS USED: - SetPixelColor, MousePos

This is a sample that demonstrate how the SetPixelColor function works. In this sample, the user can choose a color and use his left mouse button to color the pixels in the area between the min and max boundaries which are set by the If statement. The mouse position is retrieved by the function MousePos.


 

Magnifier: (sample by Dgilmour)

FUNCTIONS USED: - GetPixelColor

This is a sample that demonstrates the power of GetPixelColor function. It show you how to use that function to make a magnifier program (magnify whatever is under the cursor).

 

MousePosition:

FUNCTIONS USED: - MousePos, SetMousePos, ClientMousePos, SetClientMousePos

In this sample, you will see how the mouse position can be checked and changed in both the screen and client coordinates, and you will see the difference between screen and client coordinates. The functions themselves are not complicated, but with them, you can make another function which, unfortunatly, I can not implement into SysMetrics because of a limitation. The function moves the mouse cursor slowly and smoothly to the wanted coordinates instead of just jumping to them.

 

KeyState:

FUNCTIONS USED: - KeyState

This sample will show you how to use the function KeyState. As easy as it gets...

 

LeftBar:

FUNCTIONS USED: - KeyState

This sample shows an advanced usage of KeyState function. It shows how you could use this function in real life.

 

DatePicker:

FUNCTIONS USED: - DatePicker, GetSelDate, SetSelDate, DPSetColors, DPSetPos, DPSetRange, DPSetFirstDay, HideDatePicker

This sample shows how to use the Windows date picker.