Google Chrome app file opened is not always in front, receiving focus

2

1

On Windows Vista, I'm launching files associated with a Google Chrome "Application Shortcut" app by double-clicking them. While they will always open this way, they will sometimes not receive focus -- i.e. they sit in the task bar quietly but don't actually show in front on the screen (until I click on the app in the task bar again).

Does anyone know how I can force the just-opened app to receive focus?

The app being opened actually contains a web app I can customize, so I also have access to performing JavaScript commands post-startup. For background information, here is the regedit file I originally used to create the file association. Might well be this is a Google Chrome internal issue... apps I open with other editors get their focus alright, AFAIK. Thanks!

Philipp Lenssen

Posted 2009-10-09T02:36:53.193

Reputation: 378

Answers

1

AutoHotkey:

WinWaitActive, ,Google Chrome
WinActivate

you can change the title to something closer to your app to avoid conflict with other chrome windows.

John T

Posted 2009-10-09T02:36:53.193

Reputation: 149 037

I fixed your link. :) – Sasha Chedygov – 2010-02-05T19:19:33.643

@music Thank you, I must have been in a hurry :) – John T – 2010-02-05T20:03:40.333

Thanks. Would I still be able to call Google Chrome with several parameters, which is needed? (As shown in the linked reg file) – Philipp Lenssen – 2009-10-11T09:46:44.590

As long as you specify part of the window title yes – John T – 2009-10-11T14:22:25.517