Keysharp - C# port of AHK

Talk about things KeySharp, some related to AutoHotkey or C#
User avatar
mfeemster
Posts: 109
Joined: 24 Apr 2020, 18:30

Re: Keysharp - C# port of AHK

Post by mfeemster » 28 Sep 2024, 03:51

@burque505 I've ported the old AutoCorrect.ahk script to Keysharp.

Changes:
-Port code to from v1 style syntax to v2/Keysharp style.
-Add more words ending in ign to exclude from autocorrecting.
-Add more corrections at the end.

Diff with the original to make sure you're adding/removing the ones you want.
Attachments
AutoCorrect.ahk
(129.4 KiB) Downloaded 89 times
Last edited by mfeemster on 02 Oct 2024, 00:53, edited 3 times in total.

eugenesv
Posts: 182
Joined: 21 Dec 2015, 10:11

Re: Keysharp - C# port of AHK

Post by eugenesv » 28 Sep 2024, 05:52

mfeemster wrote:
17 Sep 2024, 14:49
This will not support the Unicode example you posted above because Keysharp translates script code into C#. So variable names in Keysharp need to be valid for C#. That's the best we can do.
Wouldn't the best thing we could do be some kind of name mangling instead during the translation? For example, Unicode symbols could be translated into their names and then you could add some long ASCII prefix to such variables that no user would ever use in a variable name to avoid confusing arrow symbol translated into "arrow" with use defined "arrow" in a name?

So then you could freely use Unicode in names and only be limited by said prefix and maybe some other edge cases you're unlikely to encounter (but be warned if translation isn't unique).

User avatar
mfeemster
Posts: 109
Joined: 24 Apr 2020, 18:30

Re: Keysharp - C# port of AHK

Post by mfeemster » 28 Sep 2024, 21:21

Porting to linux is my main priority now, so something like that is on a very distant back burner. Until then, only valid C# variable names are supported.

SOTE
Posts: 1429
Joined: 15 Jun 2015, 06:21

Re: Keysharp - C# port of AHK

Post by SOTE » 31 Oct 2024, 19:54

mfeemster wrote:
28 Sep 2024, 21:21
Porting to linux is my main priority now...
Very good news! :dance:

User avatar
mfeemster
Posts: 109
Joined: 24 Apr 2020, 18:30

Re: Keysharp - C# port of AHK

Post by mfeemster » 12 Dec 2024, 17:40

We don't have a new release ready yet, but I just wanted to let everyone know I've been working on this almost non stop this year except for a few months hiatus in the spring. User @Descolada has been doing extensive testing and finding all sorts of bugs that I've been fixing. We are substantially closing the gap between lingering differences between AHKv2 and Keysharp behavior (with some listed caveats).

I also spent a lot of time over the summer getting things ready for linux. I've got most functionality running there except for anything relating to the keyboard/mouse, hotkeys/hotstrings and manipulating non-Winforms GUI controls in other programs. Those will be *extremely* difficult to implement. I will be consulting the code for AHK_X11 to see how they proceeded.

We are going to wrap up the last few bug fixes over the coming weeks and should hopefully have a release ready around the new year.

Thanks for your patience.

User avatar
Chunjee
Posts: 1650
Joined: 18 Apr 2014, 19:05
Contact:

Re: Keysharp - C# port of AHK

Post by Chunjee » 27 Dec 2024, 15:47

mfeemster wrote:
12 Dec 2024, 17:40
I also spent a lot of time over the summer getting things ready for linux.
:bravo:

Post Reply

Return to “KeySharp”