Hack Forums
[.NET] I have a coding Idea. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] I have a coding Idea. (/showthread.php?tid=3607145)

Pages: Pages 1 2


I have a coding Idea. - Violation™ - Jul 8, 2013

Hello HF.
I just had a brainwave, i do not know if this exists or if it has potential.

Right, you know when you had a long link and your wanting to put it in a thread?

Well i usually go to goo.gl and shorten it.

What about if there was a app running in the background on your PC with every single thing you copy it turns it into a URL shortner?

So as soon as you copy and paste it would be shortened?

Is that possible, or has someone already done this?


* - Pichu - Jul 8, 2013

I guess you would start by listening to the keystrokes that are made (like a keylogger), and if control c is pressed, then it would automatically shorten the URL that is copied (if it is a URL) using goo.gl's api.


* - TheVBNetwork - Jul 8, 2013

I assume its impossible to shorten it instantly because the API's can vary between fast and slow depending on the server load. But its certainly possible.
Each link would take between 0.5 seconds being minimum and 3 seconds average to process. Thats just an estimate by the way.


* - Cornflower Blue இڿڰۣ-ڰۣ— - Jul 8, 2013

(Jul 8, 2013 02:11 PM)Pichu Wrote:  I guess you would start by listening to the keystrokes that are made (like a keylogger), and if control c is pressed, then it would automatically shorten the URL that is copied (if it is a URL) using goo.gl's api.

No... You can just run a loop and check the clipboard.


* - Washi - Jul 8, 2013

(Jul 8, 2013 02:16 PM)lhendrey4.5 Wrote:  No... You can just run a loop and check the clipboard.

Or even better, set a clipboard hook and check if it is an URL. Is much more efficient and less cpu expensive.


* - Cornflower Blue இڿڰۣ-ڰۣ— - Jul 8, 2013

(Jul 8, 2013 02:19 PM)TheUnknownProgrammer Wrote:  Or even better, set a clipboard hook and check if it is an URL. Is much more efficient and less cpu expensive.

I thought that was possible, just didn't say it because I was unsure and don't want to say false information.


* - ident - Jul 8, 2013

(Jul 8, 2013 02:16 PM)lhendrey4.5 Wrote:  No... You can just run a loop and check the clipboard.

No you would not do that you silly little retard.


* - Cornflower Blue இڿڰۣ-ڰۣ— - Jul 8, 2013

(Jul 8, 2013 02:23 PM)ident Wrote:  No you would not do that you silly little retard.

Why not? Please explain, and also explain why I am a "Silly little retard".


* - ident - Jul 8, 2013

If you need that explaining why you would not do that then i suggest you stop offering advice because you are a new programmer.


* - Cornflower Blue இڿڰۣ-ڰۣ— - Jul 8, 2013

(Jul 8, 2013 02:27 PM)ident Wrote:  If you need that explaining why you would not do that then i suggest you stop offering advice because you are a new programmer.

Been coding for 7, almost 8 years. Been making games for 3 years in pure code. Wouldn't say I'm new.


OP: Use a API hook: http://stackoverflow.com/questions/10606444/detect-clipboard-text-change-with-unicode-support-in-vb-net


* - Violation™ - Jul 8, 2013

I do not have a clue what everyone is talking about here, i have no clue about coding. I just thought maybe someone could do something with it?


* - ident - Jul 8, 2013

7 years and still offer terrible advice. Laugh worthy.


* - Cornflower Blue இڿڰۣ-ڰۣ— - Jul 8, 2013

(Jul 8, 2013 02:45 PM)ident Wrote:  7 years and still offer terrible advice. Laugh worthy.

Terrible advice is still better then the advice you give.


* - Mob Zombi - Jul 8, 2013

Good idea. If you ever decide to make the App/Pro let me know.


* - ·Evolved· - Jul 8, 2013

Seems like a cool idea. I think I'm going to make myself a version of this, and if anyone wants it, I'll release it here.