11-14-2023, 08:18 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2023
Device: Kindle
|
Help—Sigil 2.02 blocking external macros (autohotkey)
Hello all!
Been using and loving Sigil for quite some years now. I have quite an extensive set of custom AHK (autohotkey) macros which I run through Windows. These allows me to use all manner of custom characters—for example, using [Ctrl + foo] or [Ctrl + Alt + bar] combinations—which I find extremely useful for things like en-dashes, [–] em-dashes [—], scientific symbols, and other things which I frequently use when I write. For some reason, his functionality has been completely disabled when I upgraded from Sigil ~1.6 to 2.02 last night. I have gone into settings and deleted all competing [Ctrl + foo] hotkeys, but it seems that simply having the program open and in focus takes complete control over the [Ctrl] key, in addition to the [Alt] and [Shift] keys. AHK never receives the commands in the first place due to Sigil 2.02. Any idea what is up with this? Perhaps this is a bug, or a disable-able feature in preferences? Much thanks! |
11-14-2023, 09:37 AM | #2 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
No recent changes here. Sigil does not take charge of any single key.
All set-able shortcut are controlled by Sigil Preferences. Look for something in the assigned Sigil keyboard shortcuts that just uses Ctrl alone and delete that setting. Or look for something outside Sigil (ie your system level) that is grabbing control of that key. Perhaps it is Qt6 related? Last edited by KevinH; 11-14-2023 at 09:39 AM. |
Advert | |
|
11-14-2023, 09:42 AM | #3 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
The only thing I can think of is the checkbox in the keyboard shortcut settings.
But maybe it's something completely different. The relationship of the problem to Qt6 also came to mind. |
11-14-2023, 09:59 AM | #4 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
I looked and Sigil 1.6 is quite old from early 2021. In Sigil version 1.8 (late 2021) we made deadkey and altgr related changes specific to Windows.
Perhaps those are an issue? The altgr setting can be enabled/disabled in a Preference setting, right? If they try Sigil 1.8 and it exhibits the same issues as Sigil-2.0.2 then we will know the issue is not Qt6 related as Sigil 1.8 still used Qt5. |
11-14-2023, 11:00 AM | #5 |
Grand Sorcerer
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Hmmm... I'm certainly no expert when it comes to hotkey programs, but I downloaded the latest version of AutoHotKey, created a quick and simple script with one KB shortcut assigned to send some simple text to the open window (Sigil). It seemed to work fine (whether or not Sigil already had the shortcut assigned).
I tried it with both v2.0.10 and v2.1-alpha.1 of AutoHotKey. All on Windows 10 with Sigil 2.0.2 I do not use AltGr so maybe that's the difference? Last edited by DiapDealer; 11-14-2023 at 11:06 AM. |
Advert | |
|
11-14-2023, 11:06 AM | #6 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
I also installed the AutoHotkey 2.0.10 version and I have no problems with shortcuts Ctrl+Alt+something (AltGr does not matter) and Ctrl+something.
|
11-14-2023, 11:23 AM | #7 |
Grand Sorcerer
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Judging by the amount of time it's taking me to setup the same similar test (with no success yet) with AutoHotKey 1.1.37, maybe that's the problem? Though AutoHotKey 1.1 is deprecated.
|
11-14-2023, 01:25 PM | #8 |
Grand Sorcerer
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've since been able to get shortcuts (even ones Sigil already had assigned) to work with Sigil 2.0.2 and the deprecated AHK 1.1.37. So I'm at a loss as to why it won't work for the OP.
|
11-14-2023, 03:27 PM | #9 |
null operator (he/him)
Posts: 20,653
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Sigil 2.0.2 and AHK 1.1.30.03 are working for me
Didn't know there was an AHK 2. But I can guarantee I won't be bothering myself with it any time soon ==>> https://www.autohotkey.com/docs/v2/v2-changes.htm BR |
11-14-2023, 03:39 PM | #10 |
Grand Sorcerer
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
11-16-2023, 12:55 PM | #11 |
Grand Sorcerer
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Is this the new normal? People ask for help and then never come back? It's getting pretty popular here, and on github.
I know people get busy, but take a moment to pop back and say "I fixed it," or "Thanks for the input, I haven't had time to try any of the suggestions, yet, but I hope to soon". Something. Debugging is hard to do with once-a-week interactions. |
11-16-2023, 05:25 PM | #12 |
null operator (he/him)
Posts: 20,653
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Then there are those who come back and post: "It's OK, I fixed it."
BR |
11-16-2023, 06:05 PM | #13 |
Bibliophagist
Posts: 36,506
Karma: 145748888
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Going from my personal experience, about 35% of the people posting questions either never log back into MobileRead or do not post a response to the answers or requests for more information. That number has increased over the years.
|
11-16-2023, 07:03 PM | #14 | |
null operator (he/him)
Posts: 20,653
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Especially those from responders who take not the time to read what the OP posted. Or responses that tell of irrelevances about what they did to solve the same problem on their Atari 40 years ago. Or a 20 line saga that repeats what was posted an hour earlier in 20 words. BR |
|
11-16-2023, 07:10 PM | #15 |
Grand Sorcerer
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If you have no tolerance for parsing responses, don't ask the question. I'm just going to stop engaging until such time as a willingness to converse has been established.
Last edited by DiapDealer; 11-16-2023 at 07:14 PM. |
|
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 |