AHK Help in Dark Mode Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Pan Blazej
Posts: 15
Joined: 12 Jun 2023, 01:28

AHK Help in Dark Mode

14 Mar 2024, 09:55

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?
User avatar
joedf
Posts: 9117
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AHK Help in Dark Mode

14 Mar 2024, 10:35

What specific version of windows are using 10.x ? :think:

@Ragnar Does this ring any bells for you?
Image Image Image Image Image
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]
User avatar
boiler
Posts: 17706
Joined: 21 Dec 2014, 02:44

Re: AHK Help in Dark Mode

14 Mar 2024, 19:23

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.
User avatar
gregster
Posts: 9226
Joined: 30 Sep 2013, 06:48

Re: AHK Help in Dark Mode

14 Mar 2024, 20:25

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.
User avatar
boiler
Posts: 17706
Joined: 21 Dec 2014, 02:44

Re: AHK Help in Dark Mode

14 Mar 2024, 20:34

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.
User avatar
boiler
Posts: 17706
Joined: 21 Dec 2014, 02:44

Re: AHK Help in Dark Mode

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
}
User avatar
joedf
Posts: 9117
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AHK Help in Dark Mode

14 Mar 2024, 22:03

@boiler wait... Does that mean we're missing a file for v2? Or we have some kind of bug?
Image Image Image Image Image
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]
User avatar
boiler
Posts: 17706
Joined: 21 Dec 2014, 02:44

Re: AHK Help in Dark Mode

14 Mar 2024, 23:46

At least in my installation, it didn’t seem to have the chm_config.js file where the v2 chm file was.
User avatar
Ragnar
Posts: 770
Joined: 30 Sep 2013, 15:25

Re: AHK Help in Dark Mode  Topic is solved

16 Mar 2024, 04:12

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 555 times
Pan Blazej
Posts: 15
Joined: 12 Jun 2023, 01:28

Re: AHK Help in Dark Mode

19 Mar 2024, 06:58

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!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], joefiesta, leothlon and 101 guests