I made the Autoit script, which gets the data of standart input stream (to make the spectrum analyzer in Rainmeter, and don't use Samurize at all)...
On AutoIt side - everything is fine - VUMeter works, Analyzer get's the spectrum... But problem is to send data into Rainmeter. In first realization I used the SendBang function from here:
http://rainmeter.net/cms/Developers-API-WindowMessage
Like that:
Code: Select all
$actualLeft=<someValueHere>
SendBang('!SetVariable DSVUMeterLeft "'&$actualLeft&'"')
So I decide to use windowMessage plugin to ask my AutoIt program (deamon in fact) about specified values...
I tried to send message to script like that:
Code: Select all
[MeasureWinampPlaying]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowClass=Autoit v3 GUI
WindowMessage=1024 0 0
Code: Select all
#include <GUIConstantsEx.au3>
#include <SendMessage.au3>
GUICreate("Hello World", 200, 100)
Opt("GUIOnEventMode", 0)
While 1
$msg = GUIGetMsg()
if $msg>0 then
ConsoleWrite("):(")
ConsoleWrite($msg)
EndIf
if $msg<0 then
ConsoleWrite("):(")
ConsoleWrite($msg)
EndIf
WEnd
I'm doing something wrong... But what?