Go Down

Topic: Write to file and save (Read 596 times) previous topic - next topic

fullyloaded

Hi everyone
i was wondering if anyone can help me out i have a teensy++2.0 and am trying to get it to write text in notepad and save it i got it to open notepad and write text but cant get it to save here is what i have and sorry if i post in the wrong place thanks..
Code: [Select]
void setup()   {
}
void loop()
{
delay(1000);
     Keyboard.set_modifier(MODIFIERKEY_RIGHT_GUI);
     Keyboard.set_key1(KEY_R);
     Keyboard.send_now();
     delay(1000);
     Keyboard.set_modifier(0);
     Keyboard.set_key1(0);
     Keyboard.send_now();
     delay(1000);
     Keyboard.print("notepad.exe");
     Keyboard.set_key1(KEY_ENTER);
     Keyboard.send_now();
     Keyboard.set_key1(0);
     Keyboard.send_now();
     delay(1000);
     Keyboard.println("Hello World!");
     delay(1000);
}

johnwasser

I'm guessing you have he Arduino send he same keystrokes you would use to save and exit if you were at the keyboard and didn't have a mouse.  I don't have a Windows machine handy to figure out what to type but I assume you have one.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Coding Badly


Ctrl + S to save
filename
Enter
Alt + F4 to exit

Go Up