<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace V5 Site Server v5.13.166 (http://www.squarespace.com) on Tue, 18 Jun 2013 22:57:00 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>One Hour Programming</title><link>http://www.onehourprogramming.com/blog/</link><description>Programming for the Rest of Us</description><lastBuildDate>Thu, 20 Sep 2012 06:59:16 +0000</lastBuildDate><copyright></copyright><language>en-US</language><generator>Squarespace V5 Site Server v5.13.166 (http://www.squarespace.com)</generator><item><title>Type Italian Accents (Beta)!</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Thu, 20 Sep 2012 06:17:01 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2012/9/19/type-italian-accents-beta.html</link><guid isPermaLink="false">633774:7370260:29163270</guid><description><![CDATA[<p>You can download it <a href="http://www.onehourprogramming.com/downloads/Italian%20Accents%20CapsLock.exe">here</a>. To learn more, just read on.</p>
<p>The key mappings are still a work in progress (please <a href="mailto:onehourprogrammer@gmail.com">email </a>me if you have any suggestions), but here they are:</p>
<p>To type <strong>grave </strong>marks (&agrave;, &egrave;, &igrave;, &ograve;, &ugrave;), hold down <strong>CapsLock </strong>and type the corresponding letter. To type them in <strong>uppercase </strong>(&Agrave;, &Egrave;, &Igrave;, &Ograve;, &Ugrave;), just hold down <strong>Shift </strong>as well.</p>
<p>To type <strong>acute </strong>marks (&eacute;, &iacute;, &oacute;, &uacute;), hold down the <strong>&#8217; key</strong> and type the corresponding letter. To type them in <strong>uppercase </strong>(&egrave;, &igrave;, &ograve;, &ugrave;), hold down the <strong>Shift </strong>key as well.<strong><br /></strong></p>
<p>To type the very rare <strong>circonflesso </strong>(&icirc;/&Icirc;), hit <strong>CapsLock+c</strong> to type the lowercase, and Shift+CapsLock+c to type the uppercase.</p>
<p>You can also type <strong>special symbols</strong> like &euro;, &laquo;&raquo;, &ordm;&ordf;. You can see the key mappings for these in the quick reference guide below.</p>
<p>Please note that in order to allow the CapsLock to be used, the program modifies how your CapsLock&nbsp; and &#8221; keys work a little. <strong>When the program is running, you need to hit your CapsLock key twice to turn CapsLock on or off, and the &#8221; key twice to type &#8220;.</strong></p>
<p>&nbsp;</p>
<p><span class="full-image-block ssNonEditable"><span><img src="http://www.onehourprogramming.com/storage/post-images/quick reference italian.png?__SQUARESPACE_CACHEVERSION=1348124296481" alt="" /></span></span></p>
<p>&nbsp;</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-29163270.xml</wfw:commentRss></item><item><title>Major Update to Accent Typing Programs</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Tue, 06 Sep 2011 01:01:34 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2011/9/5/major-update-to-accent-typing-programs.html</link><guid isPermaLink="false">633774:7370260:12742034</guid><description><![CDATA[<p><strong>To download the latest version, please click <a href="../../spanish-accents/">here</a>.</strong></p>
<p>Changes:</p>
<p>1. To toggle CapsLock on and off, simply double-tap the CapsLock key.</p>
<p>2. Due to <em>very</em> popular demand, there is now an option to install the program and have it startup automatically.</p>
<p>While these are the only two changes, this is a pretty major update, mostly due to the new startup feature. I&#8217;ve tested extensively on my own computer, but I would not be surprised if these changes introduce some new bugs for some users (most probably those with non-standard keyboard layouts).</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-12742034.xml</wfw:commentRss></item><item><title>Quick Update for Accent Programs</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Tue, 19 Apr 2011 02:42:31 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2011/4/18/quick-update-for-accent-programs.html</link><guid isPermaLink="false">633774:7370260:11198232</guid><description><![CDATA[<p><strong>To download the latest version, please click <a href="../../spanish-accents/">here</a>.</strong></p>
<p>This newest version of the programs now allows users to quickly enable/disable the program&#8217;s functionality by simply left-clicking on the program icon in the system tray. When the program is disabled, the CapsLock key&#8217;s normal functionality is restored and cannot be used to type accents.</p>
<p><span style="text-decoration: underline;"><strong>Download</strong></span></p>
<p><a href="http://www.onehourprogramming.com/downloads/Spanish%20Accents%20CapsLock.exe">Spanish Accents CapsLock.exe</a></p>
<p><a href="http://www.onehourprogramming.com/downloads/German%20Accents%20CapsLock.exe">German Accents CapsLock.exe</a></p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-11198232.xml</wfw:commentRss></item><item><title>New Versions of the Spanish and German Accents Programs (Again)</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Mon, 28 Feb 2011 19:18:22 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2011/2/28/new-versions-of-the-spanish-and-german-accents-programs-agai.html</link><guid isPermaLink="false">633774:7370260:10629489</guid><description><![CDATA[<p><strong>For the latest version, please click <a href="http://www.onehourprogramming.com/spanish-accents/">here</a>.</strong></p>
<p>Changes:</p>
<p><strong>1.Shift+CapsLock+letter to type capital accent marks.</strong></p>
<p>You can type capital accent marks now by typing Shift+CapsLock+letter. The old way (Tab+letter) still works though, so if that&#8217;s working for you, you can keep using that method.</p>
<p><strong>2.Turn on CapsLock by right-clicking the program icon.</strong></p>
<p>Last version, I disabled the CapsLock key to prevent CapsLock from being accidentally turned on when typing accents. Several users emailed me about this, so now you can turn on/off CapsLock by right-clicking the program icon. However, the actual CapsLock key will remain disabled. I think this is a good compromise so that users don&#8217;t accidentally activate CapsLock, but those who need to use the CapsLock key for some reason can still occasionally use it without too much hassle. However, if for some reason you need a hotkey to toggle CapsLock quickly, please <a href="http://www.onehourprogramming.com/contact-me/">email me</a> or leave a comment below, and I&#8217;ll write you a custom version.</p>
<p><strong>3. Type &euro; (the euro sign) by typing either CapsLock+4 or Shift+CapsLock+4.</strong></p>
<p><strong>4. Help File for Spanish version fixed.</strong></p>
<p>The old Spanish version&#8217;s help file was accidentally replaced by the German version.</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-10629489.xml</wfw:commentRss></item><item><title>New Versions of the Spanish and German Accents Programs</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Mon, 03 Jan 2011 11:08:43 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2011/1/3/new-versions-of-the-spanish-and-german-accents-programs.html</link><guid isPermaLink="false">633774:7370260:9912185</guid><description><![CDATA[<p><strong>For the newest version, please click <a href="http://www.onehourprogramming.com/spanish-accents/">here</a>.</strong></p>
<p>Some pretty big changes:</p>
<p>1. Merged US and UK versions. This means that it doesn&#8217;t matter what kind of keyboard you have any more.</p>
<p>2. The Caps Lock key will be disabled. This is to prevent accidentally turning on CapsLock when typing accents.</p>
<p>3. Instead of a hotkey, the help file can now be triggered by right clicking the tray icon and clicking &#8220;Help.&#8221;</p>
<p>4. Significantly improved compatability with other programs with hotkeys involving the Tab key.</p>
<p>5. Admin mode <em>shouldn&#8217;t</em> be necessary any more, but this is based on a limited sample of users.</p>
<p>6. To minimize confusion, I&#8217;m not linking to the source code here. You can look for it on the &#8220;Downloads&#8221; page.</p>
<p>7. Some minor stuff like no more underscores in the names and smaller file sizes due to compression.</p>
<p>Grab them while they&#8217;re hot!</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-9912185.xml</wfw:commentRss></item><item><title>Cheat at TypeRacer</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Sun, 31 Oct 2010 05:00:22 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/10/30/cheat-at-typeracer.html</link><guid isPermaLink="false">633774:7370260:9333005</guid><description><![CDATA[<p><strong>Executive Summary: This is a simple little program that lets you cheat at <a href="http://play.typeracer.com/">typeracer</a>.</strong></p>
<p><strong>Will this program work for other typing test websites?</strong><br />Well, the actual program itself should work for nearly everything because it simply types the characters one-by-one, just like a human would do it. However, the part where you copy the text using Firebug will likely not work for other typing test websites.</p>
<p><strong>Instructions</strong></p>
<ol>
<li>Run this program.</li>
<li>Install the <a href="http://getfirebug.com/">excellent &#8220;Firebug&#8221; extension</a> on your Firefox.</li>
<li>Enter a race on <a href="http://play.typeracer.com/">typeracer.com</a>.</li>
<li>Hit F12 to open up the Firebug window.</li>
<li>Make sure the Firebug window is open to the &#8220;HTML&#8221; tab.</li>
<li>Hit Ctrl+Shift+K to type in the search box.</li>
<li>Search for a phrase in the text like &#8220;farcical aquatic ceremony.&#8221; Hit Enter.</li>
<li>Click on the highlighted phrase that Firebug found.</li>
<li>Hit Ctrl+C to copy the text to your clipboard.</li>
<li>Click in the input box on typeracer.</li>
<li>Hit Ctrl+Shift+U.</li>
<li>Type the first word in the text (in green and underlined).</li>
<li>Hit Ctrl+V to paste the rest of the text.</li>
<li>Hit Enter.</li>
<li>Either get disqualified outright or asked to take a special typing test with a CAPTCHA to verify that you didn&#8217;t cheat.</li>
</ol>
<p><strong>Background:</strong> I created this in about five minutes (it&#8217;s four lines of code) after I was  defeated by a friend. I could have created a much more elaborate  program, one that does even more of the work for you, and to try to get  around the CAPTCHA test with OCR, but I didn&#8217;t really see the point; I&#8217;m  not so vain as to want to get my name in the list of high scores, and I  wasn&#8217;t even sure if the CAPTCHA could be beaten anyway. If you want to  do this, create your own damn program. This was only for a one-time  prank to blow away my friend with a blistering 270 WPM score with 100%  accuracy.﻿</p>
<p><strong>Screenshots</strong></p>
<p>Proof that I was able to cheat:</p>
<p><span class="full-image-block ssNonEditable"><span><img src="http://www.onehourprogramming.com/storage/314wpm.png?__SQUARESPACE_CACHEVERSION=1288501709111" alt="" /></span></span></p>
<p><span class="full-image-block ssNonEditable"><span><img src="http://www.onehourprogramming.com/storage/typingtest.png?__SQUARESPACE_CACHEVERSION=1288501774847" alt="" /></span></span></p>
<p><strong>Future Development</strong></p>
<p>As with all my programs, please <a href="http://www.onehourprogramming.com/contact-me/">contact me</a> to report a bug or suggest a new feature. This is especially important for this program because I consider this program to be &#8220;feature-complete&#8221; and probably won&#8217;t be working on it anymore unless someone emails me with a interesting suggestion.</p>
<p><strong>Download</strong></p>
<p><a href="http://www.onehourprogramming.com/downloads/TypeRacer%20Trickster.exe">TypeRacer Trickster.exe</a><strong><br /></strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-9333005.xml</wfw:commentRss></item><item><title>New UK versions of Spanish and German Accent Programs</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Thu, 14 Oct 2010 20:09:18 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/10/14/new-uk-versions-of-spanish-and-german-accent-programs.html</link><guid isPermaLink="false">633774:7370260:9186689</guid><description><![CDATA[<p><strong>For the latest version, please click <a href="../../spanish-accents/">here</a>.</strong></p>
<p>Update 1/3/11: There is now no separate UK version since I figured out how to workaround the problem. Click <a href="http://www.onehourprogramming.com/spanish-accents/">here </a>to learn more and to download the programs.</p>
<p>Update 10/24/10: Found that for certain applications, like Microsoft Office, you need to run my program in administrative mode. This only affects the UK versions because I had to use a different method of intercepting keystrokes for the UK keyboard layout. Unfortunately, there isn&#8217;t much I can do on my end to fix this problem; blame Microsoft for heavy-handed security &#8220;features.&#8221;</p>
<p>After several reports of users having some trouble using Spanish_Accents_CapsLock with UK keyboard layouts, I finally figured out the problem. The solution isn&#8217;t perfect though, as it requires disabling the normal CapsLock functionality (not a big deal), and also uses a &#8220;keyboard hook&#8221;, which may be falsely detected as a virus because many keyloggers use them. Hence, I will be publishing two versions, a normal one and a UK one, of all subsequent updates to this program and the German version.</p>
<p>&nbsp;</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-9186689.xml</wfw:commentRss></item><item><title>Update to German Accents Program</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Tue, 12 Oct 2010 10:33:18 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/10/12/update-to-german-accents-program.html</link><guid isPermaLink="false">633774:7370260:9165119</guid><description><![CDATA[<p><strong>To download the latest version, please click <a href="../../spanish-accents/">here</a>.</strong></p>
<p>Note: If you have a UK-layout keyboard, please use this <a href="http://www.onehourprogramming.com/blog/2010/10/14/new-uk-versions-of-spanish-and-german-accent-programs.html">UK version</a>.</p>
<p>After <a href="http://www.onehourprogramming.com/blog/2010/9/11/update-to-spanish-accents-program.html">updating the Spanish accents version</a>, I figured I&#8217;d do the same for the German version. Basically, this increases compatibility for people with keyboard layouts otehr than the standard US QWERTY keyboard. For example, if you have a French AZERTY keyboard, you may have had trouble using the old version.</p>
<p>What you need to know is that instead of using the ` key to type capital accents like &Auml; or &Uuml;, you now hold down the Tabs key instead. Also, if you ever forget the key combos, you can press Shift+Tab to see a quick refrence guide.</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-9165119.xml</wfw:commentRss></item><item><title>Update to Spanish Accents Program</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Sat, 11 Sep 2010 23:40:19 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/9/11/update-to-spanish-accents-program.html</link><guid isPermaLink="false">633774:7370260:8846877</guid><description><![CDATA[<p><strong>To download the latest version, please click <a href="../../spanish-accents/">here</a>.</strong></p>
<p>I&#8217;d originally wrote Spanish_Accents_CapsLock for people with standard, US, QWERTY keyboard layouts, but people with alternative keyboard layouts like the French AZERTY keyboard have been having problems because for them, the ` key is actually quite important to type in French.</p>
<p>Therefore, I rewrote the half of the program that dealt with typing capital accented letters like &Aacute; or &Eacute;. It now uses &#8220;Tab&#8221; instead of the ` key so it should be universally compatible with all keyboard layouts (what keyboard doesn&#8217;t have &#8220;tab&#8221;?). I&#8217;ve also added an internal help file that you can access by pressing Shift+Tab. It will popup a quick reference guide of all the various key combinations.</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8846877.xml</wfw:commentRss></item><item><title>Super Simple Button Masher</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Fri, 10 Sep 2010 06:42:44 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/9/9/super-simple-button-masher.html</link><guid isPermaLink="false">633774:7370260:8828335</guid><description><![CDATA[<p>Lately, I&#8217;ve been trying to take advantage of the last few days of my summer vacation by wasting ludicrous amounts of time with wild abandon, something that I doubt I&#8217;ll be able to do regularly when I start college in a few days. One of the chief ways I&#8217;ve been doing this is playing sublimely idiotic flash games. It was when my trigger finger started to get sore after the first few hours in a marathon gaming session that it&#8217;d be extremely easy to write a script to do the clicking for me.</p>
<p>This script is perfect for spray-and-pray, button-mashing type of games. Also, if you ever wondered how someone got that impossibly high score on <a href="http://www.kongregate.com/games/oddgoo/simple-button-masher-v1-2">games</a> <a href="http://www.kongregate.com/games/BlueTopazGames/press-h-button-mash">like</a> <a href="http://www.newgrounds.com/portal/view/398321">these</a>, it&#8217;s not because they have some kind of supernatural button-pressing power (or in the case of the last game, prodigious amounts of patience and free time), it&#8217;s because they cheated. After all, even <a href="http://en.wikipedia.org/wiki/Takahashi_Meijin">&#8220;Master Takahashi&#8221;</a>, whose entire claim to fame rests on how well he can button mash, could only reach 16 shots per second at his peak; this script does over 60 per second on my computer.</p>
<p>When I chose to call this &#8220;super simple&#8221;, I really meant it. This is not meant for more complicated games like WoW (ex. <a href="http://www.autohotkey.com/forum/viewtopic.php?t=50640">this fishing bot</a>) or Starcraft II. If you&#8217;re looking for these kinds of highly specific scripts, check <a href="http://www.autohotkey.com/forum/forum-2.html">the AutoHotkey forums</a> or better yet, <a href="http://www.autohotkey.com/docs/Tutorial.htm">learn to write one yourself</a>. I was so lazy that I didn&#8217;t include a GUI or even make a custom logo!</p>
<p>Anyway, without any further ado (oh wait&#8230;darn!), here&#8217;s the download links.</p>
<p><span style="text-decoration: underline;">Download</span></p>
<p><a href="http://www.onehourprogramming.com/downloads/Super Simple Button Masher.exe">Super Simple Button Masher.exe</a></p>
<p><a href="http://www.onehourprogramming.com/downloads/Super Simple Button Masher.ahk">Super Simple Button Masher.ahk</a></p>
<p>Notes:</p>
<p>Microsoft, for security purposes, doesn&#8217;t let the script work properly in explorer and IE windows. To get around this, run the program in administrator mode, or better yet, <a href="http://www.firefox.com">get a better browser</a>.</p>
<p>&nbsp;</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8828335.xml</wfw:commentRss></item><item><title>Typing Hanyu Pinyin (Chinese Romanization)</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Thu, 02 Sep 2010 03:36:13 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/9/1/typing-hanyu-pinyin-chinese-romanization.html</link><guid isPermaLink="false">633774:7370260:8748142</guid><description><![CDATA[<p>Hi guys,</p>
<p>Some of you guys have asked me to make a Mandarin Chinese version of Spanish_Accents_CapsLock. I&#8217;d be happy to, but <a href="http://www.foolsworkshop.com/ptou/index.html">someone&#8217;s already made a really clever little script</a> for that. I really like his implementation, which is very specific to how hanyu pinyin and Chinese works. You just add the tone number right after the word. So you could type &#8220;zhong1guo2                shi4 shi4jie4 zui4 hao3 de guo2jia1&#8221; and you get &#8220;zhōnggu&oacute; sh&igrave; sh&igrave;ji&egrave; zu&igrave; hǎo de gu&oacute;jiā&#8221;. To Chinese speakers this is very intuitive and much better than trying to come up with 4 different hotkeys for each vowel to account for each tone in Chinese.</p>
<p>The only thing that gives me pause in recommending it is that it&#8217;s an online solution. While the author&#8217;s kept the site running for years, I&#8217;m always wary of sites suddenly disappearing from the web. The author provides a download to the PHP script but in order to use it, you&#8217;d have to upload it to a server, but most people don&#8217;t have access to a spare server. For these people, I&#8217;ve made an offline version which CAN be run locally using any old browser. You can find the zip file <a href="http://www.onehourprogramming.com/downloads/pinyin_to_unicode.zip">here</a>. Extract it and open &#8220;index.html&#8221; in your browser.</p>
<p>All credit goes to to Konrad M. Lawson, who wrote the app, and those who helped him: James Dew, Helmer Aslaksen, C.P. Sobelman, and Phyllis Zhang.</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8748142.xml</wfw:commentRss></item><item><title>Media Player Classic Pauser</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Thu, 02 Sep 2010 03:15:24 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/9/1/media-player-classic-pauser.html</link><guid isPermaLink="false">633774:7370260:8748015</guid><description><![CDATA[<p>I use Media Player Classic (MPC) to listen to music while I use my computer. I was tired of having to stop typing, grope for my mouse, and hunting down the right MPC window (I normally have at least two or three running at a time). I wrote this simple script that pauses MPC when you press Ctrl+Shift+P even if another windows is active. The script is smart enough to only pause MPC windows that are actually playing, so if you have some other instances of MPC running (but paused) they don&#8217;t get unpaused. Press Ctrl+Shift+P again and the last MPC window to be paused will be unpaused. The script supports all versions of Media Player Classic, including the <a href="http://sourceforge.net/projects/guliverkli/">original version by Gabest</a> as well as the newer <a href="http://mpc-hc.sourceforge.net/">Home Cinema version</a>.</p>
<p><span style="text-decoration: underline;">Download</span></p>
<p><a href="http://www.onehourprogramming.com/downloads/pause_mpc.exe">pause_mpc.exe</a> (program)</p>
<p><a href="http://www.onehourprogramming.com/downloads/pause_mpc.ahk">pause_mpc.ahk</a> (source code)</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8748015.xml</wfw:commentRss></item><item><title>Fix Copy-and-Pasting in PDFs</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Wed, 01 Sep 2010 22:48:26 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/9/1/fix-copy-and-pasting-in-pdfs.html</link><guid isPermaLink="false">633774:7370260:8745517</guid><description><![CDATA[<p><strong>Update (5/2/11):</strong> <strong>Major update. See details below.</strong></p>
<p><strong>Update (11/21/2010): Improved version of the script. See details below.<br /></strong></p>
<p>Recently I&#8217;ve been reading a lot of ebooks in PDF format so it wasn&#8217;t long before I noticed that when you copy text in Adobe Reader (or any other kind of PDF reader like Foxit Reader), it copies the <a href="http://en.wikipedia.org/wiki/Hard_return">hard returns</a> so if you copy more than one line of text, each line of text is treated like its own paragraph.</p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">The Problem</span></strong></p>
<p><img src="file:///C:/Users/ANDREW%7E1/AppData/Local/Temp/moz-screenshot.png" alt="" /></p>
<p>This is what it looks like in Adobe Reader.</p>
<p><span class="full-image-block ssNonEditable"><img style="width: 500px;" src="http://www.onehourprogramming.com/storage/post-images/excerpt.png?__SQUARESPACE_CACHEVERSION=1283383548923" alt="" /></span></p>
<p>This is what happens when you copy that text and paste it into Microsoft Word.</p>
<p><span class="full-image-block ssNonEditable"><img style="width: 500px;" src="http://www.onehourprogramming.com/storage/post-images/paste_initial.png?__SQUARESPACE_CACHEVERSION=1283383610086" alt="" /></span></p>
<p>Still good, right? But what if I want to change the font size?</p>
<p><span class="full-image-block ssNonEditable"><img style="width: 500px;" src="http://www.onehourprogramming.com/storage/post-images/paste_resized.png?__SQUARESPACE_CACHEVERSION=1283383618409" alt="" /></span></p>
<p><span class="thumbnail-image-block ssNonEditable"><a href="javascript:showFullImage('/display/ShowImage?imageUrl=%2Fstorage%2Fthumbnails%2F7370259-8379627-thumbnail.jpg%3F__SQUARESPACE_CACHEVERSION%3D1283383385500',35,150);"><img style="width: 600px;" src="http://www.onehourprogramming.com/storage/thumbnails/7370259-8379772-thumbnail.jpg?__SQUARESPACE_CACHEVERSION=1283383435184" alt="" /></a></span></p>
<p>Here I changed the font size of the first two lines to 8-pt. Now you should see the problem quite clearly; in its infinite wisdom, Adobe Reader inserts <a href="http://en.wikipedia.org/wiki/Hard_return">hard returns</a> instead of <a href="http://en.wikipedia.org/wiki/Soft_return">soft returns</a>. In other words, Adobe Reader is essentially pressing &#8220;Enter/Return&#8221; after every line instead of automatically &#8220;<a href="http://en.wikipedia.org/wiki/Word_wrap">word wrapping</a>&#8221; the text to fit the window size. If this sounds absurdly idiotic, that&#8217;s because it is. At first I didn&#8217;t know that was the problem until I found <a href="http://beranger.org/post/381999462/epub-vs-pdf-mystery-solved-i-love-epub">this guy&#8217;s blog post</a> in a Google search. To give you an idea of how basic &#8220;word wrap&#8221; is, <em>Notepad </em>has it.</p>
<p>I know <a href="http://www.tek-tips.com/viewthread.cfm?qid=1503383&amp;page=11">I&#8217;m not the only one who&#8217;s had this problem</a>, and <a href="http://www.wordbanter.com/showpost.php?p=418368&amp;postcount=3">someone even wrote a Word macro</a>.  I haven&#8217;t tried the macro but it only works with Microsoft Word and it seems overly complicated (it uses well over 100 lines of  code and requires a detailed step-by-step installation and usage guide; my  script just works out of the box and only uses <span style="text-decoration: line-through;">five</span> nine lines of code (I added support for other PDF readers) [The latest version uses quite a few lines of code, but the vast majority of it is just to add some &#8220;nice-to-have&#8221; features, especially the automatic quote appending].</p>
<p><strong><span style="text-decoration: underline;">The Fix</span></strong></p>
<p><span style="text-decoration: underline;">Download</span></p>
<p><a href="http://www.onehourprogramming.com/downloads/PDF Copy-Paster.exe">PDF Copy-Paster.exe</a> (program)</p>
<p><span style="text-decoration: underline;">Program Notes</span></p>
<p>This script strips out all hard returns out of any copied text. Simply keep the program running and it will automatically take out all the hard returns in the background. The program only activates for PDF readers. Currently the program recognizes Adobe Reader (both the standalone program and the browser plugin versions), Foxit Reader, and Sumatra PDF as PDF readers. If your favorite PDF reader isn&#8217;t on here, <a href="http://www.onehourprogramming.com/contact-me/">shoot me a quick email</a> and I&#8217;ll add it for you.</p>
<p>[Note: The latest version (5/2/11) will close this popup for you automatically] Note that if you press ctrl+c twice quickly, Adobe Reader may pop up a message saying &#8220;There was an error while copying to the Clipboard. An internal error occured.&#8221; This is likely because Adobe Reader tried to modify the clipboard contents while they were being modified by the script (removing the hard returns). You do not need to copy the text again; everything should work fine.</p>
<p><strong>Update (5/2/11)</strong></p>
<p>I finally made a breakthrough and identified why sometimes the script would stop working and have to be restarted. Turns out it&#8217;s an issue with Windows, not anything to do with my code. Anyway, I&#8217;ve included a workaround as well as some new features such as an option to automatically add quotes to your copied selections (right click on tray icon to enable) and the ability to left-click on the tray icon to disable or enable the program. The program&#8217;s been significantly changed, but most of it is under the hood. The script should now have absolutely no bugs. Of course, if you think you&#8217;ve found me, please <a href="http://www.onehourprogramming.com/contact-me/">contact me</a>.</p>
<p><strong>Update (11/21/2010)</strong></p>
<p>I&#8217;ve been using this program a lot while writing some big research papers, so I returned to the script to make toggling it more elegant. Now, just press Ctrl+Shift+D to toggle whether the script is active or not. The script&#8217;s icon will reflect this change. You no <em>longer need the helper program</em> for this functionality.</p>
<p><strong><span style="text-decoration: line-through;">Update (9/2/2010)</span></strong></p>
<p><span style="text-decoration: line-through;">Helper Program</span></p>
<p><span style="text-decoration: line-through;">I wrote this little script for a friend who sometimes wanted to retain the hard returns and sometimes didn&#8217;t. It&#8217;s not exactly elegant, but it works. Press Ctrl+Shift+d to toggle PDF Copy-Paster. If it&#8217;s already running, it will be closed while if it isn&#8217;t running, this script will run it.</span></p>
<p><span style="text-decoration: line-through;">A few notes</span></p>
<p><span style="text-decoration: line-through;">1. This only works for the compiled version of PDF Copy-Paster (the .exe version). Although I am providing a source code version (.ahk), this version also only works with the compiled version of PDF Copy-Paster.</span></p>
<p><span style="text-decoration: line-through;">2. This companion script needs to be placed in the same directory as PDF Copy-Paster.exe.</span></p>
<p><span style="text-decoration: line-through;">3. I was too lazy to make an icon for this, so it uses the default AHK icons.</span></p>
<p><span style="text-decoration: line-through;">Helper Program Download</span></p>
<p><span style="text-decoration: line-through;"><a href="http://www.onehourprogramming.com/downloads/PDF Copy-Paster Toggler.exe">PDF Copy-Paster Toggler.exe</a> (program)</span></p>
<p><span style="text-decoration: line-through;"><a href="http://www.onehourprogramming.com/downloads/PDF Copy-Paster Toggler.ahk">PDF Copy-Paster Toggler.ahk</a> (source code)</span></p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8745517.xml</wfw:commentRss></item><item><title>Type ©, ®, and ™ easily.</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Mon, 23 Aug 2010 01:31:38 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/8/22/type-and-easily.html</link><guid isPermaLink="false">633774:7370260:8647071</guid><description><![CDATA[<p>In the same vein as my Spanish_Accents_CapsLock program, this app lets you type common commercial characters by holding down the Caps Lock key.</p>
<p>Hold down Caps Lock and press c to type &copy;.</p>
<p>Hold down Caps Lock and press r to type &reg;.</p>
<p>Hold down Caps Lock and press t to type &trade;.</p>
<p>If you have any suggestions on more common commercial characters for me to include, please <a href="http://www.onehourprogramming.com/contact-me/">let me know</a>. Even if it&#8217;s something completely specific to you, chances are I&#8217;ll write a custom version for you to use!</p>
<p><span style="text-decoration: underline;">Download</span></p>
<p><a href="http://www.onehourprogramming.com/downloads/Commercial_CapsLock.exe">Commercial_CapsLock.exe</a> (program)</p>
<p><a href="http://www.onehourprogramming.com/downloads/Commercial_CapsLock.ahk">Commercial_CapsLock.ahk</a> (source code)</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8647071.xml</wfw:commentRss></item><item><title>Adjust your volume with your mousewheel and the Win key</title><dc:creator>One Hour Programmer</dc:creator><pubDate>Mon, 23 Aug 2010 01:21:23 +0000</pubDate><link>http://www.onehourprogramming.com/blog/2010/8/22/adjust-your-volume-with-your-mousewheel-and-the-win-key.html</link><guid isPermaLink="false">633774:7370260:8647033</guid><description><![CDATA[<p>When I first thought of this, I felt like I was a genius, but then I stumbled upon a number of similiar apps. Still, I decided to share this one because it fixes a little compatability problem the other apps had with Vista and Win7.</p>
<p>This app couldn&#8217;t be simpler. It&#8217;s two lines of code, and all you need to do is scroll your mousewheel up or down while holding down the Win key (the one with the Windows logo on it) to adjust the volume.</p>
<p><span style="text-decoration: underline;">Download</span></p>
<p><a href="http://www.onehourprogramming.com/downloads/winscroll%20volume%20control.exe">Win+Scroll Volume Control.exe</a> (program)</p>
<p><a href="http://www.onehourprogramming.com/downloads/winscroll%20volume%20control.ahk">Win+Scroll Volume Control.ahk</a> (source code)</p>
]]></description><wfw:commentRss>http://www.onehourprogramming.com/blog/rss-comments-entry-8647033.xml</wfw:commentRss></item></channel></rss>