Hi!
I've tried to toggle dark colour scheme for AHK help. However, changing that in Settings returns an error:
"Permission denied. Run the CHM file as administrator or create the config file manually."
I don't have the option to run CHM as admin, so I guess I have to create a config file. How do I go about doing it?
AHK Help in Dark Mode Topic is solved
-
- Posts: 15
- Joined: 12 Jun 2023, 01:28
Re: AHK Help in Dark Mode
What specific version of windows are using 10.x ?
@Ragnar Does this ring any bells for you?
@Ragnar Does this ring any bells for you?
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: AHK Help in Dark Mode
In case it's related, I don't get an error, but when I open the offline v2 help (v2.0.11), it doesn't remember that I put it in dark mode. The v1 help remembers that I left it in dark mode, however. Windows 10 Pro, v. 22H2 if that matters.
The online help for either version doesn't remember that it was last in dark mode, btw. It would be nice if there was a cookie that would let it keep track.
The online help for either version doesn't remember that it was last in dark mode, btw. It would be nice if there was a cookie that would let it keep track.
Re: AHK Help in Dark Mode
Currently, for me, the online help seems to remember the dark mode when I go into the 'help settings' and choose to save it.
I never use the offline help - so I can't comment on that.
I never use the offline help - so I can't comment on that.
Re: AHK Help in Dark Mode
Not only did I not remember that I did that for the v1 help, but it somehow didn't register after reading the OP. Thanks! So my online setting is saved, but I'm also getting the same error with my offline help as OP mentioned.
Re: AHK Help in Dark Mode
I was able to save the change to my chm_config.js file using Notepad++ running as admin. But it didn't exist in the v2 directory, so then I copied it in there and it remembers the dark mode setting. This is what it should look like (colorTheme being 1 for dark mode instead of 0):
Code: Select all
config = {
"fontSize": 1.1,
"clickTab": 0,
"displaySidebar": true,
"colorTheme": 1
}
Re: AHK Help in Dark Mode
@boiler wait... Does that mean we're missing a file for v2? Or we have some kind of bug?
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: AHK Help in Dark Mode
At least in my installation, it didn’t seem to have the chm_config.js file where the v2 chm file was.
Re: AHK Help in Dark Mode Topic is solved
By default, chm_config.js does not exist. It is only created by the Help Settings, which requires admin rights. If you do not have admin rights, you must create the file manually. The green info box in the Help Settings shows where the file must be located and what it must contain:
-
- Posts: 15
- Joined: 12 Jun 2023, 01:28
Re: AHK Help in Dark Mode
I created a file with that text, then saved it in AHK folder and it works. Thanks!boiler wrote: ↑14 Mar 2024, 20:43I was able to save the change to my chm_config.js file using Notepad++ running as admin. But it didn't exist in the v2 directory, so then I copied it in there and it remembers the dark mode setting. This is what it should look like (colorTheme being 1 for dark mode instead of 0):Code: Select all
config = { "fontSize": 1.1, "clickTab": 0, "displaySidebar": true, "colorTheme": 1 }