mIRC Home    About    Download    Register    News    Help

Print Thread
#163309 28/10/06 04:49 PM
L
learn3r
learn3r
L
on *:input:*: {
msg $active $1-
halt
}

what i want is to halt on status or not connected to server
and whan i type / it will return or will not work so i can type /ns identify nick pw or /cs /j etc.

#163310 28/10/06 04:59 PM
Joined: Mar 2003
Posts: 611
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 611
on *:input:*: {
if ( $server ) && ( $left($1-,1) != / ) {
msg $active $1-
else {
halt
}
}


billythekid
#163311 28/10/06 05:33 PM
L
learn3r
learn3r
L
gives me two msgs

#163312 28/10/06 07:29 PM
L
learn3r
learn3r
L
on *:input:*: {
if ( $server ) && ( $left($1-,1) != / ) {
msg $active $1- | halt
else {
halt
}
}


this one works... forgot to put halt

#163313 28/10/06 07:46 PM
Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
Code:
on *:input:*: {
  if ($left($1,1) != $readini($mircini,text,commandchar))  msg $active $1- 
  halt
}

You'd want the error messages if your disconnected to let you know you are. You also had a bracket mismatch.

#163314 28/10/06 11:58 PM
L
learn3r
learn3r
L
on *:input:*: {
if ( $server ) && ( $left($1-,1) != / ) {
msg $active $1- | halt
else {
halt
}
}
}

--- there you goes
im asking for a code that wont work when im not connected
this works fine though thanks...

How to put an echo when ur not connected or on the status window

#163315 29/10/06 12:41 AM
Joined: Mar 2003
Posts: 611
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 611
on *:input:*: {
if ( $server ) && ( $left($1-,1) != / ) {
msg $active $1-
halt
}
elseif ( !$server ) {
echo You are not connected!!
halt
}
else {
if ( $active == Status Window ) {
echo -a This is the status window!
halt
}
}
}

Last edited by billythekid; 29/10/06 12:43 AM.

billythekid
#163316 29/10/06 03:01 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Alternative suggestion :
Code:
 on ^*:input:*: {
if ( $server ) && ( $left($1-,1) != / ) {
msg $active $1-
haltdef
}
else echo -a $iif(!$server,You are not connected!!,$iif($active == Status Window,This is the status window!))
}  

#163317 29/10/06 03:32 AM
L
learn3r
learn3r
L
when im not connected
---
You are not connected!!
-
* You are not on a channel
-
---

When im connected and types /join #channel

This is the status window!

but i type / hope it just says im on status if i type asdfghjkl not /


Link Copied to Clipboard