2

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!

1 Answer 1

1

AutoHotkey:

WinWaitActive, ,Google Chrome
WinActivate

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

4
  • Thanks. Would I still be able to call Google Chrome with several parameters, which is needed? (As shown in the linked reg file) Commented Oct 11, 2009 at 9:46
  • As long as you specify part of the window title yes
    – user1931
    Commented Oct 11, 2009 at 14:22
  • I fixed your link. :) Commented Feb 5, 2010 at 19:19
  • @music Thank you, I must have been in a hurry :)
    – user1931
    Commented Feb 5, 2010 at 20:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .