It is currently March 19th, 2024, 11:08 am

LeftMouseUpAction not working?

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

LeftMouseUpAction not working?

Post by Langlu2 »

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: 16091
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: LeftMouseUpAction not working?

Post by balala »

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"].
Post Reply