📄 callmehelper.cs
字号:
namespace Imps.Client.Pc
{
using Imps.Client.Utils;
using System;
using System.Text;
public static class CallMeHelper
{
public const string CallMeMessage = "FetionCallMeMessage";
public const string CallMeShareMemory = "CallMeShareMemory";
public const int CallMeShareMemorySize = 0x400;
public const int FetionProcessFlag = 0x65;
public static int WM_FETION_CALLME;
public static bool TrySendCallMeMessage(string[] args, IntPtr mainFormHandle)
{
if (args.Length >= 1)
{
foreach (string text in args)
{
if (CallMe.ParseCallMeParams(text) == 0)
{
try
{
ShareMemory memory = ShareMemory.Create("CallMeShareMemory", 0x400, false);
if (memory != null)
{
using (ShareMemory memory2 = memory)
{
byte[] buf = Encoding.Default.GetBytes(text);
memory.Write(buf, 0, buf.Length);
InnerWin32.SendMessage((IntPtr) 0xffff, WM_FETION_CALLME, 0x65, mainFormHandle.ToInt32());
}
}
return true;
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
}
}
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -