Esempio n. 1
0
        private void JangoDesktopLoad(object sender, EventArgs e)
        {
            if (!Settings.Default.StartMinimized)
            {
                ToggleJangoDesktop();
            }
            if (Settings.Default.AutoLogin)
            {
                //AutoLogin is turned on
                string decryptedUsername = AESEncryption.Decrypt(Settings.Default.JangoUsername, Environment.MachineName + Environment.ProcessorCount, Environment.UserName, "SHA1", Environment.ProcessorCount, "16CHARSLONG12345", 256);
                string decryptedPassword = AESEncryption.Decrypt(Settings.Default.JangoPassword, Environment.MachineName + Environment.ProcessorCount, Environment.UserName, "SHA1", Environment.ProcessorCount, "16CHARSLONG12345", 256);
                JangoBrowser.Navigate("http://www.jango.com/splogin?user[email]=" + decryptedUsername + "&user[password]=" + decryptedPassword);
            }
            else
            {
                JangoBrowser.Navigate("http://www.jango.com");
            }

            //Start Keyboard Hook
            try
            {
                _actHook          = new UserActivityHook();
                _actHook.KeyDown += new KeyEventHandler(MyKeyDown);
                _actHook.Start();
            }
            catch (Exception)
            {
                MessageBox.Show("Error setting up media keys. They will not work. Try restarting Jango Desktop");
            }

            _starting = false;
        }
Esempio n. 2
0
 private void RateSongDown()
 {
     JangoBrowser.Navigate("javascript:void(document.getElementsByName('content')[0].contentWindow.document.getElementById('player_ban').click());");
     if (Settings.Default.DisplaySongRating)
     {
         ShowBalloonTip("Hate", "=(");
     }
     _ratingSent = true;
 }
Esempio n. 3
0
 private void PlayPause()
 {
     JangoBrowser.Navigate("javascript:void(_jp.ctrls.onPlayPause())");
 }
Esempio n. 4
0
        //Action Calls

        private void NextTrack()
        {
            JangoBrowser.Navigate("javascript:void(_jp.ctrls.onSkip());");
        }
Esempio n. 5
0
 private void SubmitRate()
 {
     JangoBrowser.Navigate("javascript:void(document.getElementsByName('content')[0].contentWindow.document.getElementsByName('commit')[0].click());");
 }