コード例 #1
0
ファイル: ShortcutProc.cs プロジェクト: hn20156066/GlobalHook
 private static void ShowForm()
 {
     if (GHManager.Launcher.FormVisible)
     {
         FormType n = GHManager.GetActiveForm();
         if (n == FormType.Launcher)
         {
             int idx = GHManager.Launcher.SelectIndex;
             if (GroupManager.CheckRange(idx - 1))
             {
                 GHManager.ItemList.KeyboardActive = true;
                 GroupManager.ShowItemList(GroupManager.Items[idx - 1]);
             }
             if (idx == 0)
             {
                 if (GHManager.MysetList.FormVisible)
                 {
                     GHManager.MysetList.FixedActive = false;
                     GHManager.MysetList.MysetList_Hide();
                 }
                 else
                 {
                     if (MysetManager.Items.Count > 0)
                     {
                         GHManager.MysetList.FixedActive = true;
                         GHManager.MysetList.MysetList_Show();
                     }
                 }
             }
         }
         else if (n == FormType.MysetList)
         {
             int idx = GHManager.MysetList.SelectIndex;
             if (0 <= idx && idx < MysetManager.Items.Count)
             {
                 GHManager.MysetList.KeyboardActive = true;
                 MysetManager.SetMysetNum(MysetManager.Items[idx]);
             }
         }
         else
         {
         }
     }
     else
     {
         GHManager.Launcher.KeyboardActive = true;
     }
 }
コード例 #2
0
ファイル: Group.cs プロジェクト: hn20156066/GlobalHook
 /// <summary>
 /// グループアイコンにカーソルを乗せた時のイベント
 /// </summary>
 private void Group_Control_Enter(object sender, EventArgs e)
 {
     // 表示されていて、既にアイテム番号が設定されていた時はすぐに変える
     if (GHManager.ItemList.ItemIndex != -1 && GHManager.ItemList.FormVisible /*GHManager.ItemList.GHFormVisible*/)
     {
         if (GroupManager.ShowItemList(this))
         {
             //icon.opened = true;
             timer.Stop();
         }
     }
     else
     {
         timer.Start();
     }
 }
コード例 #3
0
ファイル: Group.cs プロジェクト: hn20156066/GlobalHook
 /// グループアイコンに一定時間乗せた時のイベント
 /// </summary>
 private void Group_Control_Timer(object sender, EventArgs e)
 {
     timer.Stop();
     GroupManager.ShowItemList(this);
 }