C# keylistener

I want to create a component in grasshopperC# that can be linked to the keyboard and work like a button command.
For example, I want it to return true when the f8key is pressed, just like the button.

Has anyone made something like this before?

thank you

1 Like

check this…

f5_f6_f7_f8_insert_hotkey.gh (22.1 KB)

Scripts provided by @andheum and @Mahdiyar

PS: my definition with the sliders and buttons requires Metahopper.

1 Like