vulg4h Posted May 2, 2010 Share Posted May 2, 2010 (edited) 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 May 2, 2010 by vulg4h Quote Link to comment Share on other sites More sharing options...
Sl45h3R Posted May 2, 2010 Share Posted May 2, 2010 Shouldn't you be able to just hit enter to submit the form? Quote Link to comment Share on other sites More sharing options...
vulg4h Posted May 2, 2010 Author Share Posted May 2, 2010 Shouldn't you be able to just hit enter to submit the form? Nope :/ It being a textarea, it just inserts a newline. Quote Link to comment Share on other sites More sharing options...
Netshroud Posted May 2, 2010 Share Posted May 2, 2010 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 Quote Link to comment Share on other sites More sharing options...
Sl45h3R Posted May 2, 2010 Share Posted May 2, 2010 Well TAB + ENTER on my facebook account is working. Just make sure you add a second (or so) delay between the two. Quote Link to comment Share on other sites More sharing options...
vulg4h Posted May 2, 2010 Author Share Posted May 2, 2010 (edited) 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 May 2, 2010 by vulg4h Quote Link to comment Share on other sites More sharing options...
Netshroud Posted May 2, 2010 Share Posted May 2, 2010 I actually got the mobile approach idea from either haxwithaxe or Irongeek, I forgot which one's code I was looking at. Quote Link to comment Share on other sites More sharing options...
benownzu93 Posted May 2, 2010 Share Posted May 2, 2010 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 Quote Link to comment Share on other sites More sharing options...
Netshroud Posted May 2, 2010 Share Posted May 2, 2010 The problem is, it's TAB six times, unless they have any notifications, in which case it's seven TABs. Quote Link to comment Share on other sites More sharing options...
Seshan Posted May 2, 2010 Share Posted May 2, 2010 (edited) 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 May 2, 2010 by Seshan Quote Link to comment Share on other sites More sharing options...
vulg4h Posted May 2, 2010 Author Share Posted May 2, 2010 (edited) 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 May 2, 2010 by vulg4h Quote Link to comment Share on other sites More sharing options...
benownzu93 Posted May 2, 2010 Share Posted May 2, 2010 (edited) 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 May 2, 2010 by benownzu93 Quote Link to comment Share on other sites More sharing options...
vulg4h Posted May 2, 2010 Author Share Posted May 2, 2010 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. Quote Link to comment Share on other sites More sharing options...
benownzu93 Posted May 2, 2010 Share Posted May 2, 2010 (edited) 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 May 2, 2010 by benownzu93 Quote Link to comment Share on other sites More sharing options...
vulg4h Posted May 2, 2010 Author Share Posted May 2, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.