public static bool GetHotKey(HotKeyHelper.HotOp op, out Keys k) { k = Keys.BrowserFavorites; bool rt = false; string defv = ""; switch (op) { case HotKeyHelper.HotOp.QinKong: defv = "327755"; break; case HotKeyHelper.HotOp.ZhiSi: defv = "327757"; break; } string hotOp = PersistentParams.GetParam("HotOp" + ((int)op).ToString(), defv); if (hotOp != "" && hotOp != "171") { try { k = (Keys)Convert.ToUInt32(hotOp); rt = true; } catch (Exception e) { Log.Exception(e); } } return(rt); }
public static string GetProcessPath(string processName) { string key = Params.GetProcessPathKey(processName); return(PersistentParams.GetParam(key, "")); }