Here is a simple tool that Enables it when it detects Conquer and Disables the tail again once it closed.
Code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
Code:
PHP Code:
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Timers;
using System.Windows.Forms;
using Timer = System.Timers.Timer;
namespace LagFix
{
public partial class Form1 : Form
{
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern int SystemParametersInfo(uint ActionType, uint ParameterOne, uint ParameterTwo, uint ParameterThree);
private const int MouseTrailParameter = 0x005D;
private readonly Timer _CheckTimer = new Timer(5000);
private bool _RequireCleanup;
public Form1()
{
InitializeComponent();
_CheckTimer.Elapsed += CheckTimer_Elapsed;
LittleBigNotifyIcon.BalloonTipIcon = ToolTipIcon.Info;
LittleBigNotifyIcon.BalloonTipText = @"MouseLag Fix for old Co2 Clients - Double click to close";
LittleBigNotifyIcon.Text = @"MouseLag Fix for old Co2 Clients - Double click to close";
WindowState = FormWindowState.Minimized;
LittleBigNotifyIcon.Visible = true;
LittleBigNotifyIcon.ShowBalloonTip(6000);
ShowInTaskbar = false;
_CheckTimer.Start();
}
void CheckTimer_Elapsed(object Sender, ElapsedEventArgs E)
{
var ProcessList = Process.GetProcessesByName("Conquer");
if (ProcessList.Length == 0 && _RequireCleanup)
{
LittleBigNotifyIcon.ShowBalloonTip(4000, "Closed!", "Restored your moust :3", ToolTipIcon.Info);
_RequireCleanup = false;
SystemParametersInfo(MouseTrailParameter, 1, 0, 0);
}
else if (ProcessList.Length != 0 && !_RequireCleanup)
{
LittleBigNotifyIcon.ShowBalloonTip(4000, "Found!", "Fixed your mouse :P", ToolTipIcon.Info);
_RequireCleanup = true;
SystemParametersInfo(MouseTrailParameter, 2, 0, 0);
}
}
private void NotifyIcon_DoubleClick(object Sender, MouseEventArgs e)
{
LittleBigNotifyIcon.Visible = false;
SystemParametersInfo(MouseTrailParameter, 1, 0, 0);
Close();
}
}
}
[Only registered and activated users can see links. Click Here To Register...]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~