11-24-2023, 08:56 AM | #16 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2023
Device: Kindle
|
Hello, sorry about late response!
Normally I bookmark posts that I create asking for help, then check back daily. Since this post went to moderator for approval, there was nothing to bookmark at that specific point, I waited for email confirmation post was accepted. Seems these are not sent out, and I guess life got in the way in between In any case, I went through absolute hell and back but did manage to solve it! Since this issue was only happening with Sigil (I could post custom characters in all other apps, including older versions of Sigil) I figured this would be a good place to start with the debugging. In the end, the issue was with AutoHotKey. What I did was navigated to the install directory and set AutoHotkey.exe to run with administrator privileges. Problem solved! I have no idea in the world why AHK lacking administrator privileges would have caused characters to not come up with Sigil 2.02 specifically (and no other apps) but I suppose that's a deeper mystery. In any case, hopefully this thread can sit here as a google-able resource for anybody else who comes into this specific issue. Thanks for all of your help and support, and once again, I'm sincerely sorry for missing all the comments! |
11-25-2023, 03:51 PM | #17 | |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
11-30-2023, 08:34 AM | #18 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2023
Device: Kindle
|
Version is 1.1.37.01, the most recent release of V1.
None of my scripts work on V2, so that is not an option, sadly |
11-30-2023, 12:25 PM | #19 |
Grand Sorcerer
Posts: 27,954
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
11-30-2023, 04:54 PM | #20 | |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Back to the deeper mystery: Why should you need to run AHK V1 with admin privileges to get it to interoperate with Sigil V2, when other AHK V1 users, like me, don't. When AHK is not running with admin privs, something must be consuming the key sequences AHK is sending… but what? If you use any Sigil plugins, try 'disabling' them by… not sure how, maybe just remove? Does Sigil have a 'disable-plugins' command line option? Have you tried running Sigil and AHK V1 (no admin-priv) in Windows Safe mode? BR |
|
11-30-2023, 05:31 PM | #21 |
Sigil Developer
Posts: 8,109
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Sigil plugins are not active in any way until launched by Sigil. The plugin interface by design isolates them from having any impact on Sigil itself. So Sigil plugins are not the issue here.
|
11-30-2023, 07:04 PM | #22 |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
So what do you suggest might be the cause?
The OPs problem is Sigil V2 specific, i.e. his AHK V1 is operating normally with all other applications, just as it did with earlier versions of Sigil, just my AHK V1 does with Sigil V2 and every other application I run. So where would the differences between the OPs setup and my setup be found… given its a Sigil-only problem the Sigil Preferences directory looks a logical place to start. When I look in there the most likely candidate I see is the plugins sub-directory… I also see the plugin preference settings are kept in a separate directory. So, if I had the problem: I would close Sigil, secure its preference directory by archiving it into a .ZIP, delete the plugins subdirectory, and restart Sigil. If the problem remained I'd reinstate the reference directory from the .ZIP (then I'd try running in Safe mode to eliminate other tasks**). But if the problem disappeared, I'd reinstate the plugins one-by-one until the problem reappeared… and if it didn't I'd look for a brick wall. ** I have a problem imagining how/why a third task would consume keystroke sequences emanating from AHK V1 destined for Sigil V2 specifically… but only if AHK V1 was running with normal privileges. BR Last edited by BetterRed; 11-30-2023 at 07:13 PM. |
11-30-2023, 07:16 PM | #23 |
Sigil Developer
Posts: 8,109
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Again unlike calibre, no plugin is run on Sigil start-up and in fact none are run until something is actually launched by the user in Sigil. Only a list of the folder names and parsing of plugin.xml files is done, and None of which can prevent shortcuts from being delivered to Sigil itself. So you can safely ignore the plugin directory. Might try with a different ini file just to rule that out.
If this was a linux box or macOS, I would bet ownership or permissions of Sigil itself or one of its components is messed up requiring Admin privs to connect to it. Or alternatively the HotKeys stuff is being run under some other owner or permissions and therefore without admin privs can not deliver events to Sigil. Or some other piece of software is launching Sigil under its watch (and its ownership or permissions). This may be caused by some strange system monitoring tool or anti-virus tool. Or If AutoHotKeys is being run as a service (or server) my guess would be it is being launched or run with the wrong permissions or ownership. I would examine the Windows property setting for launching Sigil. Check or update ownership of all of Sigil and its components. Then try directly launching Sigil using a commandshell or bat file. Or create a new user and install Sigil using the official installer under that new user to see if it exhibits the same strange symptoms. Either way, this issue is specific to his/her machine in some way. Last edited by KevinH; 11-30-2023 at 07:25 PM. |
11-30-2023, 08:12 PM | #24 |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
According to the OP, he went through hell and back to discover the problem could be overcome by running AHK with admin privileges… IMO that is a somewhat obscure solution. So I imagine he explored all the usual suspects.
If the OP zipped up the Preferences directory, deleted it and then started Sigil (as they do normally) they'd have a fresh default set of preferences without changing anything else. If the problem disappeared - then its something in the existing preferences. BR |
11-30-2023, 08:20 PM | #25 |
Sigil Developer
Posts: 8,109
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Or just rename the ini files to save it and Sigil default prefs will be recreated.
|
11-30-2023, 10:55 PM | #26 | |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Code:
sigil_v6.ini sigil_clips_v6.ini sigil_index_v6.ini sigil_searches_v6.ini. |
|
11-30-2023, 11:00 PM | #27 | |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
11-30-2023, 11:08 PM | #28 |
Sigil Developer
Posts: 8,109
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Yes for Sigil 2.x which uses Qt6 the new ini file is called sigil_v6.ini, but if an older sigil.ini file exists, Sigil will read from that to create sigil_v6.ini, otherwise it is created from defaults.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blocking external calls... | Ghitulescu | Calibre | 2 | 03-03-2021 09:19 AM |
Macros for tag additions? | DMcCunney | Library Management | 16 | 02-17-2016 11:44 AM |
Sigil "External Edit" not implemented for Mac? | camdenmaine | Sigil | 4 | 02-08-2013 06:08 PM |
Using AutoHotKey to test/build Sigil | Halo | Sigil | 3 | 08-15-2011 10:36 AM |
Macros | obsidianchao | Kindle Developer's Corner | 0 | 07-13-2011 07:42 PM |