question

Miguel-6237 avatar image
0 Votes"
Miguel-6237 asked JackJJun-MSFT commented

Create a macro in C #

Create a macro in C #
Hello, I do not have as much knowledge on how to program in C #, therefore, I ask you for this help.

I need to create macros that by pressing a key, a large set of messages comes out and these are produced as quickly as possible, for example

If I press the F1 key, a macro-type message will appear in which I write `` Hello '' and it will be sent automatically without the need to press the enter letter automatically

If I press the F2 key, it will send a message that will send the following letters separately but as quickly as possible, for example H (Enter) E (Enter) L (Enter) L (Enter) O (Enter), and if I put it in a Notepad will be evidenced like this


Press F1: Hello
Press F2: H
E
L
L
O

(And that this happens in the smallest possible milliseconds)
Thanks.

dotnet-csharp
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Miguel-6237, What do you mean about the macro, is it the Excel macro? Where do you want to display the macro-type message, in Excel or other places?

0 Votes 0 ·

Other place, think that the function in Ahk like sendinput:
F1:: sendinput Hello{enter}
I Would like use this like a spam macro

0 Votes 0 ·

@Miguel-6237, based on my search, c# doens't have have macros. You could refer to the link: creating-macros-in-c-sharp.


0 Votes 0 ·

0 Answers