miroatme / openpandora

Automatically exported from code.google.com/p/openpandora
0 stars 0 forks source link

Global shortcuts stopped working #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Global shortcuts have stopped working unless I am focused on the
OpenPandora window.

They were working fine on 2009-05-29; today they are not.

Windows XP Pro SP3

Original issue reported on code.google.com by jemmin...@gmail.com on 1 Jun 2009 at 1:11

GoogleCodeExporter commented 9 years ago
Also the taskbar title never updates with the song title, it's stuck on 
"OpenPandora"

Original comment by jemmin...@gmail.com on 1 Jun 2009 at 1:11

GoogleCodeExporter commented 9 years ago
Menu Options which are also invokable through global shortcuts are greyed out 
and 
non functional, i.e. Play, Skip, I like it, I don't like it, Lyrics. These all 
worked last week as well.

Screenshot is attached. 

Original comment by alcho...@gmail.com on 4 Jun 2009 at 5:05

Attachments:

GoogleCodeExporter commented 9 years ago
It's working for me now, though I did two things and I don't know which fixed 
it:

1) Repaired the .NET Framework 3.5 SP1

2) Updated to OpenPandora 0.7.0.2

Original comment by jemmin...@gmail.com on 4 Jun 2009 at 5:24

GoogleCodeExporter commented 9 years ago
not working for me. Vista x64, OpenPandora 0.7.0.6

Original comment by slav....@gmail.com on 13 Sep 2009 at 4:04

GoogleCodeExporter commented 9 years ago
I just installed 0.7.0.6 for the first time, and the play/skip/like links in the
context menu do not work -- however, they are not greyed out.  Win XP 
Professional, SP2.

I have the following versions of .Net installed:

.NET CLR 1.1.4322;
.NET CLR 2.0.50727;
.NET CLR 3.0.04506.30;
.NET CLR 3.0.04506.648;
.NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729;

Original comment by cha4...@gmail.com on 30 Dec 2009 at 6:34

GoogleCodeExporter commented 9 years ago
Same problem as cha4les, except I have been running OP for over a month now 
(0.7.0.6), 
and they just stopped working all of a sudden.  Win XP Pro, SP2.

Original comment by Jason.Gi...@gmail.com on 31 Dec 2009 at 6:54

GoogleCodeExporter commented 9 years ago
I've been running open pandora for several months, and on both my office & home
machine, the global keyboard shortcuts as well as the keyboard media controls 
have
stopped working a few weeks ago, out of nowhere.

Both machines running win7 x64

Original comment by littlema...@gmail.com on 4 Jan 2010 at 3:49

GoogleCodeExporter commented 9 years ago
Ditto..

Global shortcuts, title bar player controls ( via right click ) and Media Keys 
have
stopped working.

However, Global Shortcuts and Media Keys DO still work when I interact with the 
Flash
object inside the Open Pandora window. I achieve this by clicking any blank 
part of
the Pandora Flash interface - like the white area between 'Your Profile' and 
'Create
a New Station'.

Once I do this, Global Shortcuts and Media Keys work as they should. But if I 
change
focus to another window, all functions stop working again.

The OS environment had not been changed prior to the problems I have described 
above:

XP Pro SP 3
IE 7.0.5x
Flash 10.0.42.34 
Open Pandora 0.7.0.6 

I tried reinstalling .NET Framework 3.5 SP1 and Flash 10, no luck.

From what I can tell, the main Pandora SWF ( tuner_8_9_0_0_pandora.swf ) has 
been
around since late October. But, maybe I was just running a previous version 
from my
Flash cache and it finally reloaded.

I suppose it also helps to mention that I am a Pandora One customer, perhaps we 
get a
slightly different interface that is breaking things. Anyone else here a 
Pandora One
user?

Oh and BTW - thanks to the Open Pandora team for making such a great app - it 
is way
better than the Pandora One widget. Keep up the good work!

Original comment by pas...@gmail.com on 7 Jan 2010 at 4:00

GoogleCodeExporter commented 9 years ago
Running 0.7.0.6 for a while now and neither global shortcuts nor context menu 
items 
work as of a couple days ago.

Original comment by tohl...@gmail.com on 7 Jan 2010 at 8:12

GoogleCodeExporter commented 9 years ago
This seems to be a very common issue as on all my computers global shortcuts and
media keys stopped working. Please fix!

Original comment by cnic...@gmail.com on 8 Jan 2010 at 4:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have fixed this locally, but since I am not the owner of this project I can't
change it.  Don't know what changed recently, but what I have found is that the
pandora object is sending the keystrokes to the wrong window handle.  I got it
working by sending it to the window with the class of "Internet Explorer_Server"
instead of the "MacromediaFlashPlayerActiveX" window.

Original comment by doc.dren...@gmail.com on 8 Jan 2010 at 8:01

GoogleCodeExporter commented 9 years ago
Doc.drenden, where int eh code did you make that change?

Original comment by Jason.Gi...@gmail.com on 8 Jan 2010 at 8:54

GoogleCodeExporter commented 9 years ago
In Pandora.LocateRadio()

What I found to work is setting hwndPandora to hInternetExplorerServer at the 
end of
the method.  I had to make some other changes because Pandora.cs was throwing 
Thread
concurrency exceptions.  Though I don't know if this is just because I was 
debugging
it in visual studio or not.  It isn't perfect.  It seems that after starting up 
OP I
have to focus the window and send it a keystroke manually (space is pause), 
then the
context menu starts to work.  This is fine for me because I leave the program 
open
indefinitely.

Original comment by doc.dren...@gmail.com on 8 Jan 2010 at 9:28

GoogleCodeExporter commented 9 years ago
I can confirm doc.drenden's method.  I made the same change, and they all 
started 
working, although I had to do a manual keystroke with the window in focus to 
get them 
started.

Original comment by Jason.Gi...@gmail.com on 8 Jan 2010 at 10:02

GoogleCodeExporter commented 9 years ago
can you guys post a patch? thank you.

Original comment by slav....@gmail.com on 8 Jan 2010 at 10:07

GoogleCodeExporter commented 9 years ago
Try this Jason, to see if it will work without having to focus and send a 
keystroke
first.

After you reset the hwndPandora put these commands in

User32.SendMessage(hwndPandora, WindowsMessageCode.WM_LBUTTONDOWN, 0, ((60 << 
16) |
(60 & 0xffff)));
User32.SendMessage(hwndPandora, WindowsMessageCode.WM_LBUTTONUP, 0, 0);

I know it is a hack, but it appears you just have to give the window focus, and 
I
couldn't seem to do that with window functions, so I just simulate a mouseclick 
on
the window.  Works for me, but I am not sure if it is because of this change
specifically or because of something else I changed.

Original comment by doc.dren...@gmail.com on 8 Jan 2010 at 11:40

GoogleCodeExporter commented 9 years ago
Yes, that works.  I no longer need to do a button press with the window focused 
at 
startup.  Sorry for the long delay, but I was tinkering with it at work, and 
didn't 
come in over the weekend.

Original comment by Jason.Gi...@gmail.com on 11 Jan 2010 at 2:45

GoogleCodeExporter commented 9 years ago
When this will be fixed also for us lame users without coding experience, 
please??

Original comment by OldrichJ...@googlemail.com on 19 Jan 2010 at 10:23

GoogleCodeExporter commented 9 years ago
Could we please get a packaged .exe file for those of us who don't know 
programming?
It would be appreciated!
Thanks!

Original comment by cnic...@gmail.com on 23 Jan 2010 at 1:44

GoogleCodeExporter commented 9 years ago
I would also really appreciate if one of the above posters could create a patch 
for
those of us who are less code-incined :)

Original comment by bigdean...@gmail.com on 28 Jan 2010 at 9:12

GoogleCodeExporter commented 9 years ago
I was hoping it would get officially fixed, but I guess not.  Here is my 
version of the 
modified files.  Drop these over the top of you existing installation (had to 
rebuild 
some of the DLLs).  I make no promises that these will work for anyone other 
than me, 
so if they don't, don't bother complaining to me because I won't be fixing them.

Original comment by Jason.Gi...@gmail.com on 28 Jan 2010 at 2:46

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the effort, Jason, it doesn't work for me :)

Original comment by dannyfat...@gmail.com on 28 Jan 2010 at 6:59

GoogleCodeExporter commented 9 years ago
thanks. worked for me

Original comment by slav....@gmail.com on 28 Jan 2010 at 7:14

GoogleCodeExporter commented 9 years ago
Works for me:

XP Pro SP3; .NET 3.5.30729.196; IE 6; FlashPlayer 10,0,42,34 

For the folks having problems, remember, the patched files will not work on 
their own
( even though the exe will launch and partially load ). The files for the patch 
still
require the other un-patched files in your OpenPandora install directory.

So, in an effort to avoid a 'still broken' flood, please read this before you 
post:

   1. Exit OpenPandora if it is running
   2. Back up your original OpenPandora directory!
   3. Drop Jason's 'patched' files over the top of your original installation and
REPLACE all existing files
   4. Open and test, it should work as expected now
   5. If not, try resetting the Multimedia Keyboard and Global Shortcuts settings to:
 off -> apply and then on -> save
   6. Did it work? Still no luck? Let the good folks here know a bit about your
environment: OS, .NET, IE, Flash

Thanks Doc, Jason and others for taking the time to provide us non-programmers 
with a
potential solution!

Original comment by pas...@gmail.com on 28 Jan 2010 at 8:02

GoogleCodeExporter commented 9 years ago
Thanks

It didn't work for me at first, but after I clicked inside the flash gui, like 
someone 
said earlier, it started to work.

Original comment by jotu...@gmail.com on 28 Jan 2010 at 8:41

GoogleCodeExporter commented 9 years ago
Thanks!

Mine also started to work once I clicked inside the flash gui.

Original comment by jeremy.h...@gmail.com on 28 Jan 2010 at 9:07

GoogleCodeExporter commented 9 years ago
I appreciate the help. It doesn't work for me but I know why. It is because I 
am on a
64-bit OS. The only version of Pandora that works on my x64 is 0.7.0.2 > 
anything
newer and it will start and quit very quickly.

Anyways, I am using the latest version of Flash, IE, .Net and FF 3.6 on x64 Win7
Ultimate.

Original comment by cnic...@gmail.com on 29 Jan 2010 at 1:49

GoogleCodeExporter commented 9 years ago
Works great for me (after clicking inside gui), thanks!

Using 0.7.0.6 on x64 Win7 Ultimate, with the 10.1 beta version of Flash.

Original comment by chris.si...@gmail.com on 29 Jan 2010 at 4:07

GoogleCodeExporter commented 9 years ago
It has always worked when you clicked inside the GUI. The whole point is to fix 
when
you have other windows on top.

Original comment by cnic...@gmail.com on 29 Jan 2010 at 4:10

GoogleCodeExporter commented 9 years ago
Works for me, thank you so much!

Original comment by bigdean...@gmail.com on 29 Jan 2010 at 6:16

GoogleCodeExporter commented 9 years ago
lol, sorry if I wasn't clear. I mean, the keyboard shortcuts are fully 
functional again 
after clicking in the gui, then going elsewhere. So, I click inside the gui 
after it 
starts up, then minimize it to the tray, and then use the keyboard shortcuts as 
needed.

Original comment by chris.si...@gmail.com on 29 Jan 2010 at 6:40

GoogleCodeExporter commented 9 years ago
@chris.silva21 How did you get 0.7.0.6 to work on x64 Win7 Ultimate? Did you do
anything special?

Original comment by cnic...@gmail.com on 29 Jan 2010 at 6:46

GoogleCodeExporter commented 9 years ago
Thanks a lot, Jason!

Original comment by SPYDER...@gmail.com on 29 Jan 2010 at 7:33

GoogleCodeExporter commented 9 years ago
@cnico88 I think maybe installing Flash 10.1 beta fixed it for me. I'm not 100% 
sure 
though... the last time I tried .6 was over a month ago, and I used .2 until 
the 
hotkeys broke. I've only had 10.1 beta installed for a week or 2.

So, something else could have changed that fixed it, but my best guess is the 
10.1 
beta.

Original comment by chris.si...@gmail.com on 29 Jan 2010 at 5:22

GoogleCodeExporter commented 9 years ago
@ chris.silva21 there is something about .6 that doesn't play nice with my Win 7
pc's. It worked just dandy in Vista. I've tried running it on my x64 and x86 
both
with Flash beta 10.1 with no luck.

@ Jason.Giers if you would be so kind to recompile your code using .2 
OpenPandora it
would be much appreciated.

Original comment by cnic...@gmail.com on 30 Jan 2010 at 6:06

GoogleCodeExporter commented 9 years ago
I'd like to personally thank Doc, Jason, Pascuc for their selfless help with 
this
very annoying issue. Their resolution and instructions totally helped. I'm 
running
the latest version 0.7.0.6 on Win 7 x64 and was having a real problem with the 
lack
of right-click menu usability. Their aid is greatly appreciated! Thanks again.

Original comment by spmrior...@gmail.com on 7 Apr 2010 at 6:51

GoogleCodeExporter commented 9 years ago
THANK YOU Jason!!, after months of OpenPandora being worthless (As I only use 
it 
during Gaming) I can finally have music while playing!

Original comment by Strikerb...@gmail.com on 11 Apr 2010 at 3:18

GoogleCodeExporter commented 9 years ago
Thanks a ton for the fix, it works except play/pause only pauses while I hold 
the
button down. Not a big deal, mostly only need skip anyhow.

Original comment by adam1.b...@gmail.com on 16 May 2010 at 5:18

GoogleCodeExporter commented 9 years ago
The downloaded patch works. When will it be applied to the beta code base for 
normal 
download?

Original comment by crash1...@gmail.com on 18 May 2010 at 8:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Radical. Big thanks for the patch guys. 
Installed as directed above and hotkeys are workin again.

peace,
  zOnk.oNe

Original comment by zonk...@gmail.com on 20 Aug 2010 at 5:44

GoogleCodeExporter commented 9 years ago
Patch doesn't seem to be working any more... Can anyone confirm?

Original comment by ro...@rohankapoor.com on 19 Oct 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Just found this and wanted to thank Jason for the fix.

Still need to click once inside the window, but after that they start working 
perfectly.

Original comment by mdond...@gmail.com on 8 Dec 2010 at 6:06

GoogleCodeExporter commented 9 years ago
I didn't want to bump an old thread, but since the normal install still doesn't 
work properly and someone else bumped, here it goes.  Thanks Jason/doc, works 
perfectly after the initial click in the flash section.  Also a note, i'm 
running Win7 Professional 64-bit, because I thought someone said they had a 
problem with it.

Original comment by APott...@gmail.com on 10 Dec 2010 at 8:48

GoogleCodeExporter commented 9 years ago
Worked like a charm!  THANK YOU!  This has been irritating me to no end for 
months now.  -SGT

Original comment by sgtbarit...@gmail.com on 10 Jan 2011 at 4:54

GoogleCodeExporter commented 9 years ago
exactly what I was looking for. thanks SO MUCH for the hotfix and advice, 
everyone here!

Original comment by fourlane...@gmail.com on 31 Jan 2011 at 8:54

GoogleCodeExporter commented 9 years ago
The fix worked perfectly! Thank you!

Original comment by Tim...@gmail.com on 25 Feb 2011 at 4:19

GoogleCodeExporter commented 9 years ago
Running Windows 7 Ultimate x64 and the patch works perfectly for me.Thanks to 
Jason + OpenPandora team/community

Original comment by gvoice.a...@xoxy.net on 12 Mar 2011 at 12:50

GoogleCodeExporter commented 9 years ago
For users who really only care about media keys, such as when gaming. They 
should checkout http://samuelhaddad.com/software-projects/pandora-keys/. It 
works like a charm.

Original comment by s...@samplusplus.com on 28 Jul 2011 at 3:30