AVS Forum banner

How to create a nag screen?

2579 Views 18 Replies 8 Participants Last post by  KenL
Since I have WiRNS, can't I use it to create my own nag screen? It would be an interesting way to send messages to family members.


Couldn't I play with the authcmds to do this?
1 - 19 of 19 Posts

Quote:
Originally Posted by Yakuman /forum/post/20790430


Since I have WiRNS, can't I use it to create my own nag screen? It would be an interesting way to send messages to family members.


Couldn't I play with the authcmds to do this?

Yes, you can do this easily with WiRNS 3.0. For WiRNS 2.1 it would be a bit more difficult, but is still possible (you'd have to disable AuthActivate and then create a signed authcmds file).


Just add these lines to the authcmds file in WiRNS 3.0 (assuming you are currently using the contents of authcmds.example in your authcmds file), you can change the message where is says "Your message here":
Code:
Code:
regedit setstr SysConfig/Auth MyMessage "Your message here" 
regedit setstr SysConfig/Auth/ChannelGuide/OK Message "@SysConfig/Auth/MyMessage"
regedit setval SysConfig/Auth/ChannelGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ChannelGuide/OK MessageFrequency 86400
regedit setstr SysConfig/Auth/ReplayGuide/OK Message "@SysConfig/Auth/MyMessage"
regedit setval SysConfig/Auth/ReplayGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ReplayGuide/OK MessageFrequency 86400
Note that I have not tested this, but I believe it should work.


If you want the message to pop up more or less frequently, just change the "86400" values, this value is in seconds and is currently every 24 hours (86400 seconds).
See less See more

Quote:
Originally Posted by Space /forum/post/20790461


Yes, you can do this easily with WiRNS 3.0. For WiRNS 2.1 it would be a bit more difficult, but is still possible (you'd have to disable AuthActivate and then create a signed authcmds file).


Just add these lines to the authcmds file in WiRNS 3.0 (assuming you are currently using the contents of authcmds.example in your authcmds file), you can change the message where is says "Your message here":
Code:
Code:
regedit setstr SysConfig/Auth MyMessage "Your message here" 
regedit setstr SysConfig/Auth/ChannelGuide/OK Message "@SysConfig/Auth/MyMessage"
regedit setval SysConfig/Auth/ChannelGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ChannelGuide/OK MessageFrequency 86400
regedit setstr SysConfig/Auth/ReplayGuide/OK Message "@SysConfig/Auth/MyMessage"
regedit setval SysConfig/Auth/ReplayGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ReplayGuide/OK MessageFrequency 86400
Note that I have not tested this, but I believe it should work.


If you want the message to pop up more or less frequently, just change the "86400" values, this value is in seconds and is currently every 24 hours (86400 seconds).

I have tried this before, and I tried it again just now. It makes the message show up, AND it deactivates the Replay. That deactivation is reversed when you remove the commands from 'authcmds,.

Quote:
Originally Posted by Space /forum/post/20732197


Why not change it to say "This ReplayTV will self destruct in 5 seconds..."
Quote:
Originally Posted by mlloyd /forum/post/20791155


I have tried this before, and I tried it again just now. It makes the message show up, AND it deactivates the Replay. That deactivation is reversed when you remove the commands from 'authcmds,.

Back to the drawing board...


At what point does the replay deactivate?

Quote:
Originally Posted by KenL /forum/post/20791339


Back to the drawing board...


At what point does the replay deactivate?

Just after the net connect (the first net connect with the altered file), I become unable to access the channel guide or Replay guide.

Quote:
Originally Posted by mlloyd /forum/post/20791155


AND it deactivates the Replay.

Perhaps useful if you want to take priviledges away from an errant child.
See less See more

Quote:
Originally Posted by Space /forum/post/20790461


Yes, you can do this easily with WiRNS 3.0. For WiRNS 2.1 it would be a bit more difficult, but is still possible (you'd have to disable AuthActivate and then create a signed authcmds file).


Just add these lines...


...Note that I have not tested this, but I believe it should work.


If you want the message to pop up more or less frequently, just change the "86400" values, this value is in seconds and is currently every 24 hours (86400 seconds).

Works! sorta (not even)*


Quote:
Originally Posted by mlloyd /forum/post/20791155


I have tried this before, and I tried it again just now. It makes the message show up, AND it deactivates the Replay. That deactivation is reversed when you remove the commands from 'authcmds,.

Try this for authcmds:

Code:
Code:
regedit delete SysConfig/Auth
regedit setval SysConfig/Auth Activated 1
regedit setval SysConfig/Auth Registered 1
regedit setval SysConfig/Auth RegisteredMyReplayTV 1
regedit setval SysConfig/Auth/iChannels Enabled 0
regedit setstr SysConfig/Auth/iChannels GroupName ""
regedit setstr SysConfig/Auth MyMessage "Your message here" 
regedit setstr SysConfig/Auth/ChannelGuide/OK Message "@SysConfig/Auth/MyMessage"
regedit setval SysConfig/Auth/ChannelGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ChannelGuide/OK MessageFrequency 86400
regedit setstr SysConfig/Auth/ReplayGuide/OK Message "@SysConfig/Auth/MyMessage"
regedit setval SysConfig/Auth/ReplayGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ReplayGuide/OK MessageFrequency 86400
regedit setval SysConfig/Auth/Zones/OK Eff 0
regedit setval SysConfig/Auth/Zones/OK Exp 0
regedit setval SysConfig/Auth/Zones/OK Auth 1
regedit setval SysConfig/Auth/View/OK Eff 0
regedit setval SysConfig/Auth/View/OK Exp 0
regedit setval SysConfig/Auth/View/OK Auth 1
regedit setval SysConfig/Auth/Record/OK Eff 0
regedit setval SysConfig/Auth/Record/OK Exp 0
regedit setval SysConfig/Auth/Record/OK Auth 1
regedit setval SysConfig/Auth/Settings/OK Eff 0
regedit setval SysConfig/Auth/Settings/OK Exp 0
regedit setstr SysConfig/Auth/Settings/OK SystemInfoStr "Activated"
regedit setstr SysConfig/Auth/Settings/OK SetupButtonLabel "WiRNS Help"
regedit setval SysConfig/Auth/Settings/OK SetupScreen 0
>/name/system/user/Setup/SAMessage
See less See more
That causes the Replay to display the desired message INSTEAD of the channel guide or Replay guide.
2
Whooops... yep back to the drawing board.


*Apparently* not even activated either*.



The professor will have to tell us what we are doing wrong here.


I suspect we will need to adapt the auth from the real nag.
See less See more
3
Quote:
Originally Posted by mlloyd
That causes the Replay to display the desired message INSTEAD of the channel guide or Replay guide.
That will defintely work for an errant bovine .


All you see is the big ugly message.



Unfortunately since it isn't activated recording also ceases.
See less See more
OK, not sure why it is not working, maybe the order of the registry keys IS important (Henry seemed to indicate it was not). Anyway, here is an authcmds file that works:

Code:
Code:
regedit delete SysConfig/Auth
regedit setval SysConfig/Auth Activated 0
regedit setval SysConfig/Auth Registered 1
regedit setval SysConfig/Auth RegisteredMyReplayTV 1
regedit setstr SysConfig/Auth YourMessage "Your message here"
regedit setval SysConfig/Auth/iChannels Enabled 0
regedit setstr SysConfig/Auth/iChannels GroupName ""
regedit setval SysConfig/Auth/ChannelGuide/OK Eff 0
regedit setval SysConfig/Auth/ChannelGuide/OK Exp 0
regedit setval SysConfig/Auth/ChannelGuide/OK Auth 1
regedit setstr SysConfig/Auth/ChannelGuide/OK Message "@SysConfig/Auth/YourMessage"
regedit setval SysConfig/Auth/ChannelGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ChannelGuide/OK MessageFrequency 30
regedit setval SysConfig/Auth/ReplayGuide/OK Eff 0
regedit setval SysConfig/Auth/ReplayGuide/OK Exp 0
regedit setval SysConfig/Auth/ReplayGuide/OK Auth 1
regedit setstr SysConfig/Auth/ReplayGuide/OK Message "@SysConfig/Auth/YourMessage"
regedit setval SysConfig/Auth/ReplayGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ReplayGuide/OK MessageFrequency 30
regedit setval SysConfig/Auth/Zones/OK Eff 0
regedit setval SysConfig/Auth/Zones/OK Exp 0
regedit setval SysConfig/Auth/Zones/OK Auth 1
regedit setval SysConfig/Auth/View/OK Eff 0
regedit setval SysConfig/Auth/View/OK Exp 0
regedit setval SysConfig/Auth/View/OK Auth 1
regedit setval SysConfig/Auth/Record/OK Eff 0
regedit setval SysConfig/Auth/Record/OK Exp 0
regedit setval SysConfig/Auth/Record/OK Auth 1
regedit setval SysConfig/Auth/Settings/OK Eff 0
regedit setval SysConfig/Auth/Settings/OK Exp 0
regedit setstr SysConfig/Auth/Settings/OK SystemInfoStr "Activated (one-time fee paid)"
regedit setstr SysConfig/Auth/Settings/OK SetupButtonLabel "WiRNS Help"
regedit setval SysConfig/Auth/Settings/OK SetupScreen 0
>/name/system/user/Setup/SAMessage
See less See more
Thank you sir.



(and as an added bonus we get the dreaded zones nag as well!)
See less See more
Quote:
Originally Posted by Space
OK, not sure why it is not working, maybe the order of the registry keys IS important (Henry seemed to indicate it was not). Anyway, here is an authcmds file that works:

Code:
Code:
regedit delete SysConfig/Auth
regedit setval SysConfig/Auth Activated 0
regedit setval SysConfig/Auth Registered 1
regedit setval SysConfig/Auth RegisteredMyReplayTV 1
regedit setstr SysConfig/Auth YourMessage "Your message here"
regedit setval SysConfig/Auth/iChannels Enabled 0
regedit setstr SysConfig/Auth/iChannels GroupName ""
regedit setval SysConfig/Auth/ChannelGuide/OK Eff 0
regedit setval SysConfig/Auth/ChannelGuide/OK Exp 0
regedit setval SysConfig/Auth/ChannelGuide/OK Auth 1
regedit setstr SysConfig/Auth/ChannelGuide/OK Message "@SysConfig/Auth/YourMessage"
regedit setval SysConfig/Auth/ChannelGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ChannelGuide/OK MessageFrequency 30
regedit setval SysConfig/Auth/ReplayGuide/OK Eff 0
regedit setval SysConfig/Auth/ReplayGuide/OK Exp 0
regedit setval SysConfig/Auth/ReplayGuide/OK Auth 1
regedit setstr SysConfig/Auth/ReplayGuide/OK Message "@SysConfig/Auth/YourMessage"
regedit setval SysConfig/Auth/ReplayGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ReplayGuide/OK MessageFrequency 30
regedit setval SysConfig/Auth/Zones/OK Eff 0
regedit setval SysConfig/Auth/Zones/OK Exp 0
regedit setval SysConfig/Auth/Zones/OK Auth 1
regedit setval SysConfig/Auth/View/OK Eff 0
regedit setval SysConfig/Auth/View/OK Exp 0
regedit setval SysConfig/Auth/View/OK Auth 1
regedit setval SysConfig/Auth/Record/OK Eff 0
regedit setval SysConfig/Auth/Record/OK Exp 0
regedit setval SysConfig/Auth/Record/OK Auth 1
regedit setval SysConfig/Auth/Settings/OK Eff 0
regedit setval SysConfig/Auth/Settings/OK Exp 0
regedit setstr SysConfig/Auth/Settings/OK SystemInfoStr "Activated (one-time fee paid)"
regedit setstr SysConfig/Auth/Settings/OK SetupButtonLabel "WiRNS Help"
regedit setval SysConfig/Auth/Settings/OK SetupScreen 0
>/name/system/user/Setup/SAMessage
See less See more

Quote:
Originally Posted by Space /forum/post/20792110


OK, not sure why it is not working, maybe the order of the registry keys IS important (Henry seemed to indicate it was not).

The order of the keys does matter; I found that out when I wrote "trivial-auth.pl", and rearranged them.
I used something like this about 2 weeks ago to add a nag screen on the channel guide that was directed to my wife, and set the Effective/Expire timestamps so it only displayed that night between 10Pm and midnight, as I didn't want the kids to see it.




BTW, you can also make the "SystemInfoStr" anything you want. The one above is 'blah'.
See less See more

Quote:
Originally Posted by jlv /forum/post/20793117


The order of the keys does matter; I found that out when I wrote "trivial-auth.pl", and rearranged them.

Yes, the order of the items in the authcmds file does matter, because of the way the WiRNS plug-in processes it to produce the string used in generating the authorization El Gamal signature. As I understand it, the plug-in just uses the order in the authcmds file as-is. But the order has to be the same as the order that the Replay would reproduce the values out of the .reg file on the replay after the values are set, or else the hash won't match, so the authorization won't match.


It started working when you moved the MyMessage value setting before the iChannel subkey -- that put the values back into the order that the Replay would generate them for producing the hash.


The Perl script I wrote that would produce a command sequence, and also the parenthesized version that matches the way the Replay produces it. I have more Perl code here that would read in and reorder the commands correctly -- I'll go find it and attach it here shortly. (Short pause...)


OK, I looked at my code, and I'll have to do a little work on it -- it was set up to manage per-unit authorization for and enhanced RPTV proxy script I was working in before WiRNS 3.0 came out. I'll repackage a little bit, so that it can be used to "regularize" an authcmds script so that the results work with WiRNS.


But you guys just did the test I had mentioned that I intended to try in some earlier post (IIRC it was about trying it with the regedit commands in the "wrong" order). I've been sidetracked working on a proper 530511440 patch for enabling ACA and IVS for 55xx's, that does not use any modules from an earlier software release, and includes an incremented software version number.


Sigh. So much to hack, so little time...


TD
See less See more

Quote:
Originally Posted by t.d. /forum/post/20793211


the order has to be the same as the order that the Replay would reproduce the values out of the .reg file

So is the dump order FIFO? If so, it seems like a lot of trouble to write code to reorder the commands when presumably most people will rarely, if ever, edit the file, and it's easy enough to just make sure that the top level keys are first, and the subkeys are properly grouped. Or is it more complicated than that?

Quote:
I've been sidetracked working on a proper 530511440 patch for enabling ACA and IVS for 55xx's, that does not use any modules from an earlier software release, and includes an incremented software version number.

See, that seems like a higher priority project to me... not that code to automagically reorder the auth commands wouldn't be nice, but still... CA/IVS vs. customizable nag screens, which to prioritize, let me think....



Questions for those in a position to safely do these experiments:


What happens if you add the message to zones, or leave it off the channel guide or replay guide? Would the zones activate nag go away or would a similar activate nag attach to the channel or replay guide? Just curious...
See less See more

Quote:
Originally Posted by joblo /forum/post/20795193


Questions for those in a position to safely do these experiments:


What happens if you add the message to zones, or leave it off the channel guide or replay guide? Would the zones activate nag go away or would a similar activate nag attach to the channel or replay guide? Just curious...

Adding the message to Zones causes it to display your message instead of the default message (blank).


Removing the message from ChannelGuide or ReplayGuide (I only tried ChannelGuide) gives you the same default message you normally get when exiting Zones (a blank message).


Here is a new authcmds that also displays your personalized message when exiting Zones. I also made it so you can set up separate messages for each of the different functions (Channel Guide, Replay Guide, and Replay Zones) by just editing YourMessage1, YourMessage2, and YourMessage3:
Code:
Code:
regedit delete SysConfig/Auth
regedit setval SysConfig/Auth Activated 0
regedit setval SysConfig/Auth Registered 1
regedit setval SysConfig/Auth RegisteredMyReplayTV 1
regedit setstr SysConfig/Auth YourMessage1 "Your message #1 here"
regedit setstr SysConfig/Auth YourMessage2 "Your message #2 here"
regedit setstr SysConfig/Auth YourMessage3 "Your message #3 here"
regedit setval SysConfig/Auth/iChannels Enabled 0
regedit setstr SysConfig/Auth/iChannels GroupName ""
regedit setval SysConfig/Auth/ChannelGuide/OK Eff 0
regedit setval SysConfig/Auth/ChannelGuide/OK Exp 0
regedit setval SysConfig/Auth/ChannelGuide/OK Auth 1
regedit setstr SysConfig/Auth/ChannelGuide/OK Message "@SysConfig/Auth/YourMessage1"
regedit setval SysConfig/Auth/ChannelGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ChannelGuide/OK MessageFrequency 30
regedit setval SysConfig/Auth/ReplayGuide/OK Eff 0
regedit setval SysConfig/Auth/ReplayGuide/OK Exp 0
regedit setval SysConfig/Auth/ReplayGuide/OK Auth 1
regedit setstr SysConfig/Auth/ReplayGuide/OK Message "@SysConfig/Auth/YourMessage2"
regedit setval SysConfig/Auth/ReplayGuide/OK MessageButtons 1
regedit setval SysConfig/Auth/ReplayGuide/OK MessageFrequency 30
regedit setval SysConfig/Auth/Zones/OK Eff 0
regedit setval SysConfig/Auth/Zones/OK Exp 0
regedit setval SysConfig/Auth/Zones/OK Auth 1
regedit setstr SysConfig/Auth/Zones/OK Message "@SysConfig/Auth/YourMessage3"
regedit setval SysConfig/Auth/Zones/OK MessageButtons 1
regedit setval SysConfig/Auth/Zones/OK MessageFrequency 30
regedit setval SysConfig/Auth/View/OK Eff 0
regedit setval SysConfig/Auth/View/OK Exp 0
regedit setval SysConfig/Auth/View/OK Auth 1
regedit setval SysConfig/Auth/Record/OK Eff 0
regedit setval SysConfig/Auth/Record/OK Exp 0
regedit setval SysConfig/Auth/Record/OK Auth 1
regedit setval SysConfig/Auth/Settings/OK Eff 0
regedit setval SysConfig/Auth/Settings/OK Exp 0
regedit setstr SysConfig/Auth/Settings/OK SystemInfoStr "Activated (one-time fee paid)"
regedit setstr SysConfig/Auth/Settings/OK SetupButtonLabel "WiRNS Help"
regedit setval SysConfig/Auth/Settings/OK SetupScreen 0
>/name/system/user/Setup/SAMessage
See less See more

Quote:
Originally Posted by Space /forum/post/20795627


...Here is a new authcmds that also displays your personalized message when exiting Zones. I also made it so you can set up separate messages for each of the different functions (Channel Guide, Replay Guide, and Replay Zones) by just editing YourMessage1, YourMessage2, and YourMessage3...

Good stuff!



(we'll have fun with these and I'm not just talking about what cow has in store for liz)
See less See more
1 - 19 of 19 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top