I propose making the AutoHotkey Help window to be always opened in a maximized form, because it does not remember being opened maximized the previous time it was opened
[And this viewtopic.php?f=76&t=113468#p528691 although does alleviate this annoying issues, is nevertheless merely a workaround bearing implications]
Make AutoHotkey Help window open always maximized and / or remember its last state
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Make AutoHotkey Help window open always maximized and / or remember its last state
Last edited by A Keymaker on 09 Jul 2023, 05:02, edited 1 time in total.
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
Not that I expect this to get any serious consideration, but I would absolutely hate this. I can’t think of any serious programs that do this or would consider doing this.A Keymaker wrote: I propose making the AutoHotkey Help window to be always opened in a maximized form
Open it in a non-maximized state that is sized to fill your monitor, and it will remember that.
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
This is not what the Development subforum is for.
WHY does AHK Help Open Maximized? - AutoHotkey Community
If you want it to open maximized, just open it maximized.
You can override the tray menu like so with v2:
The Help option in the main window can only be overridden with OnMessage.
As for v1, you can use OnMessage with message 0x111 and wParam = 65411 (main window menu) or 65301 (tray menu). As a user of v1, you should not expect any further development unless you are doing it yourself.
This is the sort of complaint that such a change would be likely to generate:AutoHotkey Development
Discuss the future of the AutoHotkey language
Source: AutoHotkey Community - Index page
WHY does AHK Help Open Maximized? - AutoHotkey Community
If you want it to open maximized, just open it maximized.
Code: Select all
#Requires AutoHotkey v2
Run A_AhkPath "\..\AutoHotkey.chm",, "Max"
Code: Select all
#Requires AutoHotkey v2
Persistent
A_TrayMenu.Add "&Help", open_help_maximized
open_help_maximized(*) {
Run A_AhkPath "\..\AutoHotkey.chm",, "Max"
}
As for v1, you can use OnMessage with message 0x111 and wParam = 65411 (main window menu) or 65301 (tray menu). As a user of v1, you should not expect any further development unless you are doing it yourself.
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
v1 or v2 is irrelevant. The help file is displayed by a built-in Windows program, hh.exe. It usually does remember the window position, but that can fail if the file in which it stores this information (%APPDATA%\Microsoft\HTML Help\hh.dat) is corrupt. You can try deleting it.
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
In its location
C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\HTML Help
I have also found AutoHotkey.chw file. But despite deleting both of them [and making sure my docked at top Winamp is turned off] it still does not work
To be precise: the size and placement of AutoHotkey Help window did get a default small size and placement in upper left area of screen; and after resizing it / and or moving around and then closing and re-opening of it that window was in the same state. But still if I maximize it then this state will be "half-remembered" as it will be almost 100% upon next opening
So this tells us that the hh.dat file does remember also the maximized state - but my hh.exe is unable to push this command all the way through for the AutoHotkey Help window
C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\HTML Help
I have also found AutoHotkey.chw file. But despite deleting both of them [and making sure my docked at top Winamp is turned off] it still does not work
To be precise: the size and placement of AutoHotkey Help window did get a default small size and placement in upper left area of screen; and after resizing it / and or moving around and then closing and re-opening of it that window was in the same state. But still if I maximize it then this state will be "half-remembered" as it will be almost 100% upon next opening
So this tells us that the hh.dat file does remember also the maximized state - but my hh.exe is unable to push this command all the way through for the AutoHotkey Help window
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
Then it sounds like this will now work:A Keymaker wrote: ↑ after resizing it / and or moving around and then closing and re-opening of it that window was in the same state.
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
This is just a lame band-aid
I do not wish to see an edge of potentially distracting content behind a window with help content [for any program] because if I am reading such thing then it means I am in some kind predicament and thus I need to have 100% focus
Plus its get destroyed, i.e. moves down, every time I unfold my thin bar of docked Winamp to a larger size
And there must be other users who dock also other programs - thus also not being able to use such workaround without constantly correcting it [which then has no sense as it is easier and quicker to once more maximize the window by using its proper mini-icon from its bar with title]
I do not wish to see an edge of potentially distracting content behind a window with help content [for any program] because if I am reading such thing then it means I am in some kind predicament and thus I need to have 100% focus
Plus its get destroyed, i.e. moves down, every time I unfold my thin bar of docked Winamp to a larger size
And there must be other users who dock also other programs - thus also not being able to use such workaround without constantly correcting it [which then has no sense as it is easier and quicker to once more maximize the window by using its proper mini-icon from its bar with title]
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
Sorry to hear you are so easily distracted. This is an AHK forum, not a Windows forum, so I made a suggestion to try to help you given the way that Windows program apparently works. Sorry you consider it lame. I will make it a point not to suggest anything else to you going forward.
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
Understood. AutoHotkey is suppose to work in a vacuum and not a Microsoft environment. Stupid me
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
@a keymaker: sarcasm is not useful.
Did you try this?
Or make a shortcut to AutoHotkey.chm and edit the shortcut's properties to start maximized.
Problem solved?
Did you try this?
Run a script with that line whenever you want to start the help file maximized.lexikos wrote: ↑06 Jul 2023, 21:12If you want it to open maximized, just open it maximized.Code: Select all
#Requires AutoHotkey v2 Run A_AhkPath "\..\AutoHotkey.chm",, "Max"
Or make a shortcut to AutoHotkey.chm and edit the shortcut's properties to start maximized.
Problem solved?
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
Thank you, but I already have a workaround
nd this topic is about averting a need to use oneA Keymaker wrote: ↑06 Jul 2023, 12:36[...]
[And this viewtopic.php?f=76&t=113468#p528691 although does alleviate this annoying issues, is nevertheless merely a workaround bearing implications]
So the answer to your question
is yes - with a workaround in form of a global AHK script
But nevertheless thank your for your ideas
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
But you made it clear that an AHK workaround isn’t what you are looking for. You are expecting a fix for the application itself which is not an AHK issue as you were told by the definitive source.A Keymaker wrote: ↑ Understood. AutoHotkey is suppose to work in a vacuum and not a Microsoft environment. Stupid me
- A Keymaker
- Posts: 461
- Joined: 31 May 2022, 13:46
- Location: Donjon du Château de Mérovingien
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
But my point is that every AHK file by default is able to produce e.g. [if applicable] a pop-up box saying
Thus my proposition in this topic is to make every AHK by default behave like when a user runs a workaround solution like this viewtopic.php?f=76&t=113468#p528691
if £ key is used within its script. And where does it come from? From Bill Gates or from its source?The hotkey £ will not be active because it does not exist in the current keyboard layout.
Thus my proposition in this topic is to make every AHK by default behave like when a user runs a workaround solution like this viewtopic.php?f=76&t=113468#p528691
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
I never maximize the Autohotkey .chm window and I'm against the suggested change to (in some way or other) make it default to open maximized.
I like the current situation where each user can super easily choose themselves if they want .chm to open maximized or not.
I like the current situation where each user can super easily choose themselves if they want .chm to open maximized or not.
Re: Make AutoHotkey Help window open always maximized and / or remember its last state
It is a matter of changing a readers for chm files. There are many chm readers who can satisfy your demand, maybe 'sumatra pdf' etc.
Ironically, the software for reading chm on MAC is even much better than Win. It's much more than just reading chm but also annotating it.
Ironically, the software for reading chm on MAC is even much better than Win. It's much more than just reading chm but also annotating it.
Return to “AutoHotkey Development”
Who is online
Users browsing this forum: No registered users and 3 guests