Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1056

Help: Rainmeter Skins • Re: How to constantly refresh a skin?

$
0
0
How to constantly refresh a skin?
I got the VolumeMixer skin by JaxCore and I've set it on the static mode, where there's the volume icon in the system tray and if I click it it shows up the mixer. There's a problem, when hovering over the icon, it shows info
Volume: <volumeLevel>
but this isn't so accurate, sometimes it stucks up and doesn't adjust the text, for example if I connect/disconnect my bluetooth headphones (so the output device changes) it doesn't adjust the volume, or if I change volume frequently it doesn't adjust it. This thing is solved only by refreshing the skin! The Update and UpdateDivider variables in there seems to be useless at this point...
Now, I don't know how to code a skin and I don't know how to solve this bug, the only thing I can assume is that would be useful constantly refreshing the skin, not updating, refreshing!
How can I do it?

Here is the skin

Code:

[Rainmeter]Update=1000DefaultSavePosition=0DefaultAlwaysOnTop=0DefaultDraggable=0DefaultSnapEdges=0DefaultStartHidden=1DefaultAlphaValue=255DefaultHideOnMouseOver=0DefaultFadeDuration=100DefaultClickThrough=0DefaultKeepOnScreen=0DefaultAutoSelectScreen=0DefaultUpdateDivider=-1DynamicWindowSize=1AccurateText=1RightMouseDownAction=[]RightMouseUpAction=[]AccurateIconName=1SkinWidth=#W#SkinHeight=#H#OnCloseAction=[!DeactivateConfig "YourMixer\Main\Elements\ControlScreen"]["#@#Actions\AHKv1.exe" "#@#Actions\Source Code\Close.ahk"][Variables]u/include=#@#Vars.incu/includegVar1=#SKINSPATH##JaxCore\@Resources\gVars\Time.incu/includeCoreDataVars=#SKINSPATH#..\CoreData\Vars.incH=#MinH#; ---------------------------------------------------------------------------- ;;                                   Functions                                  ;; ---------------------------------------------------------------------------- ;[Esc]Measure=PluginPlugin=HotkeyHotKey=ESCAPEKeyDownAction=[!UpdateMeasure mToggleSet]UpdateDivider=-1[Func]Measure=ScriptScriptFile=#@#Lua\Func.luaUpdateDivider=1[generateMixer]Measure=PluginPlugin=PowershellRMScriptfile=#@#Powershell\generateMixer.ps1u/includeTweenNode1Style=#@#Includes\Animation#Animated#.inc[mToggle]Measure=CalcFormula=1 - mToggle IfCondition=mToggle = 0IfTrueAction=[!UpdateMeasure ACTIONLOAD][!CommandMeasure Esc Start]IfCondition2=mToggle = 1IfTrueAction2=[!UpdateMeasure ACTIONUNLOAD][!CommandMeasure Esc Stop]IfConditionMode=1DynamicVariables=1[mToggleSet]Measure=CalcFormula=mToggleIfCondition=mToggle = 0iftrueaction=[!UpdateMeasure mToggle]ifconditionmode=1Group=NUOLDisabled=1[ACTIONLOAD]Measure=StringOnUpdateAction=[!CommandMeasure generateMixer "generateMixer"]Disabled=1Group=NUOL; ["#@#Icons\GetIcons#Layout.fetch_icons#\GetIcons.exe"][ACTIONUNLOAD]Measure=StringOnUpdateAction=[!UpdateMeasure ACTIONUNLOAD "YourMixer\Main\Elements\ControlScreen"]Disabled=1Group=NUOL[ACTIONREFRESH]Measure=StringOnUpdateAction=[!UpdateMeasure mToggleSet][!Delay 500][!UpdateMeasure mToggle]Disabled=1Group=NUOL[AppVolumeParent]Measure=PluginPlugin=AppVolumeIgnoreSystemSound=1ExcludeApp=#ExcludeApp#UpdateDivider=1[AppVolTester]Measure=PluginPlugin=AppVolumeParent=AppVolumeParentIndex=1Substitute=".exe":""u/includeTray=#@#Includes\Tray#StayOnDesktop##Tray##TrayScroll#.inc; Thanks DEATHCRAFTER; ---------------------------------------------------------------------------- ;;                                    Content                                   ;; ---------------------------------------------------------------------------- ;[Dum]Meter=String
First, you should make sure that the "bug" is a real bug (this is how a somewhat similar actual bug looks like) and see if a correcly written skin exhibits it or not (if it doesn't, then the culprit would most likely be some part of the skin you're using). Here are 2 correctly written skins:
1) https://github.com/khanhas/AppVolumePlugin/releases (as per the AppVolume plugin page at https://forum.rainmeter.net/viewtopic.php?t=26942)
2) a simpler one, measuring the volume of Winamp.exe (this assumes the AppVolume plugin is already installed; the application can obviously be changed):

Code:

[Variables]ExcludeApp=[Rainmeter]Update=25AccurateText=1DynamicWindowSize=1BackgroundMode=2SolidColor=0,0,0,128---Measures---[AppVolumeParent]Measure=PluginPlugin=AppVolumeIgnoreSystemSound=1[AppVolTester]Measure=PluginPlugin=AppVolumeParent=AppVolumeParentAppName=Winamp.exeNumType=VolumeSubstitute=".exe":""---Meters---[MeterVolume]Meter=StringFontFace=ConsolasFontSize=16FontColor=255,255,255,255AntiAlias=1Text=AppVolume: [AppVolTester:%,2]DynamicVariables=1
For the record, both the above skins have the [Rainmeter] section's Update option set to less than 1000 ms, so they'll report values close to real-time. I somehow doubt that they'll not adjust the volume properly for you, although they might have problems with connecting/disconnecting bluetooth headphones (that's one of the reasons why I didn't buy one when I got the chance, by the way). In any case, a feedback on that from you would be nice to have.

Now on your question, I would strongly advise against continuously refreshing a skin, especially one from JaxCore. Besides the generalities of it being overkill, in the case of a many script featured complex system like in JaxCore, you might have adverse effects (not sure how serious, if any). So, take into account that I personally decline any responsability if something goes wrong in that regard. Anyway, if you're willing to take your chances and bet on no problems, the way to do it is quite simple - just add a OnUpdateAction=[!Refresh] to your [Rainmeter] section from your skin (i.e. right below the OnCloseAction=... part).

Statistics: Posted by Yincognito — Yesterday, 3:38 pm



Viewing all articles
Browse latest Browse all 1056

Trending Articles