最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

InsertSkydriveFiles v4.3 – a WLW Plugin to insert file into wlw from skydrive

crifan 9053浏览 0评论

Last Update: v2012-10-11


Where to get InsertSkydriveFiles

Version

Download

Changes

4.3InsertSkydriveFiles v4.3when image width>1024 or height>768 and you set original size, then thumb pic is real size, so use it for upload file, not the href address
new installer can remove old then install new version
4.2InsertSkydriveFiles v4.2

add icon support: Notebook, swf,xml,xsl;
change http header from IE8 to IE9;
update some regex search pattern;

(tmp not support more than 100 files under single folder,such as https://skydrive.live.com/?cid=F1FC1F42B8E21BF1&id=F1FC1F42B8E21BF1%21521)

4.1InsertSkydriveFiles v4.1support additional suffix to add support unrecognized file type
4.0InsertSkydriveFiles v4.0support the changed(since 2012-08-15) new version of skydrive website(internal return json string changed wihle retrieve files info)
3.1InsertSkydriveFiles v3.1support set replaced pic open with new window (add target="blank")
3.0InsertSkydriveFiles v3.0support the (changed since 2012-07-26) new version of skydrive website
2.1InsertSkydriveFiles v2.1update code to keep plugin still work for skydrive internal has changed some thing
2.0InsertSkydriveFiles v2.0add support login mode and unlogin mode, also add many functions, such as upload file, find&upload&replace drag-drop pictures.
1.0InsertSkydriveFiles v1.0initial version, only support insert files.

Where to submit sugguestion/bug

InsertSkydriveFiles – Discussion Group


What is InsertSkydriveFiles

Function

InsertSkydriveFiles is a plugin for WLW (Windows Live Writer).

Its function is to enable blog writer to insert files from skydrive, such as photo, audio, ….
Support Login mode and unlogin mode.
While in login mode, also be able to create folder / upload files / find & upload & replace for local pictures, those you have dragged from PC into WLW.

 

Implementation

Development Platform

C# of .NET + VS2010

Tested/Verified Environment

1. Win7 x86 + WLW 15.4.3538.513

2. Win7 x64 + WLW 15.4.3538.513

3. WinXP SP3 + WLW 15.4.3538.513

Motivation of InsertSkydriveFiles

Offline publish post

(1) After created my website www.crifan.com, my most urgent  requirement is

How to steadly, efficiently, in simple way, to write and edit my blog post or page.

In the end, the answer is use WLW (Windows Live Writer).

Good online storage place

(2) After that, new requirement appear:

for I do not want to upload files(audio/pictures/…) into my personal website, even though my site have enough space to store them, but those will consume most of the traffic of my site, increase burn of my site.

so need to find another place to online strore pictures(and other files)  then my site can use its external link.

In the end, the answer is Skydrive.

Find permanent link of file on Skydrive

(3) Now facing a problem, the link address of file on skydrive you got is just a temporary link, not permanent link, so how to easily find the real address / permanent link of the uploaded files(pictures/audio/…) of Skydrive. then insert it into your post?

For can’t find usable tool to do that thing, in the end, I write a python script to do it, you can found this python script : Python Script to get file real address/ permanent link on Skydrive

in this post: 用Python脚本去获得skydrive上文件的真实地址链接 + 提供脚本下载

Easily find & upload & insert local pictures in WLW

(4) Still have some question or inconvenience for me, because when I write a post, using WLW, snapshoot to store to some pictures, then need to following things:

A. use web browser to login to skydrive

B. create the related upload folder.

C. upload those pictures from PC to skydrive

D. use my previous python script to find the uploaded pictures/files permanent link

E. insert these files’ permanent link into WLW.

after above steps, then finnally can publish my newly written post into my web site.

It’s so tedious for me, I can not endure with it.

So need find something more convinient method to implement above requirement.

And after some search in google and baidu, also found some kind of tool, such as

插入相册中的相片,

but the result is disappointing, it is incompatible with my laster version 15.0 of WLW, can not use it.

Implement InsertSkydriveFiles by myself

(5) So, finnaly, the only way is to write a such WLW plugin to implement those functions.

After long hard work, complete it now, name it to “InsertSkydriveFiles”, to support browser files on skydrive, and insert your selected files(single/multiple/child files under a folder) permanent link to WLW.

While in login mode, also support create folder, upload selected files into WLW, find & upload & replace the local dragged-in pictures into WLW.

The detailed installation and usage of InsertSkydriveFiles can be found in following chapters.

How to Install InsertSkydriveFiles

InsertSkydriveFiles is publish in two way, you can use any one of them:

1. Installer: InsertSkydriveFiles_v2.0.msi

double click it to install it to your PC.

The installer will install the dll into right place and write a corresonding registry key into system.

2. DLL file: crifan.InsertSkydriveFiles.dll

the dll library, manually copy it to your WLW_INSTALL_DIR\Plugins\, then re-open WLW, you can see it in Insert->Plugin area.

How to use InsertSkydriveFiles

Quick Sample

Open InsertSkydriveFiles

1. Open you WLW

2. Click Insert

click insert

3. Then you can see “InsertSkydriveFiles” in Plugin area, click “InsertSkydriveFiles”

click InsertSkydriveFiles

4. Then InsertSkydriveFiles plugin will show the main dialog

InsertSkydriveFiles show

Login in Login Mode or Initialize in Un-Login Mode

InsertSkydriveFiles plugin support two mode:

1. Login Mode:

use your windows live ID and password to login to skydrive, then can be able to many operations, such as create folder, upload files, find&upload&replace local dragged-in pictures.

2. Un-login Mode:

if you already know someone, include yourself’s skydrive cid, then you can input the corresponding skydrive url, such as:

https://skydrive.live.com/?cid=9a8b8bf501a38a36

https://skydrive.live.com/?cid=9a8b8bf501a38a36&id=9A8B8BF501A38A36%21607

in which the 9a8b8bf501a38a36 is my([email protected])’s cid, and the

9A8B8BF501A38A36%21607 is the quoted from 9A8B8BF501A38A36!607, in which 9A8B8BF501A38A36!607 is the (resouce) id of some folder(insertSkydriveFiles).

Note:

makesure you have shared some folder/file, otherwise you acess skydrive url, like this:

https://skydrive.live.com/?cid=9a8b8bf501a38a36

will automatically redirect to the skydrive login webpage.

Login in Login Mode

1.input your windows live ID ( your mail address) and passwrod, then click login

input and login

after login, your files will show on “Browser Files on Skydrive”:

show your files on skydrive

also the “Information” part will show related info:

shows related information

also you can use the functions for login mode:

can use the functions for login mode

normally then you can browser files on skydrive:

browser files

 

Initialize in Un-Login Mode

1. input the skydrive url

unlogin mode init

2. Your publish shared folder and files will show on “Browser Files on Skydrive”:

show public shared folder files

the skydrive folder url can be any root folder or sub folder, such as:

for:

https://skydrive.live.com/?cid=9a8b8bf501a38a36&id=9A8B8BF501A38A36%21607

after initialized, will shows:

sub folder init

that means, if you know any other one’s skydrive url, which is public shared, you also can list files of it using this plugin.

How can I get the Skydrive Folder URL

(1) use your name and password to login to skydrive:
https://skydrive.live.com/
(2) click any file or folder in skydrive, it will jump to a new page
you will see the url in browser is something like this:
https://skydrive.live.com/?cid=9a8b8bf501a38a36&id=9A8B8BF501A38A36%21597
(3) then your skydrive’s main url is:
https://skydrive.live.com/?cid=9A8B8BF501A38A36
[4] also, for any file or skydrive, its url is:
https://skydrive.live.com/?cid=9A8B8BF501A38A36&id=xxx
in which, xxx is got by right click it->share->got link->
will got something like:
https://skydrive.live.com/redir.aspx?cid=9a8b8bf501a38a36&resid=9A8B8BF501A38A36!597
then xxx is the resid:
9A8B8BF501A38A36!597
the corresponding file or folder’s url is:
https://skydrive.live.com/?cid=9A8B8BF501A38A36&id=9A8B8BF501A38A36!597

Insert Selected Files on Skydrive

1. browser file on skydrive, click to select as you want, then click “Insert Selected”:

insert selected single file

2. the selected file will be insert into WLW:

selected will insert into WLW

3. For insert multiple selected files, currently support Ctrl/Shift + Mouse Click, to selected multiple un-adjacent / a range of files, then click insert selected.

4. For single selected  folder, if you want to insert all child files on it, you need to enable such option in:

Settings:

settings

Insert –> Insert all child files under selected folder:

enable insert folder

then goto browser to select a folder:

select a folder

click insert selected:

click insert selected

then will insert all child files under selected folder:

will insert all child files

the inserted corresponding HTML code like this:

corresponding inserted html code

Create Folder

1. Select parent foler

2. Input the folder name you want to create

3. Click create

create folder

4. The newly created folder will auto list out:

newly created folder

Upload Files

1. Select parent folder

upload file

2. Cilck selct file to choose files to upload

select files to upload

3. after Open, the choosed files to upload will show on “Files to Upload”:

list files to upload

4.Wait some time, which depent on your network speed between you and skydrive, then after succrssfully upload files, it will show out, and you also can see related information:

upload files OK

Find & Upload & Replace Local Dragged-in Pictures

1.Before open InsertSkydriveFiles  plugin, in WLW, you should select the local pictures, which you dragged from your PC into WLW:

drag picture

the most usage case is you have written complete your post and dragged all related picture into WLW, just like current time of mine, then do Ctrl+A to select all content in you WLW:

ctrl A to select all

then goto Insert-> click “InsertSkydriveFiles”to open InsertSkydriveFiles  plugin, and login.

2. then select parent foler, and input your folder name:

select parent folder for later upload local pic

3. the create folder, the newly created folder will list out:

the newly created parent folder

4. then click Find Local Dragged-in Pictures, the found local dragged-in pictures will list out:

click find local pic

then click Upload and Replace Local Pictures:

list found local pic and then click upload replace

for here this example contains more than 20 local pictures, so will take some a little bit long time to uploading:

take long time to upload pic for too many pic

when upload complete, will give a summary about the upload result:

OK to upload all local pic

then this plugin will automatically quit, and extract the newly uploaded file permanent link, then replace the oginal local address of those dragged-in pictures with the new permanent link.

So, that means,

for origanl method for:

(1) create foler to store upload files

(2) then upload pictures

(3) then find permanent link

(4) then insert these links

all can be done in this plugin, and the most importantly, it just need you do several click, then can done all tedious steps for you, so make life easy, at least for myself, ^_^.

5. Also for the last newly dragged-in several local pictures, I can use my plugin InsertSkydriveFiles to upload thems once more, and still just severl button click, then can finish all things for me

Hope this plugin also make your life easy.

 

Any questions/comments/bug report is welcome to admin (at) crifan.com.

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (15)

  1. 贵站在Live上的图片都已经不能正常显示了哦,严重害怕微软以后会不会再改啊
    frnong12年前 (2012-10-05)回复
    • skydrive最近几天,偶尔抽风,此刻,又好了。。。 之前也偶尔抽风的,但总体频率都很低。 暂时不担心微软会去动skydrive,毕竟会涉及N多用户的利益。 万一真是改了的话,那我真的会考虑直接使用自己网站放图片的。
      crifan12年前 (2012-10-05)回复
  2. 貌似有部分目录不能列出?不知道是什么原因?
    道禅12年前 (2012-09-01)回复
    • 你是在登陆情况下,出现目录不能列出的? 如果是,则详细说说你的错误情况,和截图,以便帮你定位问题原因; 如果否,很可能是你那部分目录没有公开共享,所以非登陆模式下,无法查看到。
      crifan12年前 (2012-09-01)回复
      • 是在登录的状况下的,根目录下有四个中文名称的文件夹没有列出,其中有已经公开的,也有私人文件夹。将文件夹重命名成英文仍旧不能。WLW版本号15.4.3538.513,插件用的4.1,dll安装。截图:http://wanderingtunes.net/wp-content/uploads/2012/09/sp.png
        道禅12年前 (2012-09-01)回复
        • 1. 你登陆网页版的skydrive,去把相应的出错不显示的文件夹,部分或全部,设置为公开,以便我后期能访问到。 2.通过我的插件登录skydrive后,点击任意一个文件夹或文件,把左下角Information处的信息复制给我 3.我可以从Information中找到cid值,然后访问你的skydrive公开的文件,然后去调试找出错误原因。
          crifan12年前 (2012-09-01)回复
          • 信息:https://skydrive.live.com/?cid=f1fc1f42b8e21bf1&id=F1FC1F42B8E21BF1%21390 辛苦了!
            道禅12年前 (2012-09-01)回复
            • 已发布v4.2,你空间的文件和文件夹的可以正常显示了。
              crifan12年前 (2012-09-02)回复
              • 问题解决了,感谢!
                道禅12年前 (2012-09-03)回复
  3. Great Work!Hope v2.0 will release as soon as possible.
    ZXR12年前 (2012-03-27)回复
    • actually already or almost completed, for it has some bug on keep login function, even if it does not affect the whole plugin working normally, but I still consist on release the whole nearly perfect v2.0 after fixed that bug. Maybe days later you will got this v2.0. ^_^
      crifan12年前 (2012-03-27)回复
      • Thank you for your awesome work! I notice that a lot of people are used to copy-pasting pictures directly into their articles from ClipBoard.Could this plugin upload these pictures to SkyDrive automaticly just like Local Dragged-in Pictures or Add this feature if possible?
        ZXR12年前 (2012-03-27)回复
        • if your "copy-pasting pictures directly into their articles from ClipBoard" means do this kind of operations in WLW, then the answer is yes. For the generated html code for wlw of copy-paste is same with drag-drop and the internal logic is also same. Just one notice, when you copy/drag multiple picures at one time, then you will got WLW's warning, to popup a window, let you choose, use "Embed pictrue: embed picutes into post" or "Album: insert thumbnail into post, and create corresponding online skydrive album.", then you should choose the first one, that is "Embed pictrue: embed picutes into post", then generated html can be correctly detected by my InsertSkydriveFiles plugin, then can be upload into skydrive's folder.
          crifan12年前 (2012-03-27)回复
80 queries in 0.153 seconds, using 21.97MB memory