Customization

This guide covers some niche, but useful, tweaks to enhance your NetLimiter application to add that little extra flair.

Remove pressing CTRL key Requirements

Add NLClientApp.Modules.dll to the Assembly Editor in dnSpy and make the following changes:

Location:

  • NLClientApp.Modules.dll
  • NLClientApp.Modules.HotkeySelector
  • HotKeySelector

SetComponents():

private void SetComponents()
{
    if (this.Key == Key.None)
    {
        this.BtnDelete.IsEnabled = false;
        return;
    }
    if (this.ModifierKeys.ToString() == "None")
    {
        this.TxtBlock.Text = this.Key.ToString();
    }
    else
    {
        this.TxtBlock.Text = this.ModifierKeys.ToString() + "+" + this.Key.ToString();
    }
    this.BtnDelete.IsEnabled = true;
}

Add NLClientApp.Core.dll to the Assembly Editor in dnSpy and make the following changes:

Location:

  • NLClientApp.Core.dll
  • NLClientApp.Core
  • HotKey

ToString():

public override string ToString()
{
    if (this.ModifierKeys.ToString() == "None")
    {
        return this.Key.ToString();
    }
    return this.ModifierKeys.ToString() + "+" + this.Key.ToString();
}

Custom Icons

Required Tools:

  • Resource Hacker (A free resource extractor and compiler)
  • dnSpy (an advanced .NET debugger and assembly editor)

Steps:

  1. Find an image and prepare it for resource hacker
  2. Visit Redketchup.io to convert an image to an icon file
  3. Open dnSpy and place the following files into the Assembly Explorer:
    • Your Limiter.exe
    • NLClientApp.Core
  4. Search and replace the resource files in:
    • nl_icon {NLClientApp.Core.Properties.Resources.resources}
    • nl_icon.ico {NLClientApp.resources}
  5. Compile and save your changes in dnSpy
  6. Using Resource Hacker:
    • Select file & open buttons then select your limiter.exe
    • Click Action, then Replace Icon…
    • Find and Select your .ico file
    • Click Replace
    • Click on the Floppy Disk (save) Button
  7. Open task manager and restart your Windows Explorer for the changes to take effect