Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1065

Help: Rainmeter Skins • Re: Receiving Window Messages

$
0
0
@Yincognito:
Out of subject but you might find this usefull: sending strings from Rainmeter to AHK

default.ini :

Code:

[Message]Measure=PluginPlugin=WindowMessagePluginWindowClass=AutoHotkey;WindowName=[lua]UpdateDivider=-1Measure=ScriptScriptFile=default.lua[MyMeter]Meter=ImageLeftMouseUpAction=[!CommandMeasure lua "Send('#CURRENTSECTION#')"]

default.lua :

Code:

function Send(str)for c in string.gmatch(str, ".") doSKIN:Bang('!CommandMeasure', 'Message', 'SendMessage 8192 0 ' .. string.byte(c))endSKIN:Bang('!CommandMeasure', 'Message', 'SendMessage 8192 1 0')end
myScript.ahk (v2) :

Code:

OnMessage 0x2000, MsgMsg(wParam, lParam, msg, hwnd, *) {Static str := ""if wParam {ProcessTheReceivedString(str)str := ""} elsestr .= Chr(lParam)}ProcessTheReceivedString(str) {MsgBox str}

Statistics: Posted by Smurth — Yesterday, 7:35 am



Viewing all articles
Browse latest Browse all 1065

Trending Articles