Sending bangs from AHK to Rainmeter skins - found your discussion with Smurth. I just tested the function in AHK v2, see below. I don't get an error message, it runs - but no joy, the (existing) meter in the running test-skin does not react, the existing text is not changing. Do I need to use another string syntax with additional [] or ""? Coming from here I believe my syntax should be correct, maybe I'm missing something else?
I also changed the WinExist line to WinExist("ahk_class RainmeterMeterWindow")) -> still no joy.
... and for sending multiple bangs to the same meter, is this the correct syntax? Sorry for jangling your nerves :-/
I also changed the WinExist line to WinExist("ahk_class RainmeterMeterWindow")) -> still no joy.
... and for sending multiple bangs to the same meter, is this the correct syntax? Sorry for jangling your nerves :-/
Code:
SendBang('!SetOption MyTestMeter1 Text "XXX" MyTestMeter2 Text "YYY" MyTestMeter3 Text "ZZZ" "test\testskin.ini"')
Code:
SendBang('!SetOption MyTestMeter1 Text "XXXXXX" "test\testskin.ini"')SendBang(str) {d := Buffer(24, 0)l := (StrLen(str) + 1) * 2NumPut("UPtr", 1, d)NumPut("UPtr", l, d, 8)NumPut("UPtr", StrPtr(str), d, 16)dhw := A_DetectHiddenWindowsDetectHiddenWindows 1SendMessage(0x4a, 0, d.Ptr,, WinExist("ahk_class DummyRainWClass"))DetectHiddenWindows dhw}
Statistics: Posted by emp00 — Yesterday, 9:18 pm