Over a million developers have joined DZone.

Scrambled Facebook Emotes Into Clipboard(windows, Requires Pywin32)

·
// Scrambles all known Facebook emoticons and places the text in your Windows(eww) clipboard.


import win32clipboard, random

emotes = ['8-)', '>:o', '-_-', '8-|', ':-)', ':-D', '>:-(', ':-D', ':-(', ';-)', ':-p', '<3', ':v', ":'(", ':3', ':-o', ':|]', ':/', ':putnam:', ':-*', '(^^^)', '3:)', '<(")', 'O:)', ':42:', '^_^', 'O.o']

random.shuffle(emotes)
emotes.append(' ')
string = ' '.join(emotes)

win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardText(string)
win32clipboard.CloseClipboard()
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}