|
|
Joined: Mar 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Mar 2003
Posts: 3 |
mIRC's own "Cancel away on keypress" is only for one network! Its driving me crazy.. make a function for multiply networks! Thanks.
|
|
|
|
Joined: Dec 2002
Posts: 17
Pikka bird
|
Pikka bird
Joined: Dec 2002
Posts: 17 |
that's why we have scripting. put this in your remotes:
on *:input:*: {
var %x = 1
while ($scon(%x)) {
if ($scon(%x).away) { scon %x away }
inc %x
}
}
enjoy.
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
Or shorter, /scon -at1 if ($away) away.
I think this post should be posted in the Bugs Report forum, because it's probably not a feature. This doesn't make much different though as same people read these board.
|
|
|
|
Joined: Mar 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Mar 2003
Posts: 3 |
What does that code above actully do?
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
The only problem with the on INPUT solution is that it does not Cancel away "on keypress" unless that key happens to be the Enter key (with other text in an editbox).
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
On *:input:*: scon -at1 if ($away) away
This code should cancel away mode on any network (press Alt+R and paste it there).
You're right Hammer, currently scripts can't respond to keypress on regular windows, though personally I don't see much difference between keypress and input.
|
|
|
|
Joined: Mar 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Mar 2003
Posts: 3 |
You think this is a bug in mirc? Lets hope Khaled add multiply connection support for this feature in the next verison of mIRC..
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
I suppose (ugly hack) you could open an @away window that simply says "currently marked as away" and have an ON KEYDOWN that /away's and closes @away, but as I said, sorta ugly.
|
|
|
|
Joined: Feb 2003
Posts: 32
Ameglian cow
|
Ameglian cow
Joined: Feb 2003
Posts: 32 |
another solution would be to execute the same code using the RAW event for "you are no longer away" (311 i believe). this would cause you to set "back" on the first network and then when you recieve confirmation set you "back" on all the others.
of course, this would set you back on all networks every time you set back, not just when you press a key. although, if you like using the keypress feature this probably doesnt make much difference.
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
"Cancel away on keypress" doesn't work "on keypress" either, only when a msg is typed in a channel or query window (and sent). In fact even if you type "/msg <#channel/nick> text" it doesn't set you back.
|
|
|
|
Joined: Dec 2002
Posts: 3,127
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,127 |
From the help file: Cancel away on keypress If you set yourself as away (using /away <message>) then selecting this option cancels the away option automatically if you type a message to a channel or a query/chat window.
(altho no, if you just type /msg nick blahblah, then it wont cancel the away, since that sends a msg without opening a query window, and you have to type IN a window)
ParaBrat @#mIRCAide DALnet
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
umm, that's what I said In fact even if you type "/msg <#channel/nick> text" it doesn't set you backBy that I mean that if you type, say "/msg #mirc blah" in the #mirc channel window, it still won't trigger the cancel.
|
|
|
|
|
|