Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Plugins in Actions

Discuss anything to do with plugins

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
AllenConquest
Posts: 32
Joined: February 26th, 2005, 7:03 pm

Plugins in Actions

Post by AllenConquest »

Is it possible to use the output from a custom plugin as a command in an action? So for example can I get LCDSmartie to perform an action if I return a certain string from a plugin function ?
_X7JAY7X_
Hardware Genie - Plugin Author
Posts: 374
Joined: February 16th, 2005, 10:24 pm
Location: Michigan

Post by _X7JAY7X_ »

yes just return a number (not integer).


For example

if $dll(test,1,1,1) = 1 then turn backlight on


just make sure that function 1 returns the character 1 if something is true, otherwise 0
clansley
Site Admin
Posts: 104
Joined: February 13th, 2005, 5:09 pm
Location: UK
Contact:

Post by clansley »

You can use a dll in the condition and also in the action.

When using a dll as an action any string returned will be checked to see if it contains an action - if it does then it will also do that action. [i.e. If dll returns "WAPlay" then it will make win amp play etc].
AllenConquest
Posts: 32
Joined: February 26th, 2005, 7:03 pm

Post by AllenConquest »

Thanks. Just the information I needed. How often are the action conditions checked ?
clansley
Site Admin
Posts: 104
Joined: February 13th, 2005, 5:09 pm
Location: UK
Contact:

Post by clansley »

Every 250 ms (1/4 second).
Post Reply