Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: trigger variables Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: July 03 2013 at 16:58 | IP Logged Quote patrickm

Hello,
Does anyone have a list of variables that are available during a trigger?

I have a trigger from a socket plugin that I would like to set up a boolean formula that compares the beginning of the received string to a MAC ID and triggers if there is a match.

I am thinking of using ph_getvar_s but I have no idea where the received string from the plugin resides.

Thanks
Patrick
Back to Top View patrickm's Profile Search for other posts by patrickm
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: July 03 2013 at 18:07 | IP Logged Quote grif091

I use these strings in a Macro with User Message to display the temp and local values.

"temp1= " + ph_getvar_s(2,1) + " temp2= " + ph_getvar_s(2,2) + " temp3= " + ph_getvar_s(2,3) + " temp4= " + ph_getvar_s(2,4) + " temp5= " + ph_getvar_s(2,5) + " temp6= " + ph_getvar_s(2,6) + " temp7= " + ph_getvar_s(2,7) + " temp8= " + ph_getvar_s(2,8) + " temp9= " + ph_getvar_s(2,9) + " temp10= " + ph_getvar_s(2,10)

"local1= " + ph_getvar_s(1,1) + " local2= " + ph_getvar_s(1,2) + " local3= " + ph_getvar_s(1,3) + " local4= " + ph_getvar_s(1,4) + " local5= " + ph_getvar_s(1,5) + " local6= " + ph_getvar_s(1,6) + " local7= " + ph_getvar_s(1,7) + " local8= " + ph_getvar_s(1,8) + " local9= " + ph_getvar_s(1,9) + " local10= " + ph_getvar_s(1,10)


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: July 03 2013 at 18:57 | IP Logged Quote patrickm

Thanks Lee,

When in doubt printf...

Patrick
Back to Top View patrickm's Profile Search for other posts by patrickm
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: July 03 2013 at 22:59 | IP Logged Quote patrickm

The string is in temp5.
Back to Top View patrickm's Profile Search for other posts by patrickm
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum