Beispiel #1
0
 public void CheckFadai()
 {
     fadai++;
     if (fadai >= GlobalParams.Fadai)
     {
         SendText("#test 发呆了~,开始启动发呆处理程序~");
         if (FadaiHandler != null)
         {
             SendText("fd");
             FadaiHandler();
         }
         fadai = 0;
     }
     if (GlobalVariable.Ticks % 200 == 0 && GlobalVariable.Ticks > 500)
     {
         _alias.SaveAlias();
         CustomVariable.SaveVariable();
         TestMessage(".......................................");
     }
     if (GlobalParams.Timer != 0)
     {
         if (GlobalVariable.Ticks % GlobalParams.Timer == 0)
         {
             SendText("timer");
         }
     }
 }
Beispiel #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     AliasProcessor.GetInstance().SaveAlias();
     CustomVariable.SaveVariable();
 }