JaxCore
GithubWebsiteSupport Server
  • JaxCore - Documentation
  • 🚀Getting Started
    • Introduction
    • Installation
    • User Interface
    • Additional requisites
    • Changing global options
    • Uninstallation
    • FAQs
      • New user FAQs
      • JaxCore FAQs
      • Miscellaneous FAQs
      • Anti-virus, false positive FAQs
      • Modules FAQs
        • YourFlyouts
        • YourMixer
        • ValliStart
        • IdleStyle
        • Keylaunch
        • Keystrokes OSD
      • Widget FAQs
        • ModularClocks
        • ModularVisualizer
        • Plainext
      • Media Player FAQs
      • Performance FAQs
  • 📦Modules
    • Introduction
    • YourFlyouts
    • YourMixer
    • IdleStyle
    • ValliStart
  • 🌥️Widgets
    • Introduction
    • ModularClocks
    • ModularPlayers
    • ModularVisualizer
    • Overlayer
    • Plainext
    • FAQ
  • Coding a module
    • Code formatting
    • Variables
    • Dynamic & Reactive user interface
    • Measures
    • MeterStyles
    • AutoHotkey usage
    • CoreInstaller
Powered by GitBook
On this page
  • Code sections
  • Naming
  • Variables
  • Meters
  • MeterStyles
  • Measures

Was this helpful?

Export as PDF
  1. Coding a module

Code formatting

It is highly recommended to have a consistent code format across all your modules.

Code sections

It is highly recommended to have 4 different sections for every .inc or .ini file:

; THIS IS THE HEADER SECTION, THOUGH NORMALLY I DON'T RULE THIS SECTION OUT

[Rainmeter]
Update=-1

; This is the place to include variables

; ---------------------------------------------------------------------------- ;
;                                   Function                                   ;
; ---------------------------------------------------------------------------- ;

; This is where you should put & include all the measures

; ---------------------------------------------------------------------------- ;
;                                  MeterStyles                                 ;
; ---------------------------------------------------------------------------- ;

; This is where you should put & include all the meter styles

; ---------------------------------------------------------------------------- ;
;                                    Content                                   ;
; ---------------------------------------------------------------------------- ;

; This is wherre you should put & include all the meters

Naming

Of course, you can name however you want, but here are some styles that I recommend

Variables

#element_Name# where Name is a value for element (e.g. #Pri_Color#)

#n# where n is a short form or first letter of the variable name name (e.g. #R#)

Meters

[Element.MeterType] where Element is what meters make of, and MeterType is the type of the meters.

[GroupIndex] where Group is what the meter is part of (for example, a list) and Indexis an integer appended to the meter. Useful for multiple elements of a list

MeterStyles

[Element.MeterType:S] for a style for MeterType of Element

[Level.Element:S] for a style which is above the main module file (e.g. Core) and is applied to a single meter to make Element.

[ElementStyle] for a quick low-level meter style for Element

Measures

[mFunction] for a measure with Function (e.g. toggle for a toggle function, CPUPer for returning the percentage of CPU usage)

PreviousFAQNextVariables

Last updated 3 years ago

Was this helpful?

[ACTIONACTIONNAME] for a which executes ACTIONNAME. The prefix ACTION is literal.

NUOL measure