It is currently March 29th, 2024, 11:46 am

GetActiveTitle

Share and get help with Plugins and Addons
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

GetActiveTitle

Post by jsmorley »

This simply returns the Window Title of the currently active (focused) window, if it has one. Most, but not ALL windows do... It's kinda fun to play around with various elements of the Windows interface and see what it is calling stuff.

GetActiveTitle_1.3.rmskin
PluginGetActiveTitleSource.zip
GetActiveTitleDLL.zip


Note that Rainmeter skins have the full path and filename of the skin .ini file set as their window title. So in theory, you could have a skin that could return the path to some other skin when you click on the other skin.


1.jpg

Version 1.3 : Changed the plugin to return the length of the title text as the number value.

Version 1.2 : Changed the plugin to eliminate a possible buffer overrun.

Version 1.1 : Changed the plugin so the measure's string value can be "disabled" (paused) on demand, which gives you more flexibility in interacting with the values.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
MouseOverAction=[!DisableMeasure MeasureActiveTitle]
MouseLeaveAction=[!EnableMeasure MeasureActiveTitle]

[Metadata]
Name=GetActiveTitle
Author=JSMorley
Information=Uses the GetActiveTitle plugin to retreive the Window Title of the currently active window.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Aug 19, 2019

[Variables]

[MeasureActiveTitle]
Measure=Plugin
Plugin=GetActiveTitle

[MeterActiveTitle]
Meter=String
MeasureName=MeasureActiveTitle
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=[!SetClip "[MeasureActiveTitle]"]
You do not have the required permissions to view the files attached to this post.