<?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/"
	>

<channel>
	<title>Clarion Edge &#187; Windows</title>
	<atom:link href="http://www.clarionedge.com/category/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clarionedge.com</link>
	<description>Get an Edge with Clarion!</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:13:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fun windows trick #42</title>
		<link>http://www.clarionedge.com/windows/fun-windows-trick-42.html</link>
		<comments>http://www.clarionedge.com/windows/fun-windows-trick-42.html#comments</comments>
		<pubDate>Tue, 29 Dec 2009 10:42:18 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/windows/fun-windows-trick-42.html</guid>
		<description><![CDATA[&#160;
This is something I discovered by accident a while ago, maybe you already know about it… 
Use the mouse to move a window around and then, while you still have the left mouse button held [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>This is something I discovered by accident a while ago, maybe you already know about it… </p>
<p>Use the mouse to move a window around and then, while you still have the left mouse button held down, press the escape key. The window will be returned to its original position!</p>
<p>Ok, so it isn’t very useful but it was new to me <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/fun-windows-trick-42.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>v5.3.1 of Textpad is out</title>
		<link>http://www.clarionedge.com/windows/tools/v531-of-textpad-is-out.html</link>
		<comments>http://www.clarionedge.com/windows/tools/v531-of-textpad-is-out.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 10:04:52 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=259</guid>
		<description><![CDATA[This is just an incremental update on v5.3.0 but if you are not already on v5.3 then I think it is worth upgrading. Having the option to substitute TextPad for Notepad baked into the program [...]]]></description>
			<content:encoded><![CDATA[<p>This is just an incremental update on v5.3.0 but if you are not already on v5.3 then I think it is worth upgrading. Having the <strong>option to substitute TextPad for Notepad</strong> baked into the program alone is worth it!</p>
<p>Textpad, a great general purpose editor &#8211; <a href="http://www.textpad.com/download/index.html" target="_blank">http://www.textpad.com/download/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/tools/v531-of-textpad-is-out.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally a decent looking clipboard manager</title>
		<link>http://www.clarionedge.com/windows/development/finally-a-decent-looking-clipboard-manager.html</link>
		<comments>http://www.clarionedge.com/windows/development/finally-a-decent-looking-clipboard-manager.html#comments</comments>
		<pubDate>Tue, 13 Oct 2009 17:08:57 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=256</guid>
		<description><![CDATA[It has been ages since I have had a chance to post here so lets start of with a quick one.
I have just started using this and so far it looks really good and appears [...]]]></description>
			<content:encoded><![CDATA[<p>It has been ages since I have had a chance to post here so lets start of with a quick one.</p>
<p>I have just started using this and so far it looks really good and appears to still be in active dev &#8211; <a href="http://ditto-cp.sourceforge.net/" target="_blank">http://ditto-cp.sourceforge.net/</a></p>
<p>Yay!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/development/finally-a-decent-looking-clipboard-manager.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista File Associations &#8211; Follow up</title>
		<link>http://www.clarionedge.com/windows/vista/vista-file-associations-follow-up.html</link>
		<comments>http://www.clarionedge.com/windows/vista/vista-file-associations-follow-up.html#comments</comments>
		<pubDate>Mon, 16 Mar 2009 23:18:13 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=220</guid>
		<description><![CDATA[Early last year I posted an article about changing icons and file associations in Vista. The bad news is that nothing seems to have changed natively in this regard for Vista. Perhaps things will be [...]]]></description>
			<content:encoded><![CDATA[<p>Early last year I posted an <a href="http://www.clarionedge.com/windows/vista/vista-file-associations.html" target="_blank">article</a> about changing icons and file associations in Vista. The bad news is that nothing seems to have changed natively in this regard for Vista. Perhaps things will be different in Window7&#8230; who knows.</p>
<p>The good news though is that I have since found a much nicer program for assigning your own icons:</p>
<h1>Types</h1>
<p>“Types” is a free and lightweight utility for Windows  that allows you to edit program associations, icons, context menus and other properties of various file types displayed in Explorer.</p>
<p><a href="http://types.sourceforge.net/" target="_blank">http://types.sourceforge.net/</a></p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/types.png"><img class="alignnone size-medium wp-image-221" title="types" src="http://www.clarionedge.com/wp-content/uploads/types-246x152.png" alt="types" width="246" height="152" /></a></p>
<p>When I first tried it out way back in the beginning of last year I had a few difficulties but when I recently setup a new development VM and had a need once again to customize my clarion file associations I gave it another go. This time round they have made great improvements in stability and it performed beautifully and did what it said it would. No more, no less.</p>
<p>Hopefully someone will find this useful too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/vista/vista-file-associations-follow-up.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>#RUN parameter limits and hiding command windows</title>
		<link>http://www.clarionedge.com/windows/tools/run-and-command-windows.html</link>
		<comments>http://www.clarionedge.com/windows/tools/run-and-command-windows.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 20:23:23 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=192</guid>
		<description><![CDATA[Recently I have been doing a fair amount of work trying to automate parts of the development process, in particular the version control aspects. I ran into what appeared to be limitations in the length [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have been doing a fair amount of work trying to automate parts of the development process, in particular the version control aspects. I ran into what appeared to be limitations in the length of parameters accepted by the Clarion templates #RUN statement. Searching the newsgroups there were a few comments from people having similar issues and the symptoms were seemed a little sporadic. I decided that the safest way was to write the commands out to a temporary batch file and use #RUN to just call that.<br />
<span id="more-192"></span><br />
This works great and has the added advantage of being able to execute, obviously, batches of commands in one go.  The thing that is annoying about this is that you <em>will</em> get the command window popping up when the command is run. Often this is fine, especially for long tasks where it is nice to see the progress but sometimes it is annoying and it would to be nice to be able to hide the window.</p>
<p>There are a few ways to do this but essentially they all seem to revolve around the <a href="http://msdn.microsoft.com/en-us/library/ms682425.aspx" target="_blank">CreateProcess</a> api Function.</p>
<ol>
<li>Write a helper DLL that wraps the CreateProcess function and can be easily called by the templates.</li>
<li>Find something that already does this so I don&#8217;t have to.</li>
</ol>
<p>If you want to go for option 1 in clarion you might like to look into <a href="http://www.berthume.com/powerrun.htm" target="_blank">PowerRun</a> from Berthume Software which is available for free download. And of course you can dig right in and make the function call directly.  However, if there is something suitable around I much prefer to use that.</p>
<p>After a quick search I found these two options:</p>
<ul>
<li>CHP.EXE (Create Hidden Process) &#8211; <a href="http://www.commandline.co.uk/chp/" target="_blank">http://www.commandline.co.uk/chp/</a></li>
<li>hidden Start (hstart.exe) &#8211; <a href="http://www.ntwind.com/software/utilities/hstart.html" target="_blank">http://www.ntwind.com/software/utilities/hstart.html</a></li>
</ul>
<p>I tried CHP first and it certainly does what it says it will but I found I wanted the option to wait until the spawned task was finished. In comes hstart. Hstart is pretty awesome. Lots of options and it also, funnily enough, does what it says it will&#8230;</p>
<p style="text-align: center;"><a href="http://www.clarionedge.com/wp-content/uploads/hstart_help21.png"><img class="size-medium wp-image-196 aligncenter" title="hstart_help21" src="http://www.clarionedge.com/wp-content/uploads/hstart_help21-242x246.png" alt="hstart_help21" width="242" height="246" /></a></p>
<p>For anyone interested, this is the template code I ended up with for calling hidden commands in a clarion template:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="clarion" style="font-family:monospace;">#GROUP(%RunCommandHidden, %<span style="color: #000080;">Command</span>, %TestMode=%FALSE),<span style="color: #000080;">AUTO</span>
<span style="">#!</span>
<span style="color: #800080;">#DECLARE</span>(%BatchFileName)
<span style="">#! We need to write the command out to a batch file for execution because</span>
<span style="">#! the #RUN command seems to have issues with the length of the command!</span>
<span style="color: #800080;">#SET</span>(%BatchFileName, <span style="color: #008000;">'run.bat')
</span><span style="color: #800080;">#SET</span>(%BatchFileName, FullName(%BatchFileName, 2))
#CREATE(%BatchFileName)
%<span style="color: #000080;">Command</span>
#CLOSE(%BatchFileName)
<span style="">#! Now we call the batch file for execution</span>
<span style="">#! using cph.exe for &quot;Create Hidden Process&quot;</span>
<span style="color: #800080;">#IF</span>(%TestMode=%FALSE)
  #RUN(<span style="color: #008000;">'hstart.exe /NOCONSOLE /WAIT ' &amp; %BatchFileName),WAIT
</span><span style="color: #800080;">#ELSE</span>
  #RUN(<span style="color: #008000;">'hstart.exe /WAIT ' &amp; %BatchFileName),WAIT
</span><span style="color: #800080;">#ENDIF</span>
#REMOVE(%BatchFileName)
#RETURN</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/tools/run-and-command-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sometimes Vista UAC doesn&#8217;t popup&#8230;</title>
		<link>http://www.clarionedge.com/windows/vista/sometimes-vista-uac-doesnt-popup.html</link>
		<comments>http://www.clarionedge.com/windows/vista/sometimes-vista-uac-doesnt-popup.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 15:56:17 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=161</guid>
		<description><![CDATA[Having recently re-installed my main development machine with Vista Ultimate 64bit I decided to try running with UAC enabled. Previously I was using Vista Business 32 bit and I was using it as my main [...]]]></description>
			<content:encoded><![CDATA[<p>Having recently re-installed my main development machine with Vista Ultimate 64bit I decided to try running with UAC enabled. Previously I was using Vista Business 32 bit and I was using it as my main development platform for Clarion and had always run with UAC turned off.</p>
<p>With the move to 64bit the poor old Clarion IDE, which is still a 16bit application (!), was obviously not going to be running directly from the desktop. This is fine, I had long since moved all my development into virtual machine for just this reason. I figured this was a good time as any to try out the UAC and see if it really was as annoying as people have been saying.</p>
<p>Anyway, being that most of my development was going in inside virtual machines (Vista 32bit, UAC off) I really found very little issue with UAC. Occasionally I would trigger it off when adjusting various parts of the system but with a little ping and a flash (that bit sucks&#8230;) I am on my way again.</p>
<p>However, every so often I would find that the application I attempted to launch would simply freeze completly just before the expect UAC prompt would appear. Very annoying, and utterly un-fixable. Even from the Task-Manager it was imposible to kill the task!</p>
<p>I am still not sure what was the cause of this. It didn&#8217;t happen when I first installed the system and it has not happened in a while now so I suspect either a bug fix has been applied from Microsoft or a program I had installed was somehow interfering.</p>
<p>There is a workaround though&#8230; if you ever find yourself with the above symptoms try this: Hit Ctrl+Alt+Delete and then immediately press the Escape key. It seems that consent.exe (the one responsible for UAC) fails to gain focus occasionally. Those actions will bring it back to the foreground and you can continue along your way.</p>
<p>I originally found this helpful hint in the comments of <a href="http://geekswithblogs.net/sdorman/archive/2006/06/17/82204.aspx">this article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/vista/sometimes-vista-uac-doesnt-popup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Desktop Manager</title>
		<link>http://www.clarionedge.com/windows/tools/remote-desktop-manager.html</link>
		<comments>http://www.clarionedge.com/windows/tools/remote-desktop-manager.html#comments</comments>
		<pubDate>Thu, 17 Jul 2008 17:09:41 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=10</guid>
		<description><![CDATA[For anyone who finds themselves managing many different remote clients. Support for Microsoft Remote Desktop and VNC.
I have been using this great utility for some time now. It has become such a part of my [...]]]></description>
			<content:encoded><![CDATA[<p>For anyone who finds themselves managing many different remote clients. Support for Microsoft Remote Desktop and VNC.</p>
<p>I have been using this great utility for some time now. It has become such a part of my day to day use that I often forget about it. Simple, unobtrusive and gets the job done.</p>
<p>Well worth a closer look: <a href="http://www.devolutions.net/products/remotedesktopmanager.aspx" target="_blank"><span class="Titre"><strong><em>Remote Desktop Manager </em></strong></span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/tools/remote-desktop-manager.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista File Associations</title>
		<link>http://www.clarionedge.com/windows/vista/vista-file-associations.html</link>
		<comments>http://www.clarionedge.com/windows/vista/vista-file-associations.html#comments</comments>
		<pubDate>Tue, 15 Jan 2008 17:01:06 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=3</guid>
		<description><![CDATA[One of the first things I like doing on a new development machine is setting file associations for Clarion APP and DCT files.
By doing this I can have specific icon and type description for the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the first things I like doing on a new development machine is setting file associations for Clarion APP and DCT files.</p>
<p>By doing this I can have specific icon and type description for the file extension making it much easier to see these files in amongst all the other junk. Once these are setup and with windows explorer in detail view sorted by type the clarion app and dct files would be nice and visible at the top of the list.</p>
<p>Just like this:<br />
<a href="http://www.clarionedge.com/wp-content/uploads/fileassociations_clarion.png"><img class="alignnone size-thumbnail wp-image-65" title="fileassociations_clarion" src="http://www.clarionedge.com/wp-content/uploads/fileassociations_clarion-109x109.png" alt="fileassociations_clarion" width="109" height="109" /></a><br />
But hang on, how the heck do you do that in Vista?<br />
<span id="more-3"></span><br />
Prompted today by a comment on CW-Talk I looked into this again and finally found a solution.</p>
<p>In Vista they have changed the GUI for working with file association. The word I would apply here would be &#8220;obfuscated&#8221;. Most functionality is still there just in a few different places with a few special quirks.</p>
<p>&#8220;Associate a file type or protocol with a program&#8221;</p>
<p>Control panel &#8211;&gt; Default Programs &#8211;&gt;  Associate a file type or protocol with a program</p>
<p>Sounds like just the thing right? Wrong. You can muck around with associations a little but only if they are already available. No way to add a new one here, sorry!<br />
Creating a new file association with Vista</p>
<p>You can do this by clicking on a not-yet-associated file which will launch the &#8220;Windows cannot open this file&#8221; dialog box.<br />
Once you do that you will be asked:</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/fileassociations1.png"><img class="alignnone size-thumbnail wp-image-67" title="fileassociations1" src="http://www.clarionedge.com/wp-content/uploads/fileassociations1-109x109.png" alt="fileassociations1" width="109" height="109" /></a> If you select the &#8220;Select a program&#8221; options you then you then get something like this: <a href="http://www.clarionedge.com/wp-content/uploads/fileassociations2.png"><img class="alignnone size-thumbnail wp-image-69" title="fileassociations2" src="http://www.clarionedge.com/wp-content/uploads/fileassociations2-109x109.png" alt="fileassociations2" width="109" height="109" /></a><br />
Whats missing?</p>
<p>* Although you can &#8220;Type a description&#8230;&#8221; here there is no easy way to edit that description later.<br />
* There is no way to set the icon for this file association.<br />
* It is not possible to remove an association once created.</p>
<p>But it is possible with a little hunting.</p>
<p>There are two methods I have found and each have their merits and drawbacks:<br />
1. Edit the registry.</p>
<p>This KB article seems like it would still apply to vista &#8211; &#8220;Changes in File Types and File Association Features in Windows 2000 and Windows Server 2003&#8243;</p>
<p>You can also specify icons and type desriptions via the registry manually if you really want.<br />
2. Find a program to do the registry hacks for you.</p>
<p>Unfotunatly there does not seem to be many around. One I found is &#8220;File Type Doctor&#8221; in Creative Element Power Tools.</p>
<p>Its a 45 day trial and has a few odd quirks but seems to do the trick. Just watch out, the list of extensions in the File Type Doctor seems to have a display problem. If you navigate the list with the up/down keys it seems to work OK. Also, be aware that changes you make are real time. There is no Save/Cancel for this editor!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/vista/vista-file-associations.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows SDK</title>
		<link>http://www.clarionedge.com/windows/development/windows-sdk.html</link>
		<comments>http://www.clarionedge.com/windows/development/windows-sdk.html#comments</comments>
		<pubDate>Mon, 17 Dec 2007 18:19:41 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=15</guid>
		<description><![CDATA[Just a quick note about windows SDK&#8217;s.
I have been doing some mucking around recently with graphics and things in Clarion (more samples coming soon!) and have been having a hard time wading through the MSDN [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note about windows SDK&#8217;s.</p>
<p>I have been doing some mucking around recently with graphics and things in Clarion (more samples coming soon!) and have been having a hard time wading through the MSDN documentation. I kept wishing I had the windows header files so I could just search for structures and things directly (its so sad we cannot just include them directly into clarion).</p>
<p>Well duh, just dawned on me that it is possible to download the <a href="http://www.microsoft.com/downloads/results.aspx?pocId=&amp;freetext=windows%20SDK&amp;DisplayLang=en" target="_blank">Windows SDK</a> which have all these header files included&#8230; oh man, no idea why I didn&#8217;t do this before.</p>
<p>The SDK for Vista is around a Gig download but no worries, fun shall ensue!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/development/windows-sdk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Icon editor</title>
		<link>http://www.clarionedge.com/windows/tools/free-icon-editor.html</link>
		<comments>http://www.clarionedge.com/windows/tools/free-icon-editor.html#comments</comments>
		<pubDate>Sat, 01 Dec 2007 17:11:09 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=12</guid>
		<description><![CDATA[Just came across a new icon editor the today called IcoFX and initial impressions are pretty good!
Well, for a start it works on vista which the last program I was using didn&#8217;t (SnIco). I kinda [...]]]></description>
			<content:encoded><![CDATA[<p>Just came across a new icon editor the today called <a href="http://icofx.xhost.ro" target="_blank">IcoFX</a> and initial impressions are pretty good!</p>
<p>Well, for a start it works on vista which the last program I was using didn&#8217;t (<a href="http://www.snidesoft.eu/" target="_blank">SnIco</a>). I kinda liked SnIco, it was simple and did the job but unfortunately it had a few quirks and lost my interest. It also seems to have been not updated for some time.</p>
<p>So far it looks like IcoFX is going to fill this void very nicely. Lots of <a href="http://icofx.xhost.ro/features.html" target="_blank">features</a> it seem but they don&#8217;t get in your way.</p>
<p>And most importantly, its free!</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/icofx2.jpg"><img class="alignnone size-thumbnail wp-image-74" title="icofx2" src="http://www.clarionedge.com/wp-content/uploads/icofx2-109x109.jpg" alt="icofx2" width="109" height="109" /></a></p>
<p>Note: We are not affiliated with this program, just thought it was cool.</p>
<p><span class="attention">Update (24-12-2007) &#8211; It seems that the IcoFX site is down at the moment for whatever reason. If you have a look on your favourite search engine you should be able to find a link to a download elsewhere. Try <a href="http://www.google.com/search?q=icofx&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-GB:official&amp;client=firefox-a" target="_blank">google</a> for example. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/tools/free-icon-editor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
