I am not sure if this should be here, so please, if it doesn't, push it somewhere else. (:
I am using NirCmd to interface with VLCCtrl by Poiru. Rainmeter calls NirCmd to send a command to vlcctrl to do whatever (e.g. go to the next song) Here is my code:
Code: Select all
[Rainmeter]
Author=Idstealth
BackgroundMode=1
Update=1000
[MeterVLC]
Meter=Image
ImageName="VLC.ico"
W=75
H=75
AntiAlias=1
LeftMouseUpAction=!Execute ["C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\Users\Idstealth\Documents\Music"]
[MeterShuffle]
Meter=Image
ImageName="Shuffle.ico"
X=60
Y=75
W=15
H=15
AntiAlias=1
LeftMouseUpAction=!Execute ["#ADDONSPATH#Nircmd\NirCmd.exe" exec hide vlcctrl /u=127.0.0.1:8080 /a=pl_random]
[MeterPlay]
Meter=Image
ImageName="Play.ico"
X=0
Y=75
W=15
H=15
AntiAlias=1
LeftMouseUpAction=!Execute["#ADDONSPATH#Nircmd\Nircmd.exe" exec hide vlcctrl /u=127.0.0.1:8080 /a=pl_random]
[MeterPrevious]
Meter=Image
ImageName="Previous.ico"
X=20
Y=75
W=15
H=15
AntiAlias=1
LeftMouseUpAction=!Execute["#ADDONSPATH#Nircmd\Nircmd.exe" exec hide vlcctrl /u=127.0.0.1:8080 /a=pl_next]
Note: I know my [MeterPrevious] says '/a=pl_next', it's just to test if the commands work. Also, I placed vlcctrl in my C:\Windows folder so that I wouldn't have to specify the path.