Re: HotKey plugin 1.0
Posted: May 9th, 2017, 4:25 am
I need help on getting the mouse buttons to work.
Can I get example code of one of the mouse buttons?
Can I get example code of one of the mouse buttons?
Mouse buttons only work in combination with other non-mouse keys.Leaversa wrote:I need help on getting the mouse buttons to work.
Can I get example code of one of the mouse buttons?
Code: Select all
[LeftMouseSpacebarHotkey]
Measure=Plugin
Plugin=HotKey
HotKey="SPACE LBUTTON"
KeyDownAction=[!SomeBang ...]
You need to create a skin with the following code. Name it anything you want and save it in a new SKINS folder. Refresh Rainmeter and load this new skin. You will not see anything new on the screen, but it will be listed under active skins in the Manage dialog.markpud wrote:Hi,
Please could someone help with newb advice on how to use this plugin to trigger change of Rainmeter layout via a hotkey combo e.g. CTRL-ALT-A or Windows-CTRL-1 etc?
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
Group=#RootConfig#
; ========= Metadata ==========
[Metadata]
Name=
Author=
Information=You must add this SAME SKIN to every layout you set in the [Variables] otherwise it is not available and will not work. Requires Rainmeter-4.1-r2876-beta minimum due to nested variable use.
License=Creative Commons Share-Alike NC 4
Version=
; ========= Variables ==========
[Variables]
; Set this to the number of layouts you want to step through with each Hotkey press
NumberOfLayouts=3
CurrentLayoutNumber=0
; Add your layouts starting at zero
Layout0=Elementary
Layout1=illustro
Layout2=Enigma Basic
; ========= Measures ==========
[Hotkey]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL ALT L
KeyDownAction=[!WriteKeyValue Variables CurrentLayoutNumber (([#CurrentLayoutNumber]+1)%[#NumberOfLayouts])][!SetVariable CurrentLayoutNumber (([#CurrentLayoutNumber]+1)%[#NumberOfLayouts])][!LoadLayout [#Layout[#CurrentLayoutNumber]]]
; ========= Meter Styles =========
; ========= Meters ==========
[DummyMeter]
Meter=String
eclectic-tech wrote:You need to create a skin with the following code. Name it anything you want and save it in a new SKINS folder. Refresh Rainmeter and load this new skin. You will not see anything new on the screen, but it will be listed under active skins in the Manage dialog.
It uses CTRL ALT L as the hotkey combination to step through 3 layouts Elementary, illustro, Enigma Basic, and back to Elementary.
You can set the variables to step through any number of layouts, from 2 to as many layouts as you want.
To toggle between the current layout and another layout, set Layout0=@Backup and Layout1=anotherlayout and NumberOfLayouts=2.
NOTES:
1. In order for this to work, you MUST load this SAME SKIN into those layouts and re-save the layouts; that way this skin is included in those layouts and is ready to switch on the next layout when the hotkey combination is pressed.
2. Requires Rainmeter-4.1-r2876-beta minimum due to nested variable use.
Code: Select all
[Rainmeter] Update=1000 AccurateText=1 DynamicWindowSize=1 Group=#RootConfig# ; ========= Metadata ========== [Metadata] Name= Author= Information=You must add this SAME SKIN to every layout you set in the [Variables] otherwise it is not available and will not work. Requires Rainmeter-4.1-r2876-beta minimum due to nested variable use. License=Creative Commons Share-Alike NC 4 Version= ; ========= Variables ========== [Variables] ; Set this to the number of layouts you want to step through with each Hotkey press NumberOfLayouts=3 CurrentLayoutNumber=0 ; Add your layouts starting at zero Layout0=Elementary Layout1=illustro Layout2=Enigma Basic ; ========= Measures ========== [Hotkey] Measure=Plugin Plugin=HotKey HotKey=CTRL ALT L KeyDownAction=[!WriteKeyValue Variables CurrentLayoutNumber (([#CurrentLayoutNumber]+1)%[#NumberOfLayouts])][!SetVariable CurrentLayoutNumber (([#CurrentLayoutNumber]+1)%[#NumberOfLayouts])][!LoadLayout [#Layout[#CurrentLayoutNumber]]] ; ========= Meter Styles ========= ; ========= Meters ========== [DummyMeter] Meter=String
No, they are not, but as you seen there is another way to disable this kind of measure.