|
MTech
|
MTech
|
hello is there a way to send a signal or somthing to a dialog from the other pm person, like a typing status,
xxx is typing a message
assuming both people are using the same script...
|
|
|
|
Joined: Jan 2003
Posts: 2,973
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,973 |
ctcp ^*:TYPING:*: { if ($$1 == on) { /did -ra <dname> <id> User is typing } else { /did -r <dname> <id> } ; hide the responce /haltdef }
/ctcp <nick > TYPING <on|off>
|
|
|
|
MTech
|
MTech
|
how do i make this work now? i gotta type in /ctcp <nick > TYPING on or /ctcp <nick > TYPING off?
isnt there a way to see if i or they are typing?
|
|
|
|
MTech
|
MTech
|
also can i hide this ctcp, it kinof defaates the purpose, if they recive this ctcp they know that the person is typing...
|
|
|
|
codemastr
|
codemastr
|
(read what he said):
; hide the responce /haltdef
|
|
|
|
Joined: Dec 2002
Posts: 416
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 416 |
if you are also looking for a ctcp replay you can always use .ctcp to hide the responce msg from the end user
|
|
|
|
MTech
|
MTech
|
i tried haltdef and .ctcp both just blurted out the ctcp anyway
|
|
|
|
Joined: Jan 2003
Posts: 2,973
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,973 |
Negative cheif. Then you have a ctcp *:*:*: { } event elsewhere that is interrupting it.
Also about what you said:
how do i make this work now? i gotta type in /ctcp <nick > TYPING on or /ctcp <nick > TYPING off?
You said its a dialog. So basically, you would do...
on 1:DIALOG:<dname>:EDIT:<editbox_id>: { if ($did(<editbox_id>) == $null) && (%typing == 1) { .ctcp <nick> TYPING off /set %typing 0 } else { if (%typing == 0) { .ctcp <nick> TYPING on /set %typing 1 } } } }
the %typing var is just so it doesn't send the command of typing or not typing over and over when the status hasn't changed. I.E. If you type 1 letter, or 20 letters, the ctcp TYPING would still be send apon each letter enetered. Thios way, it on;y catches it on the first sign of change.
|
|
|
|
MTech
|
MTech
|
no, see the dialog is just a typing status im going to type in the query window
|
|
|
|
Joined: Dec 2002
Posts: 698
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 698 |
$$1 will always be "TYPING", "on" or "off" would be in $$2
|
|
|
|
Joined: Jan 2003
Posts: 2,973
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,973 |
Thank you Nimue. You're absolutly right. I missed a number when I typed it. Unfortnuatly I never learned the correct way to type, and are forced to look down away from my work >:\ I might have caught that had I actually been looking. O well, I'm trying to do better...
But about the typing sttaus, I don't see a possible way of letting them know you are typing unless you completly do it in A) A Dialog or B) A Custom window. There is no exact way, that I am aware of, to detect the user typing in the box. I suppose you could have a timer, that is constantly checking the editbox text to see whethere there is and isn't text, but that seems tiresome. Besides, why not create your own Query window, as I have. More fun, and many more possibilites.
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
it would be excellant to have an on keypress event just for something like this
ex on *:keypress:?:*: { .ctcp $active TYPING on }
or something to that effect
that would be i think a very useful addition
aside from creating all your querys in a custom window ..... i dont think u can do what your trying to do here unless u pass it thru an on input .... but by then the user would already know ur typing the message
|
|
|
|
Joined: Dec 2002
Posts: 698
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 698 |
Yeah you'd need to do a custom @window|dialog, or perhaps a dll (I don't know of one) that might catch keystrokes in normal windows.
|
|
|
|
Joined: Jan 2003
Posts: 2,973
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,973 |
I had began to fool with the idea, and came up with something that would look very interesting... I just might have to take this a step further... >:D
|
|
|
|
MTech
|
MTech
|
i like that king, maybe i could give you credit and put that in my script?
|
|
|
|
Joined: Dec 2002
Posts: 1,214
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,214 |
That's pretty sweet...is there a release date? LOL
|
|
|
|
Joined: Jan 2003
Posts: 2,973
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,973 |
You're in luck. The release dat is right around the time you...yes...the time you script it. Isn't that convenient?
|
|
|
|
Joined: Dec 2002
Posts: 1,214
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,214 |
Yeah right...so you are looking at a date of um lets see... *Checks the planner* um hows the end of 2020 sound?
|
|
|
|
pheonix
|
pheonix
|
nice
|
|
|
|
Joined: Jan 2003
Posts: 2,973
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,973 |
I was thinking more 2022, but if that is whats on your planner, can't argue with a written date.
|
|
|
|
|