This is the code for arduino
bool secure_prompt(int reps, int millisecs)
{
make_sure_numlock_is_off();
... initialise SD card, DIP switches
... open a command prompt
... write a vbscipt that turns on numlock and execute it.
check_for_numlock_sucess_teensy(reps,millisecs);
}
// loop (repeat) times for (speed) milliseconds
bool check_for_numlock_sucess_teensy(int reps, int millisecs)
{
int i = 0;
do
{
delay(millisecs);
if (is_num_on())
{
make_sure_numlock_is_off();
delay(700);
return true;
}
i++;
} while (!is_num_on() && (i>reps));
return false;
}
I found a website that convert ducky code to arduino but I don't found how to convert from arduino to ducky. It would be nice if we could convert somehow from arduino to ducky