windows vista - Google Chrome app file opened is not always in front, receiving focus
2013-08
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!
WinWaitActive, ,Google Chrome
WinActivate
you can change the title to something closer to your app to avoid conflict with other chrome windows.
In Google Chrome's minimalist brilliance, they seem to have forgotten a menu item to launch a dialog box to open a local file.
How to get around this?
I don't want to drag local files onto the Chrome window (which works) or type file:// in the address bar (also works). I want my dialog box
On OS X, you can choose "Open File" from the File menu, or use the ⌘ + O keyboard shortcut.
For Windows and Linux, you can use ctrl + O. This does not seem to be referenced anywhere in the application, so you can feel special about using it.
According to the Chrome Help Pages there are three ways to do this:
- Press Ctrl+O on your keyboard and browse for the file on your computer.
- Drag the file into Google Chrome from your computer desktop or folder. Your cursor displays a little '+' sign if the action is successful.
- Type the location, also known as the path, of the file in the address bar, then press Enter.
Hit Ctrl-o and a magical, undocumented dialog box will appear.