[go: up one dir, main page]

Menu

[ab4396]: / App / App.cs  Maximize  Restore  History

Download this file

20 lines (17 with data), 713 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
using System.IO.Compression;
using System.Reflection;
[assembly: AssemblyVersion("2.9.0.0")]
[assembly: AssemblyTitle("MouseClickTool")]
[assembly: AssemblyProduct("MouseClickTool")]
[assembly: AssemblyCopyright("Copyright (C) 2025 lalaki.cn")]
// main.
Type t;
using (var f = File.Create(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())))
{
var r = Assembly.GetEntryAssembly();
new GZipStream(r.GetManifestResourceStream(r.GetManifestResourceNames()[0]), CompressionMode.Decompress).CopyToAsync(f).Wait();
f.Position = 0L;
t = Assembly.Load(new BinaryReader(f).ReadBytes((int)f.Length)).GetExportedTypes()[0];
f.SetLength(0L);
}
Activator.CreateInstance(t);