Page 1 of 1

AHK Help in Dark Mode

Posted: 14 Mar 2024, 09:55
by Pan Blazej
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?

Re: AHK Help in Dark Mode

Posted: 14 Mar 2024, 10:35
by joedf
What specific version of windows are using 10.x ? :think:

@Ragnar Does this ring any bells for you?

Re: AHK Help in Dark Mode

Posted: 14 Mar 2024, 19:23
by boiler
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.

Re: AHK Help in Dark Mode

Posted: 14 Mar 2024, 20:25
by gregster
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.

Re: AHK Help in Dark Mode

Posted: 14 Mar 2024, 20:34
by boiler
Not only did I not remember that I did that for the v1 help, but it somehow didn't register after reading the OP. :shifty: 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

Posted: 14 Mar 2024, 20:43
by boiler
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

Posted: 14 Mar 2024, 21:00
by peter_ahk
awesome thnx

Re: AHK Help in Dark Mode

Posted: 14 Mar 2024, 22:03
by joedf
@boiler wait... Does that mean we're missing a file for v2? Or we have some kind of bug?

Re: AHK Help in Dark Mode

Posted: 14 Mar 2024, 23:46
by boiler
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

Posted: 16 Mar 2024, 04:12
by Ragnar
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:
image.png
image.png (13.55 KiB) Viewed 284 times

Re: AHK Help in Dark Mode

Posted: 19 Mar 2024, 06:58
by Pan Blazej
boiler wrote:
14 Mar 2024, 20:43
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
}
I created a file with that text, then saved it in AHK folder and it works. Thanks!