<?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>david winter &#187; windows</title>
	<atom:link href="http://davidwinter.me.uk/articles/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidwinter.me.uk</link>
	<description>you were expecting someone else?</description>
	<lastBuildDate>Mon, 28 Jun 2010 20:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Killing a program using a batch file in Windows</title>
		<link>http://davidwinter.me.uk/articles/2008/05/15/killing-a-program-using-a-batch-file-in-windows/</link>
		<comments>http://davidwinter.me.uk/articles/2008/05/15/killing-a-program-using-a-batch-file-in-windows/#comments</comments>
		<pubDate>Thu, 15 May 2008 09:59:31 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=93</guid>
		<description><![CDATA[Having got my keyboard shortcut working to launch my batch file, next was to actually make it quit the emulator program when invoked. @echo off taskkill /F /im Fusion.exe This is basically the command prompt version of CTRL + ALT + DEL. /im stands for &#8216;Image Name&#8217;, which is basically the program executable, and is [...]]]></description>
			<content:encoded><![CDATA[<p>Having got my <a href="/articles/2008/05/15/using-shortcut-keys-in-windows/">keyboard shortcut working</a> to launch my batch file, next was to actually make it quit the emulator program when invoked.</p>

<pre><code>@echo off
taskkill /F /im Fusion.exe
</code></pre>

<p>This is basically the command prompt version of <kbd>CTRL + ALT + DEL</kbd>. <code>/im</code> stands for &#8216;Image Name&#8217;, which is basically the program executable, and is the same as what you&#8217;d see in the &#8216;Task Manager&#8217; window. <code>/F</code> just forces the program to close.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/05/15/killing-a-program-using-a-batch-file-in-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using shortcut keys in Windows</title>
		<link>http://davidwinter.me.uk/articles/2008/05/15/using-shortcut-keys-in-windows/</link>
		<comments>http://davidwinter.me.uk/articles/2008/05/15/using-shortcut-keys-in-windows/#comments</comments>
		<pubDate>Thu, 15 May 2008 09:45:58 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=92</guid>
		<description><![CDATA[You won&#8217;t find me writing about Windows too much on here I promise. I&#8217;ve been forced to use Windows XP on my arcade machine due to the lack of a decent Sega Mega Drive (Genesis for anyone in the US) emulator on Linux. That has caused other problems though, because the Fusion emulator doesn&#8217;t allow [...]]]></description>
			<content:encoded><![CDATA[<p>You won&#8217;t find me writing about Windows too much on here I promise. I&#8217;ve been forced to use Windows XP on my arcade machine due to the lack of a decent Sega Mega Drive (Genesis for anyone in the US) emulator on Linux. That has caused other problems though, because the <a href="http://www.emulator-zone.com/doc.php/genesis/fusion.html">Fusion emulator</a> doesn&#8217;t allow me to specify a keyboard combination to quit the program via the keyboard. You may be wondering, &#8216;Why not just hit <kbd>Alt + F4</kbd>?&#8217; Because I&#8217;m hoping not to have a keyboard plugged in all the time, and just use the joystick and buttons (which are mapped to specific keyboard keys).</p>

<p>I was going to try and be clever and modify my Python program to intercept a global hot key combination, and then kill the emulator, but thankfully stumbled across the idea of using a Windows shortcut with a shortcut key (the terminology gets quite confusing). The shortcut would be linked to a batch file that would quit the program.</p>

<p>To cut a long story short (which involved Googling&#8230; a lot), shortcut keys can only be used when the shortcut is <a href="http://support.microsoft.com/kb/134552/en-us">located in either the Start menu or on the Desktop</a>.</p>

<p>When I launch the shortcut when the emulator isn&#8217;t running, it opens instantly. I&#8217;ve noticed however, roughly a 15 second delay for the shortcut to invoke if the emulator is running. I&#8217;m guessing that this may be something to do with the event buffer in Windows, and the emulator taking up a chunk of the CPU. Though I&#8217;m just guessing. If anyone knows a fix for that, I&#8217;d love to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/05/15/using-shortcut-keys-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
