mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#23059 07/05/03 09:41 PM
M
MTech
MTech
M
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...

#23060 07/05/03 10:10 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
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>

#23061 07/05/03 11:38 PM
M
MTech
MTech
M
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?

#23062 08/05/03 12:52 AM
M
MTech
MTech
M
also can i hide this ctcp, it kinof defaates the purpose, if they recive this ctcp they know that the person is typing...

#23063 08/05/03 02:34 AM
C
codemastr
codemastr
C
(read what he said):

; hide the responce
/haltdef

#23064 08/05/03 03:18 AM
Joined: Dec 2002
Posts: 416
O
Fjord artisan
Offline
Fjord artisan
O
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

#23065 08/05/03 03:49 AM
M
MTech
MTech
M
i tried haltdef and .ctcp both just blurted out the ctcp anyway

#23066 08/05/03 07:37 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
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.

#23067 08/05/03 12:34 PM
M
MTech
MTech
M
no, see the dialog is just a typing status im going to type in the query window

#23068 08/05/03 03:53 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
$$1 will always be "TYPING", "on" or "off" would be in $$2 wink

#23069 08/05/03 06:00 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
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.

#23070 08/05/03 06:13 PM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
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

#23071 08/05/03 06:13 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
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.

#23072 08/05/03 06:17 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
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

#23073 08/05/03 07:09 PM
M
MTech
MTech
M
i like that king, maybe i could give you credit and put that in my script?

#23074 09/05/03 09:02 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
That's pretty sweet...is there a release date? LOL

#23075 09/05/03 09:03 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
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? grin

#23076 09/05/03 09:17 AM
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
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?

#23077 09/05/03 12:54 PM
P
pheonix
pheonix
P
nice grin

#23078 09/05/03 05:29 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
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.

Page 1 of 2 1 2

Link Copied to Clipboard