WiredWX Christian Hobby Weather Tools
Would you like to react to this message? Create an account in a few clicks or log in to continue.

WiredWX Christian Hobby Weather ToolsLog in

 


descriptionKey storkes in C# EmptyKey storkes in C#

more_horiz
are any ways to accept key strokes through C# in a console app?

I want to apply macros/the f-keys to my program.

thanks in advance

descriptionKey storkes in C# EmptyRe: Key storkes in C#

more_horiz
Try to use the Console.readline() and process the input.

............................................................................................

Please be a GeekPolice fan on Facebook!

Key storkes in C# Lambo-11

Have we helped you? Help us! | Doctor by day, ninja by night.

descriptionKey storkes in C# EmptyRe: Key storkes in C#

more_horiz
okay... but wouldn't that require the user to type F9 or something else then press enter? I want to bypass that like how you would do it in a form.

descriptionKey storkes in C# EmptyRe: Key storkes in C#

more_horiz
Use the console.readkey() it should be the one you are looking for.

............................................................................................

Please be a GeekPolice fan on Facebook!

Key storkes in C# Lambo-11

Have we helped you? Help us! | Doctor by day, ninja by night.

descriptionKey storkes in C# EmptyRe: Key storkes in C#

more_horiz
Thanks! the console.readkey() was just what I needed Hooray!

descriptionKey storkes in C# EmptyRe: Key storkes in C#

more_horiz
Glad I could help. 😉

............................................................................................

Please be a GeekPolice fan on Facebook!

Key storkes in C# Lambo-11

Have we helped you? Help us! | Doctor by day, ninja by night.

descriptionKey storkes in C# EmptyRe: Key storkes in C#

more_horiz
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum