StrokesPlus.net教程及脚本持续更新

统计手势次数

弹出列表显示

var popupMenuInfoEx = new PopupMenuInfoEx(sp.GetCurrentMousePoint());
var applications = sp_config.Gestures.Where(g => g.Active).OrderBy("MatchCount desc").ToArray();
for (var i = 0; i < applications.Length;i++) {
    var appActions = sp_config.Gestures.Where(x => x.Description == applications[i].Description).First().Actions;
  
popupMenuInfoEx.MenuItems.Add(new PopupMenuItem(applications[i].Description+' '+applications[i].MatchCount, applications[i].Script));

}
sp.ShowPopupMenuEx(popupMenuInfoEx);

统计脚本次数

var popupMenuInfoEx = new PopupMenuInfoEx(sp.GetCurrentMousePoint());
var applications = sp_config.Hotkeys.Where(g => g.Active).OrderBy("MatchCount desc").ToArray();
for (var i = 0; i < applications.Length;i++) {
    var appActions = sp_config.Hotkeys.Where(x => x.Description == applications[i].Description).First().Actions;
  
popupMenuInfoEx.MenuItems.Add(new PopupMenuItem(applications[i].Description+' '+applications[i].MatchCount, applications[i].Script));
}
sp.ShowPopupMenuEx(popupMenuInfoEx);