Hey .NET guys,
Probably most of you are aware of the
grread lisp function,
which gives the ability for a real-time tracking the keyboard input.
I had this questions stuck to me - how this function is defined in ACAD and
how would one simulate this behaviour in other APIs? Hence for the possibility to implement this
grread technique in other autodesk softwares such as Revit or 3Ds Max.
A possible example I've found, for simulating such behaviour is from Evan Kale's debtris for PhotoShop -
https://www.youtube.com/watch?v=VJgk-dCmP3Uhttps://github.com/evankale/debtrisWhere he sends his input from the console, and interops with the PS app.
So the console stays on focus, and the PS application on back -
Perhaps a more complete way would be to create an invisible Windows Form Application, and from it send key inputs via keypress event?
In other softwares like SketchUp I've looked up on how the Ruby guys could simulate the
grread behaviour in there,
but the end result was that the keyboard-tracking only supported keypress and not keyhold.
A suggested solution for that problem was to use keypress with timer.
For example
the end goal would to achieve UI input similar to a tetris game, that supports keyhold for moving the tetris-blocks.