Top

$_lock()


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Aug 30, 2007
Last Updated  Aug 31, 2007
Tags  decode  lock  mirc  options 

Introduction

About:
We all know that mIRC comes with the default option of $decode() identifier locked in order to prevent certain IRC worms spreading, so far, it works.
There are other mIRC options in the lock section in the mIRC options dialog; these options are COM, Decode, DLL and Run. To control these options, you need to open the mIRC options dialog -> Other -> Lock. Could be boring, right? This snippet uses COM objects to manipulate the lock options. Through a simple command line, you can enable, disable or view the current state of mIRC lockable items COM, Decode, DLL and Run.

Installation:
Simply copy the snippet's code (consists of 2 aliases) into your mIRC remote section like this:
Method #1:
ALT + R -> Remote -> File -> New -> (Paste the code) -> File -> Save -> (Then close the mIRC scripts' editor, or just close it hitting OK without doing a file -> save).
Method #2:
You simply put the snippet's file i.e: mlock.mrc in your mIRC root directory and type /load –rs mlock.mrc


Syntax:
The syntax is pretty easy, rather pretty basic.
It is: $_lock(Com|Decode|Dll|Run).property

Now, let me explain the syntax and give examples.
Let's say that we will now deal with Decode.
Our syntax could be one of the following:
1. //noop $_lock(decode).state
This will show the current state of decode whether enabled or disabled (it counts on mIRC's $lock() identifier).
2. //noop $_lock(decode).e
This one will enable Decode, means unlock it. If already enabled, you will be notified
3. //noop $_lock(decode).enable
This one will enable Decode (Same as e), means unlock it. If already enabled, you will be notified
4. //noop $_lock(decode).d
This one will disable Decode, means unlock it. If already disabled, you will be notified
5. //noop $_lock(decode).disable
This one will disable Decode (Same as d), means unlock it. If already disabled, you will be notified
6. //noop $_lock(decode).o
This one will open the mIRC options dialog and choose Decode in the lock options so you decide whether to lock or unlock.
7. //noop $_lock(decode).option
This one will open the mIRC options dialog and choose Decode in the lock options so you decide whether to lock or unlock (Same as o).
8. //noop $_lock(decode)
This one will detect the current state and reverse it. If enabled, it will disable – and vice versa.


There is an additional alias/command.
/bringopt (COM, Decode, DLL, Run)

Grab the Code

Comments

  (1)  RSS
Tancer
Comments: 3
 
mIRC Snippet:  $_lock()
Posted on Aug 31, 2007 6:34 am
Fixed minor bug when specifying no property. And added the /bringopt alias.

Please Register or Login to start posting comments.
Bottom