Franzishans123 wrote: ↑March 22nd, 2023, 4:39 pm
I want to add a Slider to control the Volume. I have already a code where I got a Symbol which changes by different Volumes. Now i want a slider which pops up if i click on the symbols. On the slider I want to change the volume by dragging and maybe clicking. The slider should disappear after a specific time.
For first let's try to create the slider and don't hide it after the "specific time". The disappearance is definitely not something hard to be done, not this is the problem, so in the attached skin the slider is always visible. Please download and install the attached package. Note that you have to install it, because besides the VolumeSlider config, it installs a plugin as well, called
Mouse, which has been created by NighthawkSLO. It is needed to can realize dragging. Without this plugin (or obviously out there might be others as well, however one is needed anyway), setting the volum by simple click might be possible, however dragging is completely impossible (or at least extremely hard to be achieved). The package installs the appropriate version of the plugin as well.
When the installation is finished, the skin loads. It is based on your code, but I added lot of things (a VolLev variable and sections like [MeasureSetVol], [MeasureMouseVolLev], [MeterSliderLineVolLevBackground], [MeterSliderLineVolLev] and [MeterSlider]). The dragging operation is done through the LeftMouseDragAction option of the [MeasureMouseVolLev] newlly added measure.
I replaced the original
Update=20 option of the [Rainmeter] section by the default
Update=1000. I don't see anything in the posted code which would require such a low Update. I also removed the
IfConditionMode=1 option from the [MeasureVolume] measure, because there is need to execute one of the IfTrueAction options of the measure once per update (so once per 20 milliseconds with the original Update, not even once per second with the altered Update).
The skin definitely needs to be improved (as said, for instance the disappearance of the slider is not realized so far). But for first, I'd like you to give it a try and let me know what you think about it. Then we'll see...
You do not have the required permissions to view the files attached to this post.