Jump to content

Archived

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

vulg4h

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

Share this post


Link to post
Share on other sites

Shouldn't you be able to just hit enter to submit the form?

Share this post


Link to post
Share on other sites
Shouldn't you be able to just hit enter to submit the form?

Nope :/

It being a textarea, it just inserts a newline.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I actually got the mobile approach idea from either haxwithaxe or Irongeek, I forgot which one's code I was looking at.

Share this post


Link to post
Share on other sites

TAB + SPACE doesn't work for me, i'm using chrome. You can send TAB six times to get to the status box on m.facebook.com . I used this in a vbs script a while back, i have some dumb friends that will open anything :P

Share this post


Link to post
Share on other sites

The problem is, it's TAB six times, unless they have any notifications, in which case it's seven TABs.

Share this post


Link to post
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. :/

Share this post


Link to post
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.

Share this post


Link to post
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 :(

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...