Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

[Internet Relay Chat] Advanced Mirc Scripting Part 2


[Reply] [View by Thread] [Help]
[Back To Article Discussion Forum]

Posted by Author k0rn On 2007-04-29 10:02:29




View and vote on the article here: Advanced Mirc Scripting Part 2


Advanced Mirc Scripting Part 2

Category
Internet Relay Chat
Summary
Body
Advanced Mirc Scripting Tutorial (Part 2)

by k0rn

<hr />


This tutorial is the second of many advanced Mirc scripting tutorials. If you are reading this tutorial you should have a basic knowledge of Mirc Scripting. I will not be telling you how to save or click ok or how to open the script editor. In this tutorial you will learn how to make a pop-up that will run differnt programs when you click on that specific program, such as notepad. Then you will be able to add other programs to it as you want them. A lot of this code I will be giving you comes off my personal script I am writing. I urge you to be creative and come up with new and interesting ways of writing your scripts. But the best way to learn is from someone elses code. So lets get started.



Pop-up:



.-- Programs --




(The . sets a sub-menu The -- Programs -- is what you will see when you right click to view your pop-ups.)




..-- Notepad --:/run notepad.exe | /splay ok.wav




(This time the .. will create a sub-menu under the .-- Programs -- menu. The : means that all items following it are commands to be run seperately from the others. Without it when you right click on your pop-ups it will say



-- Notepad --:/run notepad.exe | /splay ok.wav instead of -- Notepad --




The next thing you should notice is the /run. This tells Mirc that you want to run the program that you specify. Notepad.exe is the executable of notepad. The | is so that Mirc understands that everything before it and after it is a seprate command.





/splay allows you to play a sound file after the first command is executed. After the /splay is the ok.wav that is the sound file to be played. You should put them in the Sound folder in the Mirc Directory.




Note: some times it isn't as easy as simply entrying notepad.exe you might have to find the exact path to the program you want to run.




That should give you a basic idea of what you need to write a Mirc script that will allow you to run different programs. All you have to do to run different programs is another:


..-- Whaterver --:/run whatever.exe | /splay whatever.wav



Note: You do not have to play an audio file if you dont want to. Its just something I added into this tutorial to kill two birds with one stone.


Please feal free to give me any feedback and any ideas on what you thaught of this tutorial. And any ideas on what you might want from my next Mirc scripting tutorial. You can find me on irc.cyberarmy.com #cyberarmy


<hr />
Written by k0rn (19 December 2005)

k0rn is a member of Knowledge-Bank Writing and Collecting



Edited by Asdf


This article was imported from the CyberArmy University site. (original author: k0rn)


There are no replies to this post yet.



Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.00498 seconds


About Us | Privacy Policy | Mission Statement | Help