Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Diagnostics;
- namespace HMQprotocol.Shared
- {
- public static class OnScreenKeyboard
- {
- private static Process process;
- /// <summary>
- /// Not really implemented.
- /// </summary>
- private static bool active
- {
- get
- {
- return false;
- }
- }
- public static void Toggle()
- {
- Start();
- }
- public static void Start()
- {
- process = new Process();
- process.StartInfo.FileName = "TabTip.exe";
- process.StartInfo.UseShellExecute = true;
- process.Start();
- }
- public static void Stop()
- {
- Process[] localByName = Process.GetProcessesByName("TabTip");
- foreach(var p in localByName)
- {
- try
- {
- p.Kill();
- }
- catch(Exception ex)
- {
- //string s = string.Format("Exception: {0}", ex.Message);
- //if (ex.InnerException != null)
- // s += string.Format("\r\nInner exception: {1}", ex.InnerException.Message);
- //System.Windows.Forms.MessageBox.Show(s);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement