Let's start from your original problem... you are having different results with
LShift and
RShift. I asked before, but didn't get an answer: If no AHK script is running, are you also seeing the differences?
Can we agree that - on your german keyboard layout, no script running - pressing
LShift or
RShift and . always yields a
: ?
Bernd wrote: ↑07 Sep 2021, 14:50
Does the $ modifyer deliver ⸬ and ⸫ on your computer?
How could it return
⸫ with this code ?
ImSinn never gets set to
. in this code.
For me, this code alternates between
: ("unicode colon", U+003A) and
backspace (`b), then
⸬ (a "squared four dot", U+2E2C), as I would also expect from looking at the code. I see no difference between using
LShift and
RShift.
What do you get? What do you expect?
If you get something else? What it is? Are you really running no other scripts, and just this code posted above?
But I see now, what you mean.
$::: gets interpreted by AHK as a remapping of
$ to
:.
As
: is no key on a german layout anyway, I would use
Shift and
. instead:
Then you could also use the
$ modifier:
If I replace
::: with
+.:: or
$+.:: in your latest code, I still get the expected result, same as before. It alternates between
: and
⸬ - no matter what Shift I use.
I also still can't reproduce the problem from your first post. If I use that code, I always get
* (if I press
.) and
: (if I press the
shifted . key).
Which Shift doesn't matter, like expected.
Did you try that code yourself as standalone? Not in your larger script, but just this code in a new script, while absolutely no other scripts are running ?