Keysharp - the resurrection of IronAHK

Talk about things KeySharp, some related to AutoHotkey or C#
jj4156
Posts: 19
Joined: 17 Jun 2019, 07:03
Contact:

Re: Keysharp - the resurrection of IronAHK

Post by jj4156 » 21 Apr 2021, 15:12

Is it possible to add a print function to keysharp? We will run Keysharp in linux and command line is prettey important in linux. Autohotkey is more like combination of an application and a program language, so ahk may never add print. But, keysharp, I thought, is a program language that is most one thought of.

letacio
Posts: 48
Joined: 08 Mar 2018, 16:05

Re: Keysharp - the resurrection of IronAHK

Post by letacio » 23 Apr 2021, 11:28

Chunjee wrote:
30 Dec 2020, 12:09
mfeemster wrote:
30 Dec 2020, 00:30
BTW, I don't see you in the discord anymore. Are you still there?
I was on vacation for two weeks for wrist stress and didn't touch a computer much. If you @ mention me or send a direct message; eventually I'll see it.
Find yourself an acupunturist. You might have some stagnation inside you.

letacio
Posts: 48
Joined: 08 Mar 2018, 16:05

Re: Keysharp - the resurrection of IronAHK

Post by letacio » 23 Apr 2021, 11:29

Waiting for the results! Just found this topic and i'm excited about it!
Thanks for all the hard work!

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 28 Apr 2021, 09:22

@jj4156 I am not sure what you mean by print. Do you mean something to write to the console? So in C++, it's printf() or cout, and in C# it's Console.WriteLine(). Something like that? I didn't know that AHK didn't have that. Are you sure? If ti doesn't, then yes, we can add it in Keysharp.

@letacio Thanks for your interest, I am glad you found it. I am working on it regularly, about 4 nights per week. I am aiming for having a testing release available around October, but that is a rough estimate.

I'll post updates here when I have them.

User avatar
boiler
Posts: 16705
Joined: 21 Dec 2014, 02:44

Re: Keysharp - the resurrection of IronAHK

Post by boiler » 28 Apr 2021, 09:49

mfeemster wrote: @jj4156 I am not sure what you mean by print. Do you mean something to write to the console? So in C++, it's printf() or cout, and in C# it's Console.WriteLine(). Something like that? I didn't know that AHK didn't have that. Are you sure? If ti doesn't, then yes, we can add it in Keysharp.
In AHK, you can write to stdout using FileAppend by specifying * for the file name.

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 28 Apr 2021, 15:49

Right, I had forgotten about that. I have already implemented it in Keysharp, because it was already done in IronAHK.

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Keysharp - the resurrection of IronAHK

Post by kczx3 » 29 Apr 2021, 08:01

Any guesses on what the final executable size will be for KeySharp?

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 29 Apr 2021, 11:59

It will be about 1.5-2MB, however it will depend on having .NET installed, which is a few hundred MB. But .NET has now become standard on all Windows installs, so it shouldn't be a big deal.

For Linux, adding .NET would generally be thought of as an additional install since .NET is not standard there.

With multi TB drives being the norm these days, this minuscule file size is negligible.

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Keysharp - the resurrection of IronAHK

Post by kczx3 » 29 Apr 2021, 13:57

Right I hear ya there. Does it just rely on .Net Core?

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 29 Apr 2021, 16:08

See the early messages in this thread to learn about what .NET it'll depend on.

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Keysharp - the resurrection of IronAHK

Post by kczx3 » 29 Apr 2021, 19:40

My bad. Thank you for pointing me to that

jj4156
Posts: 19
Joined: 17 Jun 2019, 07:03
Contact:

Re: Keysharp - the resurrection of IronAHK

Post by jj4156 » 06 May 2021, 12:55

mfeemster wrote:
28 Apr 2021, 09:22
@jj4156 I am not sure what you mean by print. Do you mean something to write to the console? So in C++, it's printf() or cout, and in C# it's Console.WriteLine(). Something like that? I didn't know that AHK didn't have that. Are you sure? If ti doesn't, then yes, we can add it in Keysharp.

@letacio Thanks for your interest, I am glad you found it. I am working on it regularly, about 4 nights per week. I am aiming for having a testing release available around October, but that is a rough estimate.

I'll post updates here when I have them.
Yes, write to console. AHK need to call AllocConsole before wirte to it. So, a new console is alway created for wirting. And it is difficult to wirte and read from an exist console.

jj4156
Posts: 19
Joined: 17 Jun 2019, 07:03
Contact:

Re: Keysharp - the resurrection of IronAHK

Post by jj4156 » 06 May 2021, 13:01

boiler wrote:
28 Apr 2021, 09:49
mfeemster wrote: @jj4156 I am not sure what you mean by print. Do you mean something to write to the console? So in C++, it's printf() or cout, and in C# it's Console.WriteLine(). Something like that? I didn't know that AHK didn't have that. Are you sure? If ti doesn't, then yes, we can add it in Keysharp.
In AHK, you can write to stdout using FileAppend by specifying * for the file name.
Thanks for reply. But, FileAppend just wirte to stdio not the console. DllCall("AllocConsole") is needed for wirting console. And AllocConsole will always display message in a new console

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 06 May 2021, 16:38

Interesting, I was unaware of these problems. We will make sure to look into it when the time comes. Remind me again in the October-December time frame.

Elesar
Posts: 70
Joined: 31 Oct 2013, 07:56

Re: Keysharp - the resurrection of IronAHK

Post by Elesar » 11 May 2021, 10:22

Just found this, very interested in helping with testing & possibly code when publicly available. I've been a long time AHK user, but haven't really used it much in the ~2 years since I changed to Linux as my primary OS. Still used a bit at work (Network Eng. & Server Admin), but haven't really written anything complex lately.

I only have a basic grasp of C# (2 semesters in community college about 4 years ago), but can still throw stuff together on occasion. Hoping I can help out on this and brush up on both AHK & C# in the process.

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 11 May 2021, 20:23

Thanks for your interest @Elesar . We've got a room in the discord now named #keysharp. I am also on there under the same name, mfeemster. Join us in there if you want. That's where we'll be coordinating testing and such.

Bernd
Posts: 56
Joined: 03 Sep 2016, 13:56

Re: Keysharp - the resurrection of IronAHK

Post by Bernd » 30 May 2021, 17:17

mfeemster Cannot wait to use it for Mac! :)
Tried to do it with pynput for my special application, but it turned out to be rather unwieldy ...

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 01 Jun 2021, 23:09

Bernd wrote:
30 May 2021, 17:17
mfeemster Cannot wait to use it for Mac! :)
Tried to do it with pynput for my special application, but it turned out to be rather unwieldy ...
Thanks for your enthusiasm @Bernd. My ultimate aim is to get as much of it as possible working on Mac, but please keep in mind that is at least two years away. I am first and foremost a Windows developer, so the aim will be to get it working there first. Then Linux after that, which is easily a year worth of work. Then finally Mac. The problem is that I am not a Mac developer at all. So supporting Mac will depend on how many other experienced Mac developers help contribute. We'll cross that bridge when we get there though.

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

Re: Keysharp - the resurrection of IronAHK

Post by mfeemster » 02 Jun 2021, 14:20

On 12/5/2020 I made a post announcing that I was going to begin work on the GUI controls. After 6 months of work, I am happy to report that I have implemented all of the functionality under the "Graphical User Interfaces" section of the help page. This was a major undertaking, so I am very happy and relieved that it is done.

There still remains to be implemented the GUI functionality under the Windows/Controls section of the help page. That will likely take 2-3 months.

After that, there will still be various features to implement including anonymous functions, #directives, script pausing/reloading, getting hotkeys/strings working correctly for all cases, and some low level object mechanics and threading stuff that will likely prove to be difficult.

I'll likely be ping ponging between these areas of functionality over the next 6 months.

I am feeling good because I can start to see the light at the end of the tunnel now.

I will post an update whenever I complete a particular area of functionality.

As always, feel free to join us in the #keysharp channel in the Discord.
Last edited by mfeemster on 02 Jun 2021, 14:27, edited 1 time in total.

burque505
Posts: 1731
Joined: 22 Jan 2017, 19:37

Re: Keysharp - the resurrection of IronAHK

Post by burque505 » 02 Jun 2021, 14:24

Thanks for the update, @mfeemster, that's great news.

Post Reply

Return to “KeySharp”