More Password Questions
staticattic
Posts: 200
I would like to give the user the ability to edit the names of the buttons on their TP. I currently have it set up where if they push and hold a button for 1 second, the keyboard opens up and allows them to type in a new name. I would like to password protect the edit feature. In the HOLD[10]: section, I included this line:
SEND_COMMAND dvTP, "'^BPP-36,3'". Ultimately, I would like to use a button array to catch any of the buttons they were trying to edit, I was just using one button as a test. Herein lies the problem. If I put the password line in the code, it doesn't matter if it is in the PUSH: sction or the HOLD: section, it automatically pops up the password keypad no matter what. Is there a way to make this work or am I going to need to make an "Edit" button that encompasses the whole page, as in "Press the edit button, enter the password, and then touch the button you want to change."
SEND_COMMAND dvTP, "'^BPP-36,3'". Ultimately, I would like to use a button array to catch any of the buttons they were trying to edit, I was just using one button as a test. Herein lies the problem. If I put the password line in the code, it doesn't matter if it is in the PUSH: sction or the HOLD: section, it automatically pops up the password keypad no matter what. Is there a way to make this work or am I going to need to make an "Edit" button that encompasses the whole page, as in "Press the edit button, enter the password, and then touch the button you want to change."
0
Comments
It almost always works!
That's a great rule to live by, I too find myself doing that
guessing nEditButton is an INTEGER, i can tell you why that doesn't work (*hint*hint*)
What i would do is this:
Make a button to enable "edit-mode". That button would be password protected. Once the button is pressed/held/whatever you set a flag in your software, which enables the user to press a button to edit the text.
After one button is changed, reset the flag to enable "normal" operation
Quote:
Originally Posted by staticattic
"So, even though I felt like smashing my laptop to bits, I did learn new things."
...you might want to look at hardened laptops: http://www.laptop-repair.info/rugged_laptops.html. Some of us need to use only these!
Interesting methodolgy.
My methodology is this. Just before I do something I ask myself "Would an idiot do this?" If the answer is yes, then I do not do that.
Paul