public static string Search(string msg)
        {
            string googleprompt = "https://www.google.com.eg/search?rct=j&q=";

            WindowsManager.LaunchProcess(googleprompt + msg);
            return("Search Complete");
        }
        public static string PlaySong()
        {
            string song = GetRandom(Reference.mySongs);

            WindowsManager.LaunchProcess(Reference.musicFile + song + ".mp3");
            MusicManager.getHandle();

            return("Playing: " + song);
        }
 public static string Opener(string app)
 {
     string[] w = new string[Reference.appProcesses.Length];
     for (int i = 0; i < Reference.appProcesses.Length; i++)
     {
         w = Reference.appProcesses[i].Split('|');
         if (w[0] == app)
         {
             break;
         }
     }
     WindowsManager.LaunchProcess(w[1]);
     return(GetRandom(Reference.opener));
 }
Exemple #4
0
        public static string ReaderMode()
        {
            string path = @"C:\Users\Amr\Desktop\SpeechRecognitionWF\SpeechRecognitionWF\SpeechRecognitionWF\reader.txt";

            SendKeys.SendWait("^(c)");
            WindowsManager.EnsureFocus("notepad", WindowsManager.LaunchProcess(path));
            SendKeys.SendWait("^(a)");
            SendKeys.SendWait("^(v)");
            SendKeys.SendWait("^(s)");
            SendKeys.SendWait("%{F4}");
            return
                (File.ReadAllText
                     (@"C:\Users\Amr\Desktop\SpeechRecognitionWF\SpeechRecognitionWF\SpeechRecognitionWF\reader.txt"));
        }
 public static string PlayList()
 {
     WindowsManager.LaunchProcess(Reference.playlist);
     MusicManager.getHandle();
     return("Starting Playlist");
 }