password fields
If anyone has a spare minute, please let me know if the 'password field converter' plugin in user space Jock_McTartan behaves itself using different OS's (esp. Mac). I tried a few demo stacks to create password fields, but seemed to keep ending up with strange results in the field (especially with mouse selections and key press combinations) - I'd be interested to hear if anyone else has had problems creating password fields (or am I all alone?) and if this version also produces strange results on different systems. I've only tested on windows so far and it seems to be well behaved. Thanks , JC ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: setting up password fields
At 12:39 pm -0800 21/3/03, Chris Sheffield wrote: I know this one has been discussed a while back. I found some posts in an old archive, but I was wondering if anyone has a better (newer) way of setting up a regular field to accept a password entry (i.e. put a '*' in place of each character). I tried some code from an old archive something like: on keydown whichKey global thisPassword put whichKey after thisPassword put "*" after field "passwordField" end keyDown But this doesn't quite work. If the user has to modify what he's typed, or if he highlights the entire password, deletes it, and starts over, the value in thisPassword just keeps building on itself. Here are some scripts I use for this. In this case, the "real" text is stored in a custom property instead of a global. It takes account of cases where the insertion pont is not at the end of the field and when there is a selection. But you would also need to decide whether to allow pasting/cutting in the field, and if so, how to handle it. (I disallow it.) on keyDown pChar if pChar is in "-1234567890abcdefghijklmnopqrstuvwxyz" then ##or whatever put word 2 of the selectedChunk into tCh1 put word 4 of the selectedChunk into tCh2 put the cpPassText of me into tPassText if tCh1 > tCh2 then put "*" after char tCh2 of me put pChar after char tCh2 of tPassText else delete char tCh1 to tCh2 of me delete char tCh1 to tCh2 of tPasstext put "*" after char tCh1 -1 of me put pChar after char tCh1 -1 of tPasstext end if set the cpPassText of me to tPassText else beep end if end keyDown on deleteKey put word 2 of the selectedChunk into tCh1 put word 4 of the selectedChunk into tCh2 put the cpPassText of me into tPassText if tCh1 > tCh2 then delete char tCh1 of me delete char tCh1 of tPassText else delete char tCh1 to tch2 of me delete char tCh1 to tch2 of tPassText end if set the cpPassText of me to tPassText end deleteKey on backspaceKey put word 2 of the selectedChunk into tCh1 put word 4 of the selectedChunk into tCh2 put the cpPassText of me into tPassText if tCh1 > tCh2 then delete char tCh2 of me delete char tCh2 of tPassText else delete char tCh1 to tch2 of me delete char tCh1 to tch2 of tPassText end if set the cpPassText of me to tPassText end backspaceKey Cheers Dave ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: setting up password fields
Thanks a ton! That should get me started. Chris Sheffield --- Monte Goulding <[EMAIL PROTECTED]> wrote: > > Try typing this in the message box and take what you > need: > > edit the script of cd 1 stack "Ask Dialog" > > Cheers > > Monte > > > > I really would rather not do that if I don't have > to. > > Not only is it kind of ugly, but the dialog pops > up > > over the top of other graphics and text that I > have on > > the screen, which I don't want. > > > > Chris Sheffield > > > > --- Jim Lambert <[EMAIL PROTECTED]> wrote: > > > way > > > of > > > setting up a regular field to accept a password > > > entry > > > (i.e. put a '*' in place of each character). > > > > > > > I know it's a dialog not a field but might this > > > excerpt from the Trnscript > > > dictionary help? > > > > > > "The ask password command displays a dialog box > like > > > the ask command, but > > > with the characters the user types displayed as > > > asterisks (*) for privacy." > > > > > > Jim Lambert > > > > > > ___ > > > use-revolution mailing list > > > [EMAIL PROTECTED] > > > > > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > > __ > > Do you Yahoo!? > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > live on your desktop! > > http://platinum.yahoo.com > > ___ > > use-revolution mailing list > > [EMAIL PROTECTED] > > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: setting up password fields
on keydown whichKey global thisPassword put whichKey after thisPassword put "*" after field "password" end keyDown on backspaceKey global thisPassword put empty into field "password" put "" into thisPassword end backspaceKey on deleteKey global thisPassword put empty into field "password" put "" into thisPassword end deleteKey on returnInField send mouseUp to btn "Next" end returnInField > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Chris > Sheffield > Sent: Friday, March 21, 2003 2:40 PM > To: [EMAIL PROTECTED] > Subject: setting up password fields > > > You're all going to be sick of me by the end of the > day! :-) I'm just getting into the nitty gritty of > my GUI. And since I'm new to Revolution, I've got > lots of questions. > > I know this one has been discussed a while back. I > found some posts in an old archive, but I was > wondering if anyone has a better (newer) way of > setting up a regular field to accept a password entry > (i.e. put a '*' in place of each character). I tried > some code from an old archive something like: > > on keydown whichKey >global thisPassword >put whichKey after thisPassword >put "*" after field "passwordField" > end keyDown > > But this doesn't quite work. If the user has to > modify what he's typed, or if he highlights the entire > password, deletes it, and starts over, the value in > thisPassword just keeps building on itself. > > Does anyone have a solution? Preferably something > that handles Delete and Backspace as well? I'd like > something that works like "ask password", but in a > regular field. Is there any way I can look at the > code behind the ask password dialog? > > Thanks, > > Chris Sheffield > Read Naturally > > > __ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: setting up password fields
Try typing this in the message box and take what you need: edit the script of cd 1 stack "Ask Dialog" Cheers Monte > > I really would rather not do that if I don't have to. > Not only is it kind of ugly, but the dialog pops up > over the top of other graphics and text that I have on > the screen, which I don't want. > > Chris Sheffield > > --- Jim Lambert <[EMAIL PROTECTED]> wrote: > > > of > > setting up a regular field to accept a password > > entry > > (i.e. put a '*' in place of each character). > > > > > I know it's a dialog not a field but might this > > excerpt from the Trnscript > > dictionary help? > > > > "The ask password command displays a dialog box like > > the ask command, but > > with the characters the user types displayed as > > asterisks (*) for privacy." > > > > Jim Lambert > > > > ___ > > use-revolution mailing list > > [EMAIL PROTECTED] > > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > __ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: setting up password fields
I really would rather not do that if I don't have to. Not only is it kind of ugly, but the dialog pops up over the top of other graphics and text that I have on the screen, which I don't want. Chris Sheffield --- Jim Lambert <[EMAIL PROTECTED]> wrote: > of > setting up a regular field to accept a password > entry > (i.e. put a '*' in place of each character). > > > I know it's a dialog not a field but might this > excerpt from the Trnscript > dictionary help? > > "The ask password command displays a dialog box like > the ask command, but > with the characters the user types displayed as > asterisks (*) for privacy." > > Jim Lambert > > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: setting up password fields
I know it's a dialog not a field but might this excerpt from the Trnscript dictionary help? "The ask password command displays a dialog box like the ask command, but with the characters the user types displayed as asterisks (*) for privacy." Jim Lambert ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
setting up password fields
You're all going to be sick of me by the end of the day! :-) I'm just getting into the nitty gritty of my GUI. And since I'm new to Revolution, I've got lots of questions. I know this one has been discussed a while back. I found some posts in an old archive, but I was wondering if anyone has a better (newer) way of setting up a regular field to accept a password entry (i.e. put a '*' in place of each character). I tried some code from an old archive something like: on keydown whichKey global thisPassword put whichKey after thisPassword put "*" after field "passwordField" end keyDown But this doesn't quite work. If the user has to modify what he's typed, or if he highlights the entire password, deletes it, and starts over, the value in thisPassword just keeps building on itself. Does anyone have a solution? Preferably something that handles Delete and Backspace as well? I'd like something that works like "ask password", but in a regular field. Is there any way I can look at the code behind the ask password dialog? Thanks, Chris Sheffield Read Naturally __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution