Keysharp - the resurrection of IronAHK

Talk about things C#, some related to AutoHotkey
jj4156
Posts: 15
Joined: 17 Jun 2019, 07:03

Re: Keysharp - the resurrection of IronAHK

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: 41
Joined: 08 Mar 2018, 16:05

Re: Keysharp - the resurrection of IronAHK

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: 41
Joined: 08 Mar 2018, 16:05

Re: Keysharp - the resurrection of IronAHK

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: 39
Joined: 24 Apr 2020, 18:30

Re: Keysharp - the resurrection of IronAHK

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: 7984
Joined: 21 Dec 2014, 02:44

Re: Keysharp - the resurrection of IronAHK

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: 39
Joined: 24 Apr 2020, 18:30

Re: Keysharp - the resurrection of IronAHK

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: 1304
Joined: 06 Oct 2015, 21:39

Re: Keysharp - the resurrection of IronAHK

29 Apr 2021, 08:01

Any guesses on what the final executable size will be for KeySharp?
User avatar
mfeemster
Posts: 39
Joined: 24 Apr 2020, 18:30

Re: Keysharp - the resurrection of IronAHK

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: 1304
Joined: 06 Oct 2015, 21:39

Re: Keysharp - the resurrection of IronAHK

29 Apr 2021, 13:57

Right I hear ya there. Does it just rely on .Net Core?
User avatar
mfeemster
Posts: 39
Joined: 24 Apr 2020, 18:30

Re: Keysharp - the resurrection of IronAHK

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: 1304
Joined: 06 Oct 2015, 21:39

Re: Keysharp - the resurrection of IronAHK

29 Apr 2021, 19:40

My bad. Thank you for pointing me to that
jj4156
Posts: 15
Joined: 17 Jun 2019, 07:03

Re: Keysharp - the resurrection of IronAHK

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: 15
Joined: 17 Jun 2019, 07:03

Re: Keysharp - the resurrection of IronAHK

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: 39
Joined: 24 Apr 2020, 18:30

Re: Keysharp - the resurrection of IronAHK

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.

Return to “C#”

Who is online

Users browsing this forum: No registered users and 2 guests