Jump to content

Archived

This topic is now archived and is closed to further replies.

vulg4h

[Version 1] Send G-mail Message

Recommended Posts

So, I'm pretty sure this works.

[ Windows ]

void setup() {
  delay(3500); // initial delay
  Keyboard.set_modifier(MODIFIERKEY_GUI);
  Keyboard.set_key1(KEY_R);
  sendClearKeys();
  delay(500);
  Keyboard.print("cmd");
  delay(1000);
  Keyboard.print("start http://tinyurl.com/gmail-minipose"); // mail.google.com/mail/x/?v=b&eot=1&cs=b
  enter();
  delay(6000); // delay for browser to load
  Keyboard.print("to@email.com");
  Keyboard.set_modifier(MODIFIERKEY_TAB);
  sendClearKeys(); delay(100);
  Keyboard.print("subject here");
  Keyboard.set_modifier(MODIFIERKEY_TAB);
  sendClearKeys(); delay(100);
  Keyboard.print("message here");
  Keyboard.set_modifier(MODIFIERKEY_TAB);
  sendClearKeys(); delay(100);
  Keyboard.set_key1(KEY_ENTER);
  sendClearKeys();
}

void loop() { }

void enter() {
  Keyboard.set_key1(KEY_ENTER);
  Keyboard.send_now();
  Keyboard.set_key1(0);
  Keyboard.send_now();
}

void sendClearKeys() {
  Keyboard.send_now();
  Keyboard.set_modifier(0);
  Keyboard.set_key1(0);
  Keyboard.send_now();
}

Share this post


Link to post
Share on other sites

Depending on the windows version you could use the telnet client instead to send email.

Share this post


Link to post
Share on other sites

You can use telnet client on any windows version, except it's disabled by default on Vista & 7 :(

Oh, and of course, the user has to be logged in ;)

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...