JohnDoe14432 Posted January 25, 2022 Share Posted January 25, 2022 Hi, I'm new to writing Ducky scripts and I'm trying to do "ALT F4" to close the currently active window. I've also tried using "ALT SPACE" but this doesn't seem to be working either. The only things that I can get to work are "ALT TAB" and "ALT (Single Character)". Any advice? Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 26, 2022 Share Posted January 26, 2022 Which encoder are you using? There has been (or still is) problems with the jsencoder for some key combos. These problems aren't showing up when using the java based encoder. That's why I'm asking about which encoder you are using to be able to narrow it all down. There are adjustments possible if using the jsencoder that might help. Link to comment Share on other sites More sharing options...
Cribbit Posted January 26, 2022 Share Posted January 26, 2022 If you are using jsencoder you need to mod it a little. you need to change it from: let key = args[0]; should be line 440 change it to let key = args; let regex = new RegExp('(CONTROL|CTRL|SHIFT|ALT|GUI|WINDOWS|COMMAND)'); if (regex.test(args)) { key = args[0]; } it was written to take the first letter which means the F keys, ENTER etc don't work. if it was to stop people using multiply modifier keys. Link to comment Share on other sites More sharing options...
JohnDoe14432 Posted January 27, 2022 Author Share Posted January 27, 2022 On 1/26/2022 at 1:30 AM, dark_pyrro said: Which encoder are you using? There has been (or still is) problems with the jsencoder for some key combos. These problems aren't showing up when using the java based encoder. That's why I'm asking about which encoder you are using to be able to narrow it all down. There are adjustments possible if using the jsencoder that might help. I'm using Circuit Python on a Raspberry Pi Pico (https://github.com/dbisu/pico-ducky) so I don't need to encode. It must be something with the pico-ducky code and not the Ducky language. Thank you for pointing me in the right direction! Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 27, 2022 Share Posted January 27, 2022 Well, if you're not using the Hak5 Ducky script language, then you need to redirect your questions elsewhere Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.