Jump to content

3 or more simultaneous key presses on ducky


Traitor

Recommended Posts

Hey guys, so I just got my first duck today and I'm loving it. However, I'm wondering if and when commands like CTRL ALT DEL will be available (as currently only 2 simultaneous key presses are possible). I have a number of tasks i'd like to automate that require 3 and 4 keys to be pressed at once. I think in the meantime I'll install the firmware to allow it to be both a HID and USB storage device and then plop a couple of of AutoHotKey exe's on it that can be run by the ducky script. The only place I don't see this working is from a login/lock screen that requires a CTRL ALT DEL first. I know its fairly trivial to press these keys before inserting the duck, but it would be nice to streamline the process and have everything in the ducky script.

Thanks in advance.

-Traitor

Link to comment
Share on other sites

Dnucna found that 2x modifiers can be OR'd together, currently supported are CTRL-ALT and CTRL-SHIFT (as of Duck Encoder V2.2)

this allows CTRL-ATL DEL, and CTRL-SHIFT Enter

                                } else if (instruction[0].equals("CTRL-ALT")) {
                                        if (instruction.length != 1) {
                                                file.add(strInstrToByte(instruction[1]));
                                                file.add((byte) (strToByte(keyboardProps.getProperty("MODIFIERKEY_CTRL"))
                                                                | strToByte(keyboardProps.getProperty("MODIFIERKEY_ALT"))));
                                        } else {
                                                continue;
                                        }
                                } else if (instruction[0].equals("CTRL-SHIFT")) {
                                        if (instruction.length != 1) {
                                                file.add(strInstrToByte(instruction[1]));
                                                file.add((byte) (strToByte(keyboardProps.getProperty("MODIFIERKEY_CTRL"))
                                                                | strToByte(keyboardProps.getProperty("MODIFIERKEY_SHIFT"))));
                                        } else {
                                                continue;
                                        }

More research with a usb sniffer is needed for other combo's.


Edited by midnitesnake
Link to comment
Share on other sites

Thank you so much. This works perfectly. Is there a specific place to look for updates to the list of supported key combos like this? I would love to have combos like CTRL ALT SHIFT F6, but I'm not quite sure where to keep my eyes peeled for updates.

Thanks again,

-Traitor

Link to comment
Share on other sites

Yeah, that particular one is for Deep Freeze. There are a couple of non-domain labs that we have that are running independently in the field that we have to update every couple of months. The more I can automate the process the easier it makes life. That and I can think of a few other projects that ducks will come in handy for.

Thanks again for all the work you guys have done. I'll keep my eyes open for updates.

-Traitor

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...