<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>ClipboardFusion RSS: Bit.ly</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=713dceee-07ae-4c21-8166-4be4d2b41e9a" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=713dceee-07ae-4c21-8166-4be4d2b41e9a</link>
<description>ClipboardFusion RSS: Bit.ly</description>
<lastBuildDate>Thu, 25 Jun 2026 16:23:34 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=713dceee-07ae-4c21-8166-4be4d2b41e9a</generator>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#9</link>
<pubDate>Fri, 27 Nov 2020 13:49:52 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#9</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hello Owen,
Thank you for this additional information that will allow me to put a little more hands under the hood!
Good weekend.
Cordially.
Edgar]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello Owen,<br/>
Thank you for this additional information that will allow me to put a little more hands under the hood!<br/>
Good weekend.<br/>
Cordially.<br/>
Edgar
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#8</link>
<pubDate>Thu, 26 Nov 2020 17:19:35 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#8</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hi Edgar,
We have a list of our scripting functions found here: https://www.clipboardfusion.com/Macros/Help/
If you are looking to learn how to code in C#, I'm sure there are a ton of great tutorials on youtube or google that would interest you.
You also can run macros inside of each other, th...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Edgar,<br/>
<br/>
We have a list of our scripting functions found here: https://www.clipboardfusion.com/Macros/Help/<br/>
<br/>
If you are looking to learn how to code in C#, I'm sure there are a ton of great tutorials on youtube or google that would interest you.<br/>
<br/>
You also can run macros inside of each other, the help section for that is found here: https://www.clipboardfusion.com/Macros/Help/#bfs_clipboardfusion_runmacro<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#7</link>
<pubDate>Tue, 24 Nov 2020 18:17:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#7</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hello Owen,
Thank you and bravo for your work, modification and your responsiveness!
It works perfectly.
I just changed your code so that the macro does not stick directly after copying it because it crushed the original link.
Some complementary questions around Clipboard Fusion ...
As I sai...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello Owen,<br/>
<br/>
Thank you and bravo for your work, modification and your responsiveness!<br/>
It works perfectly.<br/>
<br/>
I just changed your code so that the macro does not stick directly after copying it because it crushed the original link.<br/>
<br/>
Some complementary questions around Clipboard Fusion ...<br/>
<br/>
As I said, I start and I have never programmed into C # or visual (and to tell the truth I do not know if I have the sacred fire for that).<br/>
Is there a Bible or a collection of macro functions of clipboard fusion?<br/>
Would you have reading tips or exercises to start?<br/>
<br/>
And finally, a practical case, can we go or chain a sequence of simple macros in another macro?<br/>
<br/>
Still a big thank you.<br/>
<br/>
Good continuation.<br/>
Cordially.<br/>
Edgar
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#6</link>
<pubDate>Mon, 23 Nov 2020 19:50:16 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#6</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hi Edgar,
We've added a new macro to the repository you can download named "Shorten URL with Bit.ly (with auto copy/paste)"
You will have to create your own API key, and set it on line 11. You can create the key here: https://bitly.is/accesstoken
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Edgar,<br/>
<br/>
We've added a new macro to the repository you can download named "Shorten URL with Bit.ly (with auto copy/paste)"<br/>
<br/>
You will have to create your own API key, and set it on line 11. You can create the key here: https://bitly.is/accesstoken<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#5</link>
<pubDate>Sat, 21 Nov 2020 21:19:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#5</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hello,
I start with clipboard fusion, it seems interesting and we find some concepts of Fusion Display.
The notion of triggers is a bit confused for me.
I thought I could use triggers with keyboard shortcuts and for some applications, but that's not how it works at a priori.
You have to go th...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
I start with clipboard fusion, it seems interesting and we find some concepts of Fusion Display.<br/>
<br/>
The notion of triggers is a bit confused for me.<br/>
I thought I could use triggers with keyboard shortcuts and for some applications, but that's not how it works at a priori.<br/>
You have to go through the macros, and there the problems for the non-programmer I'm starting.<br/>
<br/>
Fortunately, we can benefit from the good work of knowledgeable users.<br/>
I found the macro of @Pablomartinez to generate the shortcuts bit.ly, it's great!<br/>
<br/>
I would have liked to modify it slightly, but I can not find the correct syntax or procedure (if you have a BFS and C # command collection for Clipboard Fusion, I am a taker. And also if it is better C # or Visual. Basic?).<br/>
<br/>
I would like the macro Pablo Martinez runs directly on the text (URL link) selected and put it in the paper press to speed up the process.<br/>
Is it possible simply by changing certain lines?<br/>
<br/>
I saw that the macro was going to look somewhere on this side: "processtext (string text)", but I do not know how to fill in this variable from the selected text (with that, including: "bfs.clipboard.copytext () ").<br/>
<br/>
Or nickening several macro in one?<br/>
1) Select the text and copy it;<br/>
2) Start the Marco de Pablo Martinez.<br/>
<br/>
Here, I hope I have not been too confused in my explanation.<br/>
<br/>
Looking forward to your return, I remain at your disposal for any further information.<br/>
<br/>
Thank you in advance.<br/>
<br/>
Edgar
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#4</link>
<pubDate>Mon, 13 May 2019 16:00:32 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Thanks for the macro, Pablo! We've added it to the repository as well.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks for the macro, Pablo! We've added it to the repository as well.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#3</link>
<pubDate>Sat, 11 May 2019 03:42:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[thanks Pablo!!!
Again very much appreciated.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
thanks Pablo!!!<br/>
<br/>
Again very much appreciated.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#2</link>
<pubDate>Sat, 11 May 2019 01:31:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Like this. Get your token from here: https://bitly.is/accesstoken
Code
Copy
Select All
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
public static class ClipboardFusionHelper
{
// Paste your acce...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Like this. Get your token from here: <a href="https://bitly.is/accesstoken" target="_blank" rel="nofollow"><b>https://bitly.is/accesstoken</b></a><br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019eff9809bc71c99599d9fbc4d6d3e7" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019eff9809bc71c99599d9fbc4d6d3e7Js'); return false;"><img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019eff9809bc71c99599d9fbc4d6d3e7Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

public static class ClipboardFusionHelper
{
    // Paste your access token here. You can get it here https://bitly.is/accesstoken
    private static readonly string bitlyToken = "YOUR TOKEN";
    
    public static string ProcessText(string text)
    {
        if (CheckURLValid(text))
        {
            var shortenUrl = Shorten(text).Result;
            return shortenUrl;
        }
        else
            BFS.Dialog.ShowMessageInfo("It's not a url, or url not valid");
        
        return null;
    }
    
    public static bool CheckURLValid(string url)
    {
        Uri uriResult;
        return Uri.TryCreate(url, UriKind.Absolute, out uriResult) && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps);
    }
    
    public static async Task&lt;string&gt; Shorten(string url)
    {
        var post = "{\"long_url\": \"" + url + "\"}";
        
        var request = (HttpWebRequest) WebRequest.Create("https://api-ssl.bitly.com/v4/shorten");

        try
        {
            request.Method = "POST";
            request.ContentType = "application/json";
            request.Headers.Add("Cache-Control", "no-cache");
            request.Host = "api-ssl.bitly.com";
            request.Headers.Add("Authorization", "Bearer " + bitlyToken);
            
            using (var requestStream = request.GetRequestStream())
            {
                var postBuffer = Encoding.UTF8.GetBytes(post);
                requestStream.Write(postBuffer, 0, postBuffer.Length);
            }
            
            var response = await request.GetResponseAsync();
            
            using (var responseStream = response.GetResponseStream())
            {
                var responseReader = new StreamReader(responseStream, Encoding.UTF8);
                var json = responseReader.ReadToEnd();
                var shortenUrl = Regex.Match(json, @"""link"": ?""(?&lt;link&gt;[^,;]+)""").Groups["link"].Value;
                
                return shortenUrl;
            }
        }
        
        catch (WebException ex)
        {
            throw;
        }
    }
}</pre><textarea id="code019eff9809bc71c99599d9fbc4d6d3e7" name="code019eff9809bc71c99599d9fbc4d6d3e7" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
Of course, it was possible to make a lot simpler, but then it would be needed external references(Newtonsoft Json, RestSharp). So I decided to stop at this option.
</div>
]]></content:encoded>
</item>
<item>
<title>Bit.ly</title>
<link>https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a</link>
<pubDate>Mon, 06 May 2019 22:10:41 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/bitly/?ID=713dceee-07ae-4c21-8166-4be4d2b41e9a</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Anyone has a macro to grab a clipped URL and process it through a Bit.ly account (i.e. my Bit.ly account as opposed to the public one)
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Anyone has a macro to grab a clipped URL and process it through a Bit.ly account (i.e. my Bit.ly account as opposed to the public one)<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
</channel>
</rss>