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

hotkeys to quickly toggle the overlay? #444

Closed
megablue opened this issue Dec 13, 2014 · 15 comments
Closed

hotkeys to quickly toggle the overlay? #444

megablue opened this issue Dec 13, 2014 · 15 comments

Comments

@megablue
Copy link

is it possible to implement hotkeys to quickly toggle the overlay? it will be great

@Eldenroot
Copy link

Not bad idea - for example F2-F12 keys - turn on/off the feature

@azeier
Copy link
Member

azeier commented Dec 20, 2014

Is there some elegant way of doing this?

@surasshu
Copy link

just one key to toggle all on/off would be really great. although i don't know what key would make sense. maybe the ~ button, like it's a console?

@azeier
Copy link
Member

azeier commented Dec 21, 2014

I meant code-wise :). Key(s) would be freely settable.

@surasshu
Copy link

hm, i see! foobar2000 has global hotkeys, so it must be possible, but i'm not a coder so i can't really help ;) merry christmas btw!! thanks for a fantastic tool :D

@Elitesparkle
Copy link

For example, you could toggle the "Hide (completely)" check box that's in Options > General with a key event. Pressing the chosen key, the check box will change status (if checked, uncheck it; if unchecked, check it).

@NightKev
Copy link
Member

+1 on this, maybe you know of a good way to do it now?

@quark-zju
Copy link
Contributor

This may help: https://github.com/thomaslevesque/NHotkey

@azeier
Copy link
Member

azeier commented Oct 20, 2015

Looking into it a bit, that might not even be necessary. This seems to work pretty well: http://stackoverflow.com/questions/2450373/set-global-hotkeys-using-c-sharp

Not sure why I haven't found that before.

@azeier
Copy link
Member

azeier commented Oct 20, 2015

What kind of hotkey functionality would you guys like to see?

Some ideas:

  • Show/Hide overlay
  • No deck mode on/off
  • Export Deck
  • Import from web/arena/constructed
  • Show HDT
  • Show stats
  • Close HDT (Restart HDT?)
  • Start Hearthstone?

@NightKev
Copy link
Member

"Clear last game/reset decks" would be nice.

@andburn
Copy link
Member

andburn commented Oct 20, 2015

I was thinking this would be more useful for overlay stuff, rather than the actual app itself. I like these:

  • Show/Hide overlay
  • Show/Hide damage
  • Show/Hide timers
  • No deck mode on/off
  • Show HDT
    • probably don't need the import/export etc. with this, just do them normally?
  • Screenshot with overlay (a new feature really 😄)

I wonder is there a nice way to implement this so things could be Hot-Keyable and allow a menu where keys could be assigned? Probably not worth the effort.

@quark-zju
Copy link
Contributor

The RegisterHotKey is not hard to find. I thought that elegant means to avoid Win32 API directly :)

For operations inside HDT main window, I think the old-school menu item accelerators may be the more standard behavior. For example, Alt+E activates "Export" and then H = "Export to Hearthstone". Then we only need a global hotkey to bring HDT to front to use these key combinations.

Global (or, limited to "when HS is focused") hotkeys are something the user want to use in game. Toggling overlay elements is a use case. I personally want an "edit turn note" feature, press one key and then write down my mistakes on that turn.

azeier pushed a commit that referenced this issue Oct 20, 2015
@azeier azeier added this to the v0.11.3 milestone Oct 20, 2015
@culinko
Copy link

culinko commented Oct 20, 2015

Toggle show/hide: card marks, secrets panel. So far only these two came to mind.

@azeier
Copy link
Member

azeier commented Oct 20, 2015

Here's what's currently implemented:
screenshot 2015-10-20 20 16 23

Would attack, timers and secrets really be things you need to change often enough to require a hotkey? Secrets are hidden anyway if there is no secret active. I can somewhat see cardmarks.

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

No branches or pull requests

9 participants