mIRC Home    About    Download    Register    News    Help

Print Thread
#195505 26/02/08 02:59 PM
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Greetings

I would like to close the script editor via script, is there anyway of doing this without a dll?

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Trying to keep someone from editing your script? Don't release it. The answer is no, there's no command to close the editor.

Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
1: bad guess, i am not trying to stop someone editing a script
2: i know there is no command for it, i am asking for help with making one.

Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Maybe not a command.

But by typing something to close the editor, then yes.

Code:
closeremote {
  openremote | var %temp = $+(sendkeys,$ticks) | .comopen %temp WScript.Shell | .comclose %temp $com(%temp, SendKeys, 3, *bstr, % {down 5}^~) 
}

/openremote { var %temp = $+(sendkeys,$ticks) | .comopen %temp WScript.Shell | .comclose %temp $com(%temp, SendKeys, 3, *bstr, % $+ r) }


You can press Alt R, then type /closeremote when the remotes are already open. And it still closed.

Tested and confirmed for both.

-Neal.

Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
thank you. works very well.


Link Copied to Clipboard