mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 33
H
harl91 Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Feb 2007
Posts: 33
I am making a game bot. Games are spawned from a .exe file that runs like you would a program run/cmd. The window is left open until the game is finished, or I type quit into that window. The thing is, i dont start the games, other players do. If I wish to kill the open game, i can simply type "quit" into that window. But what if the player that started that game, wanted to end it? Is there a way for mIRC to remolty type "quit" into that window?

Last edited by harl91; 24/04/07 01:47 AM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
When you type Quit in the window, are you using the client that's running the game, or a different client (even if it's on the same computer). If you're using a different client, then what you want is already incorporated into the game, otherwise you might try adding this to the client that's running the game.
Code:
on *:text:quit:*:{
  say $active $1
}



Joined: Feb 2007
Posts: 33
H
harl91 Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Feb 2007
Posts: 33
yes it would be a different client, and yes, there would be an on text command. What I am looking for is when someone says "kill game" mIRC writes quit INTO A DIFFERENT APPLICATION that is open. Any ideas?


Link Copied to Clipboard