What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [WIP] Pastebin for Messenger Plus!

Pages: (3): « First « 1 [ 2 ] 3 » Last »
[WIP] Pastebin for Messenger Plus!
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by CookieRevised
S: Horseboy, What does the 'W' stand for in 'WIP'? And I assume 'IP' is 'In Progress'?

Work In Progress
04-14-2011 02:19 AM
Profile E-Mail PM Find Quote Report
Horseboy
Junior Member
**

Avatar
You can run and tell THAT - Horseboy

Posts: 40
Joined: Apr 2011
O.P. RE: RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by CookieRevised
What happens when you paste a large amount of text (and "Improve pasting operations for large text" is enabled) depends on if you already have typed something in the typing area or not:

- If the typing area is empty: the pasted blob will be send as a text file. No parsing is done on the pasted blob, not even if it starts with a command or if it contains tags or whatever.

- If the typing area is not empty: the pasted blob will be pasted at the cursor's location. It will be cropped to the maximum allowed amount of characters in the typing area (depends on your status and the Plus! setting "increase max size of messages you can send") minus what was already in the edit box.

eg: If the text "hello world" was entered in the edit box, and the cursor is at the space and you paste a massive amount of text, the output will be: "helloblobblobblobblobblobblob<...>blo World"

quote:
Originally posted by Spunky
Would Plus! still send the data as a txt file if it's a command? That would sound like a bug to me... :s
Depends on how you look at it I think. Imho it would be a bug if it does parse the blob in that case*.
Because if you paste a large amount of text, it is safely to assume imho that it wasn't meant to be a command but rather a copy of a document. If that document happens to start with a "/" and then the blob was parsed it would result in an error message (or even unexpected results). So, not good in that case.

*not to mention how large needs the internal buffers be then that Plus! uses to handle commands etc? You could well paste 200MB worth of text or more or whatever....The internal buffers would be rediculus big and parsing would be dead slow, scripts would choke, etc... probably resulting in a complete freeze of Messenger for a long while.


------------------


So, knowing this, the feature of this script is a bit redundant imho (not completely though. But it might not be as usefull as it seems to be at first sight).

Because if the text you want to paste to your contact is small enough to fit in the typing area, then there is not much reason to first copy it to pastebin, then send a link back. Simply send it directly.

If the text you want to paste to your contact is larger than the allowed amount, Plus! will already make a textfile out of it and send it that way (if that option is enabled).

The only added benefit of this script, as far as I can see, would be the language highlighting in case of source code. So, for people pasting source code all the time, it might be usefull I guess. Either way, it would be a good scripting practice for sure.

PS: Horseboy, What does the 'W' stand for in 'WIP'? And I assume 'IP' is 'In Progress'?

I've scrapped that idea, I'm sticking to /paste - window opens and you fill in the details. When it's done it'll replace the current message with the pastebin link to what you pasted.

And WIP stands for Work In Progress :)
Amateur Script Developer.
Current project(s) - TooLong Script
04-14-2011 07:54 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by Horseboy
I'm sticking to /paste - window opens and you fill in the details. When it's done it'll replace the current message with the pastebin link to what you pasted.
Which is what I was talking about.

Aka: instead of using this script and pasting your text in the special window of this script, you could paste your text directly to the convo and let Plus! deal with it (either send the text as a message, or either send it as a text file). Much less work, quicker, no script needed, etc... (hence the small redundancy of this script). But of course, then you'll miss the highlighting in case you paste source code.

quote:
Originally posted by Horseboy
And WIP stands for Work In Progress :)
"Work"... of course.... :$
* CookieRevised slaps himself...

This post was edited on 04-14-2011 at 10:40 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-14-2011 10:37 AM
Profile PM Find Quote Report
Horseboy
Junior Member
**

Avatar
You can run and tell THAT - Horseboy

Posts: 40
Joined: Apr 2011
O.P. RE: RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by CookieRevised
quote:
Originally posted by Horseboy
I'm sticking to /paste - window opens and you fill in the details. When it's done it'll replace the current message with the pastebin link to what you pasted.
Which is what I was talking about.

Aka: instead of using this script and pasting your text in the special window of this script, you could paste your text directly to the convo and let Plus! deal with it (either send the text as a message, or either send it as a text file). Much less work, quicker, no script needed, etc... (hence the small redundancy of this script). But of course, then you'll miss the highlighting in case you paste source code.

Yeah... I was going to have it two ways, i might still. The advantage to the window is that you can configure it more, like title, programming language, login to pastebin. Whereas if you have it so that you do /paste <blob of text>, you can't configure it.

quote:
Originally posted by Horseboy
And WIP stands for Work In Progress :)
"Work"... of course.... :$
* CookieRevised slaps himself...



You know that I'm not that good at scripting...
Amateur Script Developer.
Current project(s) - TooLong Script
04-14-2011 02:30 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by Horseboy
Yeah... I was going to have it two ways, i might still. The advantage to the window is that you can configure it more, like title, programming language, login to pastebin. Whereas if you have it so that you do /paste <blob of text>, you can't configure it.
"/paste <blob of text>" was not what I was talking about at all.

I was saying that it is much quicker and easier to paste a blob of text into the conversation window and let Plus! do its job, than it is to paste that same blob of text into a special script window, configure it, wait for upload, send link to contact, contact opening that link....

To put it very bluntly: Plus! already does natively what your script is going to do (except for the highlighting of source code).

quote:
Originally posted by Horseboy
You know that I'm not that good at scripting...
nobody was at first ;)

This post was edited on 04-14-2011 at 02:43 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-14-2011 02:43 PM
Profile PM Find Quote Report
Horseboy
Junior Member
**

Avatar
You can run and tell THAT - Horseboy

Posts: 40
Joined: Apr 2011
O.P. RE: RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by CookieRevised
quote:
Originally posted by Horseboy
Yeah... I was going to have it two ways, i might still. The advantage to the window is that you can configure it more, like title, programming language, login to pastebin. Whereas if you have it so that you do /paste <blob of text>, you can't configure it.
"/paste <blob of text>" was not what I was talking about at all.

I was saying that it is much quicker and easier to paste a blob of text into the conversation window and let Plus! do its job, than it is to paste that same blob of text into a special script window, configure it, wait for upload, send link to contact, contact opening that link....

To put it very bluntly: Plus! already does natively what your script is going to do (except for the highlighting of source code).

quote:
Originally posted by Horseboy
You know that I'm not that good at scripting...
nobody was at first ;)

That's what I meant, into the conversation window :-/

Say you're having a conversation with someone and it's something like "oh dude could you tell me how to print something in php?" (an example). So you do /pastebin lineofphp. What that does is sends a request to Pastebin with lineofphp as the text. No other options. After it's gotten an answer from pastebin's API with the pastebin link, it'll put that link into the message.

And the window idea will be something like this:

[Image: 2011-04-14_1602.png]

Except when you click submit, it'll copy the link the API produces to the conversation window. It won't look exactly like that, but it'll have the same functionality.

This post was edited on 04-14-2011 at 03:04 PM by Horseboy.
Amateur Script Developer.
Current project(s) - TooLong Script
04-14-2011 02:47 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by CookieRevised
To put it very bluntly: Plus! already does natively what your script is going to do (except for the highlighting of source code).
I was confused as well by the script but I think what Fike is doing is the following:

/paste will open a window that will allow the user to select the type of syntax to use when loading to PasteBin then the script will send the contact the message/link to PasteBin.

/pquick will do the same without giving the user the option to select the syntax or displaying a window. (This is the redundant part.)

That is my understanding.

This post was edited on 04-14-2011 at 03:12 PM by matty.
04-14-2011 03:11 PM
Profile E-Mail PM Find Quote Report
Horseboy
Junior Member
**

Avatar
You can run and tell THAT - Horseboy

Posts: 40
Joined: Apr 2011
O.P. RE: RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by matty
quote:
Originally posted by CookieRevised
To put it very bluntly: Plus! already does natively what your script is going to do (except for the highlighting of source code).
I was confused as well by the script but I think what Fike is doing is the following:

/paste will open a window that will allow the user to select the type of syntax to use when loading to PasteBin then the script will send the contact the message/link to PasteBin.

/pquick will do the same without giving the user the option to select the syntax or displaying a window. (This is the redundant part.)

That is my understanding.


It's Horseboy now ;)

And yeah, that's what my plan is.
Amateur Script Developer.
Current project(s) - TooLong Script
04-14-2011 03:29 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by matty
quote:
Originally posted by CookieRevised
To put it very bluntly: Plus! already does natively what your script is going to do (except for the highlighting of source code).
I was confused as well by the script...
I know exactly what Horseboy wants to do and what his proposed commands will do.... I am not confused about that at all...

quote:
Originally posted by Horseboy
That's what I meant, into the conversation window :-/
[...and more explanation...]
No... you are misunderstanding what I'm saying. I highly suggest you completely forget about your script and its possible features and try to paste a massive long text into a conversation while the Plus! option "Improve pasting operations for large text" is enabled to understand it.

I am NOT talking about the scraped idea of "/paste blob" or "/pquick blob" or whatever! lol....

Thus once again: I am talking about the 'open that script's window and paste your text in there' feature and how it is _also_ redundant for pasting non-source code. Aka, your script is not as usefull as it might seem at first sight, because Plus! already does it natively.

Paste your blob into the conversation directly, no command!, no script!, no nothing!... just paste your blob in the convo and Plus! does already what your script commands will do (except for the highlighting). Thus:
quote:
Originally posted by Horseboy
Say you're having a conversation with someone and it's something like "oh dude could you tell me how to print something in php?" (an example). So you do /pastebin lineofphp.
No, I paste it directly to the conversation, much quicker and easier.
And if the text is too long to fit in the conversation Plus! will already automatically send it as a text file, I don't need to do anything extra at all and I don't need a script for that.

This post was edited on 04-14-2011 at 03:55 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-14-2011 03:36 PM
Profile PM Find Quote Report
Horseboy
Junior Member
**

Avatar
You can run and tell THAT - Horseboy

Posts: 40
Joined: Apr 2011
O.P. RE: RE: [WIP] Pastebin for Messenger Plus!
quote:
Originally posted by CookieRevised
quote:
Originally posted by matty
quote:
Originally posted by CookieRevised
To put it very bluntly: Plus! already does natively what your script is going to do (except for the highlighting of source code).
I was confused as well by the script...
I know exactly what Horseboy wants to do and what his proposed commands will do.... I am not confused about that at all...

quote:
Originally posted by Horseboy
That's what I meant, into the conversation window :-/
[...and more explanation...]
No... you are misunderstanding what I'm saying. I highly suggest you completely forget about your script and its possible features and try to paste a massive long text into a conversation while the Plus! option "Improve pasting operations for large text" is enabled to understand it.

I am NOT talking about "/paste blob" or "/pquick blob" or whatever! lol....

Thus once again: I am talking about pasting your blob into the conversation directly, no command!, no script!, no nothing!... just paste your blob in the convo and Plus! does already what your script commands will do (except for the highlighting). Thus:
quote:
Originally posted by Horseboy
Say you're having a conversation with someone and it's something like "oh dude could you tell me how to print something in php?" (an example). So you do /pastebin lineofphp.
No, I paste it directly to the conversation, much quicker and easier.
And if the text is too long to fit in the conversation Plus! will already automatically send it as a text file, I don't need to do anything extra at all and I don't need a script for that.

Then give me some ideas for a new script...
Amateur Script Developer.
Current project(s) - TooLong Script
04-14-2011 03:51 PM
Profile PM Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On