Plugin winlirc.spf
File: winlirc.spf
Author: Nicholas Nemtsev
Description: Allows to start a task when specific command is received
from WinLIRC.
WinLIRC is a program which monitors IR (infrared) port and transmits the text
of a buttons, which are pressed on remote control unit from TV, audio-system
or other infrared remote controls.
New words:
WatchLirc: is an event specifier, that receives WinLIRC commands and compares it with a specified command_pattern - mask of a button title, which is pressed on remote control unit. Command_pattern may include wildcard characters * and ? or regular expressions enclosed in slashes: /<regexp>/.
The word WatchLirc: is triggered when WinLIRC command matches a specified command_pattern.
Examples:
\ triggered when any WinLIRC command was received WatchLirc: "*" \ triggered when WinLIRC 'play' command was received WatchLirc: "play" \ triggered when WinLIRC 'stop' command was received WatchLirc: "stop" \ triggered when any numerical WinLIRC command was recived WatchLirc: "/\d+/"
Using WatchLirc: word you can assign different actions to different buttons of your remote control unit.
Examples:
#( winlirc_play
WatchLirc: "play"
Action:
START-APP: your_player.exe -play favorite.mp3
)#
#( winlirc_shutdown
WatchLirc: "stop"
Action:
FORCE-POWEROFF
)#
#( winlirc_go_online
WatchLirc: "0"
Action:
ONLINE: "MyConnection" 0=
IF
RASUser: "login"
RASPassword: "password"
DIAL: "MyConnection" 5 30
THEN
)#
![]()