A bit off topic, but - keyboard macros/shortcuts [time sensitive]

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

A bit off topic, but - keyboard macros/shortcuts [time sensitive]

MichaelAtOz
Administrator
I don't normally spruik *
<https://www.macmillandictionary.com/dictionary/british/spruik>    products
here, but...

I bought a two 2x4 customisable keypads I was intending to program with
macros to help with OpenSCAD;
to do the things you click on the GUI buttons without taking your hands from
the keyboard for example, or autotype some syntax etc.
[yes I know I could also learn a bunch of control codes but one button is
easier for those with RSI]
I was even planing to use the icons from the source to produce some custom
keycaps.
I may still do that, but...

I just saw this  kickstarter
<https://www.kickstarter.com/projects/jacoburge/touchpad-the-arduino-compatible-customisable-keybo?ref=recs&ref=discovery>  
for a USB capacitive 'touchpad' (36 keypad really).
It uses swappable clear overlays and can change keysets depending on what
you are doing.
You can print to transparencies to make the overlays.
Even program it direct via Arduino.
It's not the cheapest, but I'm in.

There is only 11 hours left if you want one.





-----
Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: A bit off topic, but - keyboard macros/shortcuts [time sensitive]

Troberg
You can also use your smarthone (or, even better, an old one you don't use
anymore) as a programmable keypad which plugs in as an USB keyboard.

Look here for some solutions:
https://www.bing.com/search?q=using+android+device+as+usb+keyboard&src=IE-SearchBox&FORM=IESR3N



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: A bit off topic, but - keyboard macros/shortcuts [time sensitive]

MichaelPFrey
In reply to this post by MichaelAtOz
Am 12.03.2018 um 03:03 schrieb MichaelAtOz:
> I bought a two 2x4 customisable keypads I was intending to program with
> macros to help with OpenSCAD;
> to do the things you click on the GUI buttons without taking your hands from
> the keyboard for example, or autotype some syntax etc.
> [yes I know I could also learn a bunch of control codes but one button is
> easier for those with RSI]
> I was even planing to use the icons from the source to produce some custom
> keycaps.
> I may still do that, but...
I and t-paul are working on the feature branch inputdriver5 (see
https://github.com/openscad/openscad/pull/2130/files).
inputdriver5 has support for gamepads/joysticks/3d-mice including their
buttons.
(Used) USB-Gamepads are cheap.
The UI of inputdriver5 has become very powerful.
> I just saw this  kickstarter
> <https://www.kickstarter.com/projects/jacoburge/touchpad-the-arduino-compatible-customisable-keybo?ref=recs&ref=discovery>
(insert generic kickstarter warning here)
> Even program it direct via Arduino.
Arduino leonardo (and clones) have the microcontroller directly
connected to USB, making them able to act as USB-HID device.

I have an arduino leonardo clone with an off-the-shelf "made in china"
keypad and mono-lcd shield at work.
Was a greate weekend project and now I can not imagine how I was ever
able to work without it.

If you are able to solder and can program arduino, you can simply buy a
arduino leonardo (or clone) and make your own keyboard matrix.

If you do not want to solder, but can program arduino: Google for
"arduino keypad shield" and order an arduino leonardo (or clone) with it.

An other approach - but this is very experimental - is using the dbus
interface with inputdriver5 .
This why, I was able to use my BBC-microbit as a very strange and
experimental input device.

With kind regards,
Michael Frey

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: A bit off topic, but - keyboard macros/shortcuts [time sensitive]

jon_bondy
I am unclear how an Arduino and a keyboard shield would integrate into a
standard PC for use with OpenSCAD

Jon

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: A bit off topic, but - keyboard macros/shortcuts [time sensitive]

MichaelPFrey
Am 12.03.2018 um 19:06 schrieb jon:
> I am unclear how an Arduino and a keyboard shield would integrate into
> a standard PC for use with OpenSCAD
>
> Jon
>
You need an arduino leonardo (or similar) that can act as USB-HID Device.

USB-HID devices are for e.g. Mouse and Keyboard.

So, an arduino leonardo can act as a USB-Keyboard. (there is plenty of
example code for that)


A USB Keyboard can trigger key strokes like "alt + f + s" to save the
current openscad file.

If the command you need does not have a keyboard short cut: No problem,
just use the arrow keys to navigate to the entry and hit enter.


So: The Arduino leonardo (or similar) pretends to be a USB-Keyboard.

When you press one button on the Arduino, the arduino (pretending to be
a USB-Keyboard) fires a bunch of key strokes.


With Kind Regards,

Michael Frey


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: A bit off topic, but - keyboard macros/shortcuts [time sensitive]

MichaelAtOz
Administrator
In reply to this post by jon_bondy
jon_bondy wrote
> I am unclear how an Arduino and a keyboard shield would integrate into a
> standard PC for use with OpenSCAD

This is one of the overlays from the Touchpad kickstarter.
<http://forum.openscad.org/file/t359/touchpad_icons.jpg>

Now imagine instead that it has your selection of icons
<http://forum.openscad.org/file/t359/openscad_icons.jpg>

Plus some custom settings (which you may make up an icon), for example;
do x wheel clicks to zoom in or out,
drag the view panel up/down/left/right
hide/show the console or animation panel
start/stop animation
do some of those editor operation that you can never remember the
complicated key combo
kick off some external command to for example take a snapshot backup of your
project
etc.




-----
Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!