It is currently July 18th, 2019, 8:22 pm

LeftMouseUpAction not working?

Help with creating, editing & fixing problems with skins
Langlu2
Posts: 1
Joined: June 24th, 2019, 7:46 am

LeftMouseUpAction not working?

Langlu2 » June 24th, 2019, 7:52 am

I have set up a script using AutoHotkey (AHK). I then compiled this script and saved it as an application (.exe) file on my desktop.

I have an image meter in my rainmeter skin which I want to be able to click to run this script.

I have tried linking to the path of both the AHK and the exe file.

LeftMouseUpAction=["C:\Users\Langlu\Desktop\Script1.ahk"]
LeftMouseUpAction=["C:\Users\Langlu\Desktop\Script1.exe"]

Neither of these run the script.

The authotkey script runs without a hotkey. Simply running it, it sends a keystroke to another window. (double clicking it on my desktop, it works).

Very confused..
User avatar
balala
Rainmeter Sage
Posts: 8376
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: LeftMouseUpAction not working?

balala » June 24th, 2019, 11:59 am

I'd use a RunCommand plugin measure for this.
If you want to try this out, add the following measure to your code:

Code: Select all

[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Program=C:\Users\Langlu\Desktop\Script1.exe
State=Hide
To run the program, replace the existing LeftMouseUpAction option with the following one: LeftMouseUpAction=[!CommandMeasure "MeasureRun" "Run"].