Page tracking - what am I doing wrong?
adys
Junior Member
Hi all
I am trying to do some page tracking so I can open some popups when 3th side module is changing a page (RocketGui for squeeze box)
I have enabled the page tracking in the TP
I am listening to the TP on my code
DATA_EVENT[dvTPFamilyRoom]
{
COMMAND:
{
printDebug("'Family TP DATA.TEXT: ',DATA.TEXT")
}
STRING:
{
printDebug("'Family TP DATA.TEXT: ',DATA.TEXT")
}
}
I get nothing
What am I doing wrong?
When looking at device netlinx notification I can see all the messages that the TP is sending.
Thanks,
Ady.
I am trying to do some page tracking so I can open some popups when 3th side module is changing a page (RocketGui for squeeze box)
I have enabled the page tracking in the TP
I am listening to the TP on my code
DATA_EVENT[dvTPFamilyRoom]
{
COMMAND:
{
printDebug("'Family TP DATA.TEXT: ',DATA.TEXT")
}
STRING:
{
printDebug("'Family TP DATA.TEXT: ',DATA.TEXT")
}
}
I get nothing
What am I doing wrong?
When looking at device netlinx notification I can see all the messages that the TP is sending.
Thanks,
Ady.
Comments
-
Page tracking only works if the page flip was done by the panel. It doesn't work when done in code.
-
Thanks Dave, its done from the panel, all of the page flip and popup are from the panel.
I can see it from the netlinx but not in my code.
BTW, you gave me an idea, would it be better to add a string command to the panel buttons so I can know when the page has been flipped?
Or maybe I can listen to the button itself.... I don't want to sit on the same event that the module is listening to, but maybe this is the best solution?
Thanks,
Ady -
Maybe I should listen to port 1? and not the usual ports?
looks like the is another module that catching the messages and not mine
DATA_EVENT[dvTP_Port_1]
Why I am not getting them on both DATA_EVENT?
only one listening on DATA_EVENT is available for port 1? -
Maybe I should listen to port 1? and not the usual ports?
looks like the is another module that catching the messages and not mine
DATA_EVENT[dvTP_Port_1]
Why I am not getting them on both DATA_EVENT?
only one listening on DATA_EVENT is available for port 1?
Any strings that are sent from the TP to the master are sent on port 1, even if it is a text input box that has a different port assigned. Your dvTPFamilyRoom will have to be port 1 in order for your data_event to trigger when a string is sent. -
If you want to track pages that are flipped from code, just send the TPAGEON command after the flip. I often do it as a function. This allow any variable that you are using to catch page flips to be updated whether the flips comes from the panel or code.
<code>
DEFINE_FUNCTION fnPageFlip(DEV dvPanel,CHAR cPageName[])
{
SEND_COMMAND dvPanel,"'PAGE-',cPageName"
SEND_COMMAND dvPanel,'TPAGEON'
}
</code> -
Thanks
I decided to go with the old way and listen to any of the buttons that open the specific pages
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums