mIRC Home    About    Download    Register    News    Help

Print Thread
#106732 03/01/05 05:08 AM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
I think it would be nice to be able to use the KeyUp and KeyDown events on all windows.

The reason for this is because I am trying to make a script that will hide passwords as they are being typed by the user. Currently the only way I can do this is to have a timer and an alias check the contents of the edit box and change the characters typed. It would reduce the code by more than half and greatly improve the performance of this script if I can do this with an event.

Also, along with this, I would like to use the ^ prefix with the KeyUp/KeyDown events if I cannot already.

#106733 03/01/05 09:18 PM
D
Dr_Brom_sung_
Dr_Brom_sung_
D
Whats wrong with dialogs?
You can add an edit box which is masked:
edit "" ,1,80 20 100 10,passwd

#106734 03/01/05 09:26 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
I think he wants to mask a password in a chanserv command (Just a guess).

#106735 03/01/05 09:41 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
Yes, I want the script to catch and mask passowrds in /identify /cs /oper /ns etc..

Currently I have a very slow and ugly looking script that checks the editbox for windows constantly, and replaces any possible passwords with *'s. As I said in my original post, it would eliminate half the code I currently have to use, and make things a lot faster and cleaner.

#106736 06/01/05 11:00 AM
Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
Yep.. Good suggestion..
Also.. Adding support to to detect the up/down arrows pressing in Custom Dialogs.. That was only feature what i can't made to 100% imitate the Help->Search window(ex. write there "a" .. and without changing focus to the topics list box, you can move back or forward by pressing up/down arrows)..
I see.. Somebody give some stars to that topic wink

#106737 22/01/05 02:34 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
I would absolutely love to see this implemented, this can be extremely handy for a wide range of things.

I think this should even be extended to mouse events as well, to make them work on all windows. On hotlink just doesn't cut it for channel windows since you have to actually click text for that event to trigger, and not everyone wants to switch to custom windows.

Perhaps an on mouse event would be nice.

Greets

#106738 16/02/05 09:50 PM
S
Splatted
Splatted
S
Quote:
I
The reason for this is because I am trying to make a script that will hide passwords as they are being typed by the user. Currently the only way I can do this is to have a timer and an alias check the contents of the edit box and change the characters typed. It would reduce the code by more than half and greatly improve the performance of this script if I can do this with an event.


this is probably off-topic but couldn't you use the following to mask your password? $$?* masks input text, eg

alias logon .msg nickop@austnet.org identify $$?*

(you would obviously change the command to suit the channel service of your particular network)

BTW, I agree the on Keyup/keydown would be a nice addition


Link Copied to Clipboard