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

Hotkey in HTML #19

Open
ArgtimZ opened this issue Oct 31, 2021 · 1 comment
Open

Hotkey in HTML #19

ArgtimZ opened this issue Oct 31, 2021 · 1 comment

Comments

@ArgtimZ
Copy link

ArgtimZ commented Oct 31, 2021

Is there a way to have the Hotkey Object from AHK GUI to show on Neutrons UI?

Gui, Add, Hotkey, x10 y10 w100 <--- this in HTML

@mfaizsyahmi
Copy link
Contributor

mfaizsyahmi commented Feb 23, 2022

Nah. HTML only has what it has as per standard. You have to code it yourself, or find an external lib that adds something similar (and pray it still supports IE11).

One idea is to add an ahk hotkey gui element right over where you want it to be. You can use neutron's hwnd property which is also valid for ahk's gui commands:

    Gui, % neutron.hWnd ":Add", Hotkey, x10 y10 w100

If your HTML has pages/tabs then it's up to you to figure out how to show\hide the hotkey control in concert with your html content, by adding event listeners that call the ahk object etc. You probably also have to prevent your window from resizing, and your html content from scrolling, because you surely won't be able to scroll/reflow your ahk gui alongside the HTML as easily.

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

2 participants