Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a floating quick access window where you can ask questions quickly and see the responds in the main application. #10

Open
pre10der89 opened this issue May 14, 2024 · 0 comments

Comments

@pre10der89
Copy link
Owner

The Desktop App Demo at OpenAI's Spring Update showed a floating window that was opened on a keyboard command. The window looked like it popped up over the work and allowed the user to enter in a prompt. When the prompt was sent the main application appeared with the request and answer.

It's not clear what the lifetime of this popup window is. Possibly once sent it is closed automatically and if you click away from it it goes away as well.

A Windows wide keyboard hook can be registered that will give the main application a callback. This could prompt it to show a secondary window (the popup) and handle sending the prompt. We could probably make this work in windows even if the application is not running. I believe that you can register the shortcut to launch the application and then the launch settings would indicate that you need to show the popup window. Of course, it should work just the same if the application is running.
If doing all of this in one exe you'd have to suppress the main window showing until the prompt is sent from the popup. This should be doable in WinUI3.

Another option is that there is a secondary "always running" process that is hooking the keyboard shortcut. And that process launches a custom scheme that triggers the main application to start or activate. With the latest windows applications I'm not sure there is a benefit to having a separate light weight process for this. You can close the window of the main application and get it to a near idle state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant