Jump to content

[Version 1] [almost] Facebook Status Update [windows]


Recommended Posts

So a few things,

  • Hi, I'm vulg4h. I'm new here. How ya' doin'?
  • I can't test this because I don't have my Teensy yet, nor am I running Windows, atm.
  • I figured out that by doing a search of content within a textarea, and escaping the search puts you in typing mode of the textarea.
  • I love Rubber Ducky :D

  • Figured it out, should be working now.

Lastly, here be thy code.

The community's posts have helped dearly.

void setup() {
  delay(3500); // initial delay
  Keyboard.set_modifier(MODIFIERKEY_GUI);
  Keyboard.send_now();
  Keyboard.set_key1(KEY_R);
  Keyboard.send_now();
  Keyboard.print("www.facebook.com");
  enter(); 
  delay(6000); // let browser load
  Keyboard.set_modifier(MODIFIERKEY_CTRL); // set browser to search-page
  Keyboard.set_key1(KEY_F);
  sendClearKeys(); delay(100);
  Keyboard.print("What's on"); // search for "What's on"
  Keyboard.set_key1(KEY_ESC); // escape search
  sendClearKeys(); delay(100);
  Keyboard.set_key1(KEY_DELETE);
  sendClearKeys(); delay(100);
  Keyboard.set_key1(KEY_DELETE);
  sendClearKeys(); delay(100);
  Keyboard.print("This is an automated update from the future."); // new status content
  delay(100);
  Keyboard.set_key1(KEY_TAB);
  sendClearKeys();
  enter();
}

void loop() {
  // Maybe a flashing LED?
}

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();
}

EDIT Boy, do I feel dumb. When I was going over the form to see how many tabs I need to submit it (I actually got up to 9), I somehow missed the first one. Code is working, now.

EDIT2 Typo.

EDIT3 Ha.... fixed the beginning. :|

Edited by vulg4h
Link to comment
Share on other sites

Well TAB + ENTER on my facebook account is working.

Just make sure you add a second (or so) delay between the two.

Haha, yeah, I realized just before you posted that,

check out my edit.

I have this code done already for Windows and Mac OS X, I'll upload it later.

Hint: Tab + Space, at http://m.facebook.com

Ah, damn.

But hmm, good thinking going towards the mobile approach.

Edited by vulg4h
Link to comment
Share on other sites

It's tab 8 times for me. Friends request add's one. Also, the escape search thing doesn't work on Chrome for OS X. Not sure about other browsers.

*edit* This doesn't even work, all it's doing for me is bring up the start menu, and I don't feel like figuring out what is wrong right now. :/

Edited by Seshan
Link to comment
Share on other sites

It's tab 8 times for me. Friends request add's one. Also, the escape search thing doesn't work on Chrome for OS X. Not sure about other browsers.

*edit* This doesn't even work, all it's doing for me is bring up the start menu, and I don't feel like figuring out what is wrong right now. :/

Yeah, you know the Windows + R combo?

I incidentally made that CTRL + R, so uh... yeah.

Also, the initial browser test was Chrome for OS X, and I just tested again,

it seems to be working fine on my Firefox and Chrome.

It's Apple-F -> "what's going" -> ESC -> DELETE -> DELETE -> "msg"

Another edit, it was just tested on Chrome for Windows, everything seems to be peachy.

Edited by vulg4h
Link to comment
Share on other sites

It's tab 8 times for me. Friends request add's one. Also, the escape search thing doesn't work on Chrome for OS X. Not sure about other browsers.

*edit* This doesn't even work, all it's doing for me is bring up the start menu, and I don't feel like figuring out what is wrong right now. :/

I just found that same problem with a couple if event invites. could use www.facebook.com/share.php but you need to give it a url to share but on the plus side the page will always be the same.

--Edit--

there is also http://touch.facebook.com might work, but it won't load for me :(

Edited by benownzu93
Link to comment
Share on other sites

Could someone please test out the new code to see if it's get anywhere?

If stabilized, the search-escape method could help get to certain dynamically-located inputs.

just tried it and it dose not work, when you exit the search the text box is no longer selected.

--Edit--

Im using chrome

Edited by benownzu93
Link to comment
Share on other sites

Gah, it's working fine on mine and a friend's system.

Mac OS X

+ Firefox 3.5.9

+ Chrome 5.0.342.9 beta

Windows

+ Chrome 4.1.249.1064

Note: When attempted in Firefox, it did not show it was selected, but you could type regardless.

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...