private void ThisAddIn_Startup(object sender, System.EventArgs e) { System.Timers.Timer myTimer = new System.Timers.Timer(); myTimer.Elapsed += new ElapsedEventHandler(makeConnection); myTimer.Interval = 3000; myTimer.Enabled = true; InputDetector.startHook(); }
private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { InputDetector.endHook(); }