Adafruit hid switch keyboard layout - adafruit

That's probably a stranger question, but I built a little rubber ducky with a Raspberry pi pico. Now the problem is the keyboard layout is in us but I would like to change it to de (German) but don't know how to do it. The layout is saved as an Mpy file and I used adafruit for it. So the adafruit hid it or is there a better variant for it? I hope this was the right one.

Assuming you have raspi-config available, run this at a terminal prompt:
sudo raspi-config
It should launch a configuration tool that includes localisation options, which would include keyboard layout.

The question is not very clear, I will clarify that rubber ducky is a software that simulates keyboard input to computer. The basic layout for the input is US keyboard.
You can find more layouts including installation guide here: https://github.com/Neradoc/Circuitpython_Keyboard_Layouts

Related

How to screenshot BIOS

I need to make screenshot of BIOS Award 1984-2009 F8 setup for my Project without using devices like camera. Is there any way to do it? I tried some emulators, but they won't work.
In some UEFI putting an USB key and pressing F12 works. Hope it helps one person at least.

How would you test a mouse? Describing as many test cases as possible?

A question that I have been asked by a professor? Not looking for someone to give me a direct answer but more an idea of how to answer as im quite confused by the Question?
Thanks
Assuming you're talking about the common Computer Pointing Device, not the rodent:
Imagine grabbing a brand new mouse hot off the factory assembly line. You want to test this sample mouse to make sure it functions correctly to the full satisfaction/expectation of whoever's grandma is gonna buy it.
How exactly would you test it? After doing what exactly would you conclude with 100% confidence that "OK, this mouse is perfectly good, no problems at all in any situation!" ?
You might plug it into a computer and see; does it get detected right away? Does it automatically setup the driver? Does it move around well? Does it click well? What if you're using Windows XP? What about Linux? What about inside virtual machines? What about with a USB extension wire? All of these "What If"s are called test cases; cases / situations that you'd want to test for to make sure the mouse works as expected even in that case / situation.
You can also test through..
1) which is the manufacturer company of that mouse
2) Is it required mouse pad ?
3) Is it wired/wireless mouse
4) maximum distance between mouse & device(Wireless mouse)
5) you can also check that "mouse can connect with more than one device same time.."
6) apple's mouse doesn't work in windows device...

IntelliJ IDEA back/forward with mouse

I want to move back/forward between editor tabs, using the two additional ("virtual") mouse buttons I have (RAZER DEATHADDER BLACK).
In Eclipse it's possible by default.
In IDEA I go to File->Settings->Keymap->Main menu->Window->Editor Tabs.
There I have Select Next Tab with the deault Alt+Right shortcut.
Then I open the Add Mouse Shortcut.
In that dialog I try to assign the back button of my mouse but without success. It doesn't react at all.
Anyway, googling a bit I've found this thread. I quote Alexey Gopachenko which seems to be an employee of IntelliJ:
As stated above - we can't support buttons if JDK on your platform
does not support them - and obviously it does not.
Anyway, that is totally wrong. My platform does support these keys - I actually work with them, on the same platform, on Eclipse and any other app, so it's IDEA who ignores them.
I'd appriciate a solution - how do I assign these back/forward mouse buttons?
UPDATE #1
I've found out that IDEA uses its own JAVA distribution (C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1.4\jre on Windows 7), instead of the system's one - WHY?!
I'm almost SURE that is the reason I cannot use extended mouse buttons.
I've tried to trick IDEA by creating a custom Windows shortcut. Didn't work. I've also tried to create a SYMLINK in windows to my other, system-wide JRE distribution. Didn't work as well.
If someone come up with an idea on how to make it work with the system's JRE instead of its own - I think that'd solve the issue.
UPDATE #2
The above update #1 is not the issue.
I also had the same problem under OS X El Capitan. I just tried to add a new Keyboard-Shortcut and pressed than the Button 4 on the mouse and this worked.
Back/Forward mouse shortcuts work fine for me with Razer Mamba mouse, for example Back action is assigned to Button4 Click and I can confirm that it is recognized in this dialog when I click on the Click Pad area:
If it doesn't work with your mouse for some reason, you can try to workaround the problem using the Razer Configurator macro or key assignments:
Use the assigned key in IDEA keymap settings instead of the mouse shortcut.
Note that Eclipse is SWT based while IDEA is Swing based, so mouse event management is completely different. If JDK cannot recognize your device button clicks, it will not work in any Java Swing applications (NetBeans, JEdit, etc). In some cases running IDEA under a more recent JDK version may help (if support for your device was added in the newer JDK release).
I'm experiencing the exact same thing suddenly.
I realized my most recent change was to start using idea64.exe rather than idea.exe.
I switched back, and my mouse buttons are working fine again.
So, while this is not a complete answer, it seems as if it has something to do with the 64-bit version.
If the Razer driver's button mapping feature doesn't allow different mappings for a particular program, you can just assign the buttons to the mouse button number choices (mouse button 4 / mouse button 5) and then install a third party app that does support mappings for particular programs, e.g. https://superuser.com/questions/562972/how-to-map-bind-mouse-button-as-keyboard-button-in-windows-7
This question helped me although I have a Logitech Marathon Mouse M705, so I thought that I would share the solution in case other Logitech owners was in search for this.
I have a similar problem with a Logitech mouse and idea64.exe
Fortunately their SetPoint software allows for program specific settings.
This setting will have to be deleted and then reconfigured whenever you update IntelliJ and get a new idea64.exe :-)
I am experiencing a very similar problem and wanted to share my findings. I just bought a new Logitech M705 mouse. Within intelli-j the scroll right and scroll left buttons do not work. The forward and backward buttons also do not work.
I typically run intelli-j as administrator because I need higher privileges to run various tomcat services. When logging in as that user (rather than right clicking and selecting run as admin) all the buttons work! Also, when running as my normal user all the buttons work.
Also very curious is that I have an older generation Logitech mouse (same model, M705). This mouse has no problems with the scroll buttons and forward-back.
My solution for now is to use intelli-j as the user I am logged in as.
Check out this little tutorial from BetterTouchTool here. Basically for some mice (like Logitech ones) using the settings application they come with you can map default button actions to clicks and in doing so set a button number and use it as normal.
This works for my Logitech Performance MX mouse.
You can add mouse shortcuts, just click on an action in keymap and add mouse shortcut.
Alternatively Ctrl+Tab brings up switcher, which may be less clicks to navigate.

Controlling USB keyboard and mouse

We have a hardware device, with an LCD display. It supports an USB interface to connect keyboard and mose. Using these keyboard and mouse, we can navigate to varios menu items and edit entries.
We have couple of test cases written to verify that mouse click and keyboard input events are working when pressed respective key.
My task is to automate these test cases.
I donot have any control to the hardware device, as I can not access the o/s kernel or any application running there. There is one way to verify what is currently displayed on the UI. So I have to use that and verify whether the mouse/keyboard has performed the appropriate events.
As I have gone through couple of previous posts, it seems like that one of the way to achieve this is through virual HID device driver rather than actual keyboard and mosue. But I am not sure how to achieve it.
Please do help me for it. I am fine with any programming language.
I am more interested to simulate the mouse and keyboard events.
You probably don't need to write your own driver. AutoHotKey does pretty much anything you can think of, and the scripting language is quite easy to learn.
You can get it here:
http://www.autohotkey.com/
Since you're using linux, here's a similar project that will run on linux:
http://sikuli.org/

Is there a way to access DELL XPS media buttons programmatically

If you have seen a Dell XPS in actions you probably have noticed its nice media buttons above the normal keyboard:
alt text http://blog.evolvedsoftwarestudios.com/wp-content/uploads/2008/03/img-1397.jpg
They are flashing when the notebook is starting and when you touch them.
Does anybody know how to make these buttons flash programmatically?
I had an old IBM laptop that had a keyboard light LED mounted in the top of the LCD frame (where the iSight is on a MacBook or MacBook Pro). I found that I could access this light via /proc/acpi under Linux.
I wrote a simple script that flashed the light on and off by interacting with /proc. There's a posting on my blog with the code.
You might want to try running an Ubuntu live CD and seeing if it detects the buttons, and if you can access them via /proc. A quick search showed that the newer XPS systems work out of the box with Ubuntu, so it'd be a good starting point.