Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Automatically Close RuneMate

Joined
Jun 23, 2015
Messages
2
Hello,

I'm new but am really enjoying RuneMate, so I wanted to share this extremely basic AutoIt Script that I wrote. This will allow for you to automatically close RuneMate after X amount of milleseconds (I like to do 2 hours). With a little tweaking, this could probably be setup to automatically randomize the amount of time before closing RuneMate.

1. Download AutoIt
https://www.autoitscript.com/site/autoit/downloads/

2. Install AutoIt. Run autoit-v3-setup.exe

3. Open SciTE Script Editor and paste the following code:
Code:
$p = "javaw.exe"; Name of the process for RuneMate
While True
  If ProcessExists($p) Then
    Sleep(7200000); 2 hours
    ProcessClose($p)
   EndIf
Wend

4. Save as a .au3 file and then launch your AutoIt script! It will appear as a taskbar icon if you ever wish to pause the script or exit out of it before it finishes executing.

I'm not even sure how much this will help or not, but regardless, happy botting!
 
Hello,

I've made a GUI version in C# for those who did not want to go to the trouble of taking the steps in the first post. Simply launch RuneMate, then launch Kill Manager, then enter a time in minutes and enjoy!

Screenshot:
aU0UcA5.png


Download:
https://www.mediafire.com/?qxezo7jc7cow0zj

Source:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;

namespace Kill_Manager
{
    public partial class Form1 : Form
    {
        private int check = 0;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Random rand = new Random();
            int r = rand.Next(0, 120);

            Process[] processlist = Process.GetProcesses();

            foreach(Process theprocess in processlist)
            {
                if(theprocess.ProcessName == "javaw")
                {
                    this.check += 1;
                }
            }

            txtTime.Text = r.ToString();

            if(this.check == 0)
            {
                MessageBox.Show("Unable to detect RuneMate! Make sure that RuneMate is running first, then re-launch this application.", "Can't find RuneMate");
                btnKill.Enabled = false;
            }
        }

        private void btnKill_Click(object sender, EventArgs e)
        {
            btnKill.Enabled = false;
            txtTime.Enabled = false;

            Process[] p = Process.GetProcessesByName("javaw");
            int time = int.Parse(txtTime.Text);
            time *= 60 * 1000;

            Form1.ActiveForm.WindowState = FormWindowState.Minimized;
            System.Threading.Thread.Sleep(time);
            p[0].Kill();

            Application.Exit();
        }
    }
}
 
The only thing Alpha about me is my bots
Joined
Sep 22, 2014
Messages
618
Or you could just create a batch file and type this shit:

Code:
timeout /t 7200
taskkill /f /im javaw.exe
(set to 2 hours)

Obviously the number is in seconds. Functionality is identical when executed, except you don't need the autoit botnet.
 
Joined
Jun 23, 2015
Messages
2
Or you could just create a batch file and type this shit:

Code:
timeout /t 7200
taskkill /f /im javaw.exe
(set to 2 hours)

Obviously the number is in seconds. Functionality is identical when executed, except you don't need the autoit botnet.

Sweet, either that or the C# is the better bet then. Thanks!
 
Top