mIRC Home    About    Download    Register    News    Help

Print Thread
#14020 03/03/03 09:20 PM
Joined: Mar 2003
Posts: 3
M
mooman Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
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.

#14021 04/03/03 03:50 AM
Joined: Dec 2002
Posts: 17
N
Pikka bird
Offline
Pikka bird
N
Joined: Dec 2002
Posts: 17
that's why we have scripting.
put this in your remotes:

Code:
on *:input:*: {
  var %x = 1
  while ($scon(%x)) {
    if ($scon(%x).away) { scon %x away }
    inc %x
  }
}


enjoy.

#14022 04/03/03 04:33 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
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.

#14023 04/03/03 12:35 PM
Joined: Mar 2003
Posts: 3
M
mooman Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Mar 2003
Posts: 3
What does that code above actully do?

#14024 04/03/03 07:21 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
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
#14025 04/03/03 08:58 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
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.

#14026 04/03/03 09:39 PM
Joined: Mar 2003
Posts: 3
M
mooman Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
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..

#14027 05/03/03 07:02 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
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.

#14028 07/03/03 05:17 AM
Joined: Feb 2003
Posts: 32
P
Ameglian cow
Offline
Ameglian cow
P
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.

#14029 07/03/03 11:04 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
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. smile

#14030 08/03/03 03:51 AM
Joined: Dec 2002
Posts: 3,127
P
Hoopy frood
Offline
Hoopy frood
P
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
#14031 08/03/03 04:26 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
umm, that's what I said laugh

In fact even if you type "/msg <#channel/nick> text" it doesn't set you back
By that I mean that if you type, say "/msg #mirc blah" in the #mirc channel window, it still won't trigger the cancel.


Link Copied to Clipboard