Keyboard input
Posted: May 11th, 2017, 3:34 pm
Is there any way that I can, let's say, press a rain meter button on my computer screen and have it press something like shift e? Thanks in advance.
Not sure what you mean by "rain meter button", but for this kind of task, you don't even need a lua script (that1s why I'm not sure why have you posted this question into the Lua scripting section). The only thing you need is the HotKey plugin.dooderman10 wrote:Is there any way that I can, let's say, press a rain meter button on my computer screen and have it press something like shift e? Thanks in advance.
First, I meant a button that I created for my desktop with rainmeter, second, I got it working.balala wrote:Not sure what you mean by "rain meter button", but for this kind of task, you don't even need a lua script (that1s why I'm not sure why have you posted this question into the Lua scripting section). The only thing you need is the HotKey plugin.
Code: Select all
[Rainmeter]
Update=-1
[Variables]
E=0
[MeasureE]
Measure=Plugin
Plugin=HotKey
HotKey=SHIFT E
KeyDownAction=[!SetVariable E "(#E#+1)"][!UpdateMeasure "MeasureE"][!UpdateMeter "MeterE"][!Redraw]
DynamicVariables=1
[MeterE]
Meter=STRING
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=14
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=#E#
DynamicVariables=1