public void ExecuteBang(Rainmeter.Settings Plugin, UInt32 id, string sArguments) { bool bAlreadyRunning = (bool)Plugin.Instances[id].GetTempValue("__RMT_EB_AlreadyRunning", false); if (!bAlreadyRunning) { ExecuteBangThread thread_details = new ExecuteBangThread(Plugin.Instances[id], sArguments); Thread thread = new Thread(new ThreadStart(thread_details.Go)); thread.Start(); } return; }
public string GetString(Rainmeter.Settings Plugin, UInt32 id) { bool bAlreadyRunning = (bool)Plugin.Instances[id].GetTempValue("__RMT_GS_AlreadyRunning", false); if (!bAlreadyRunning) { GetStringThread thread_details = new GetStringThread(Plugin.Instances[id]); Thread thread = new Thread(new ThreadStart(thread_details.Go)); thread.Start(); } try { return((string)Plugin.Instances[id].GetTempValue("__RMT_GS_LastValue", string.Empty)); } catch { return(string.Empty); } }
public double Update2(Rainmeter.Settings Plugin, UInt32 id) { bool bAlreadyRunning = (bool)Plugin.Instances[id].GetTempValue("__RMT_U2_AlreadyRunning", false); if (!bAlreadyRunning) { Update2Thread thread_details = new Update2Thread(Plugin.Instances[id]); Thread thread = new Thread(new ThreadStart(thread_details.Go)); thread.Start(); } try { return((double)Plugin.Instances[id].GetTempValue("__RMT_U2_LastValue", 0.0)); } catch { return(0.0); } }