I did it!
Finally I got my sweet little imacro to work!
What is it all about?
Well it started out with me doing a lot of research on the internet and I was downloading entire webpages to my hard drive while all I wanted was just a quote I coul easily find again.
Ofcourse I had to have the exact internet address and time, so I could use the quote in my paper.
So there I was, downloading webpages to different folders to keep it organised.
I am a little chaotic here and there, so I forgot what I put in which folder, which turned out to be quite desasterous because of the sheer amount of files I had "collected".
The solution I imagined, would let me mark text on a web page and store it with a timestamp and some tags, so I would easily find what I needed.
Now that´s exactly what my little imacro does.
But it does a little bit more too:
1)it takes a screenshot of the webpage I "ctrl+c"d the text off and saves it to my computer.
The filename consists of a name (it´s the same as the title of the blogger posting) and time (so it wont be overwritten, when using the default name again.
2)it posts the quoted text with internet url, time and, screenshot to my blog.
3)it adds the "labels" it prompted me for before to the post. (labels could be author, subject, location, or, whatever)
now it gets a little gadgety:
4)it then takes the blogger post and shares it to facebook as a link with the logopicture.
5)it writes a facebook status message which consists of the a sentence containing the blogger post title and all the used labels (hopefully without loosing meaning =) ).
6)it closes the tab so I can continue reading.
All that with a little more than a click within about 15 seconds....depending on your internet connection
below is the imacros code.
just fill in your blogs name and the path of your imacros download folder
1: VERSION BUILD=6240709 RECORDER=FX
2: TAB T=1
3: SET !ERRORIGNORE YES
4: PROMPT Attention!<BR>You<SP>are<SP>about<SP>to<SP>publish<SP>the<SP>content<BR>of<SP>your<SP>clipboard<SP>to<SP>the<SP>world!<BR>
5: PROMPT TITLE<BR>please<SP>enter<SP>the<SP>title<SP>of<SP>the<SP>blog<SP>entry<BR>(MUST<SP>be<SP>ONE<SP>WORD<SP>in<SP>LOWER-CASE<SP>without<SP>"SPACE"<SP>"_"<SP>"-"and<SP>NO<SP>OTHER<SP>SYMBOLS<SP>or<SP>it<SP>WONT<SP>WORK!): !VAR1 clickme
6: PROMPT add<SP>LABELS<SP>if<SP>you<SP>want<BR>(eg.:<SP>label1,<SP>label2,....): !VAR3 webquote
7: PROMPT enter<SP>YOURBLOG<SP>like<SP>in<SP>YOURBLOG.blogspot.com<BR>or<SP>use<SP>the<SP>default<SP>value: !VAR2 NAMEOFYOURBLOG(WITHOUT:.blogspot.com)
8: ADD !EXTRACT {{!URLCURRENT}}
9: 'save entire page in default folder
10: '(if current page is a pdf file
11: 'it is also saved in a folder
12: 'called {{!VAR1}}{{!NOW:yyyymmdd_hhnn}}_files):
13: SAVEAS TYPE=CPL FOLDER=* FILE={{!VAR1}}{{!NOW:yyyymmdd_hhnn}}
14: 'take a screenshot of the current page:
15: SAVEAS TYPE=PNG FOLDER=* FILE={{!VAR1}}{{!NOW:yyyymmdd_hhnn}}
16: TAB OPEN
17: TAB T=2
18: URL GOTO=http://www.blogger.com
19: TAG POS=1 TYPE=A ATTR=TXT:Posts<SP>bearbeiten
20: REFRESH
21: TAG POS=1 TYPE=A ATTR=TXT:Neuer<SP>Post
22: 'insert title:
23: TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:stuffform ATTR=ID:f-title CONTENT={{!VAR1}}
24: 'BEGINNING insert post text from clipboard! (in html format-mode)
25: TAG POS=3 TYPE=DIV ATTR=TXT:Jetzt<SP>speichern
26: WAIT SECONDS=3
27: REFRESH
28: TAG POS=1 TYPE=SPAN ATTR=ID:ShowSourceEditor
29: TAG POS=1 TYPE=TEXTAREA FORM=NAME:stuffform ATTR=ID:textarea CONTENT=quote<SP>from<SP>{{!EXTRACT}}<SP><SP>at<SP>{{!NOW:yyyymmdd_hhnnss}}<SP>:<BR>..."{{!CLIPBOARD}}"...end<SP>of<SP>quote.<BR>Go<SP>to<SP>the<SP><A<SP>HREF="{{!EXTRACT}}">original</A><SP>page<SP>for<SP>the<SP>full<SP>text.
30: TAG POS=3 TYPE=DIV ATTR=TXT:Jetzt<SP>speichern
31: TAG POS=1 TYPE=SPAN ATTR=ID:ShowRichEditor&&CLASS:
32: TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:stuffform ATTR=ID:post-labels CONTENT={{!VAR3}}
33: 'END INSERT POST TEXT
34: '
35: 'BEGINNING insert pic(s)
36: 'screenshot:
37: TAG POS=14 TYPE=IMG ATTR=SRC:http://www.blogger.com/img/blank.gif
38: TAB T=3
39: TAG POS=1 TYPE=INPUT:FILE FORM=NAME:uploader ATTR=NAME:image-file0 CONTENT=C:PATHOFYOURIMACROSDOWNLOADFOLDER{{!VAR1}}.png
40: TAG POS=1 TYPE=INPUT:RADIO FORM=ID:uploader ATTR=ID:layout-small
41: TAG POS=3 TYPE=DIV ATTR=TXT:Bild<SP>hochladen
42: TAG POS=1 TYPE=SPAN ATTR=TXT:Fertig
43: TAB T=2
44: 'save-refresh cycle:
45: TAG POS=3 TYPE=DIV ATTR=TXT:Jetzt<SP>speichern
46: WAIT SECONDS=4
47: 'REFRESH
48: 'logo:
49: TAG POS=14 TYPE=IMG ATTR=SRC:http://www.blogger.com/img/blank.gif
50: TAB T=3
51: TAG POS=1 TYPE=INPUT:FILE FORM=NAME:uploader ATTR=NAME:image-file0 CONTENT=C:\PATHOFYOURIMACROSDOWNLOADFOLDER\YOURLOGO.png
52: TAG POS=1 TYPE=INPUT:RADIO FORM=ID:uploader ATTR=ID:layout-large
53: TAG POS=3 TYPE=DIV ATTR=TXT:Bild<SP>hochladen
54: TAG POS=1 TYPE=SPAN ATTR=TXT:Fertig
55: TAB T=2
56: 'END insert pic(s)
57: '
58: TAG POS=1 TYPE=DIV ATTR=CLASS:cssButtonInner
59: TAG POS=2 TYPE=A ATTR=TXT:Blog<SP>anzeigen
60: WAIT SECONDS=5
61: PROMPT share<SP>to<SP>facebook<SP>or<SP>hit<SP>"Stop"<SP>within<SP>5<SP>seconds
62: WAIT SECONDS=5
63: 'just for me; better understanding =)
64: 'http://{{!VAR2}}.blogspot.com/{{!NOW:yyyy}}/{{!NOW:mm}}/{{!VAR1}}.html
65: URL GOTO=http://www.facebook.com/sharer.php?u=http%3A%2F%2F{{!VAR2}}.blogspot.com%2F{{!NOW:yyyy}}%2F{{!NOW:mm}}%2F{{!VAR1}}.html&t={{!VAR1}}#
66: TAG POS=1 TYPE=TEXTAREA FORM=ACTION:http://www.facebook.com/sharer.php?u=http%3A%2F%2F{{!VAR2}}.blogspot.com%2F{{!NOW:yyyy}}%2F{{!NOW:mm}}%2F{{!VAR1}}.html&t={{!VAR1}}# ATTR=ID:sharer_popup_message CONTENT=posted<SP>"{{!VAR1}}"<SP>for<SP>those<SP>who<SP>are<SP>into<SP>{{!VAR3}}<SP>and<SP>stuff<SP>like<SP>that.
67: WAIT SECONDS=3
68: TAG POS=2 TYPE=INPUT:BUTTON FORM=ACTION:http://www.facebook.com/sharer.php?u=http%3A%2F%2F{{!VAR2}}.blogspot.com%2F{{!NOW:yyyy}}%2F{{!NOW:mm}}%2F{{!VAR1}}.html&t={{!VAR1}}# ATTR=ID:submit
69: TAB CLOSE
70: TAB T=1
what you need to do/have to make this work:
- A blogger account with auto-sign-in
- A facebook account with auto-sign-in
- imacros plug-in for firefox (might work with IE too-not cheked yet)
- you have to start in the "last" tab (the one on the very right)
- Please note that this works only for the german version of blogger. for the english version, you would have to use the english buttton names.
don´t use this to spam. spamming is totally uncool and annoying.
have fun!
special thanks for the tool to publish code on blogger to http://codeformatter.blogspot.com/2009/06/about-code-formatter.html