<?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>spechal.com &#187; Windows</title>
	<atom:link href="http://spechal.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://spechal.com</link>
	<description>[spesh-uhl]</description>
	<lastBuildDate>Thu, 21 Jan 2010 11:50:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python emulate mouse click in Windows</title>
		<link>http://spechal.com/2009/11/20/python-emulate-mouse-click-in-windows/</link>
		<comments>http://spechal.com/2009/11/20/python-emulate-mouse-click-in-windows/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 14:38:18 +0000</pubDate>
		<dc:creator>Spechal</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://spechal.com/?p=76</guid>
		<description><![CDATA[The following bit of code, which requires the win32api, simulates a mouse click using Python under the Windows OS.

import win32api, win32con

def click(x,y):
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0)

click(100, 100) # simulate mouse click at 100px, 100px

]]></description>
			<content:encoded><![CDATA[<p>The following bit of code, which requires the win32api, simulates a mouse click using Python under the Windows OS.</p>
<pre class="python" name="code">
import win32api, win32con

def click(x,y):
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0)

click(100, 100) # simulate mouse click at 100px, 100px
</pre>
]]></content:encoded>
			<wfw:commentRss>http://spechal.com/2009/11/20/python-emulate-mouse-click-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Batch FTP Routine</title>
		<link>http://spechal.com/2009/11/20/windows-batch-ftp-routine/</link>
		<comments>http://spechal.com/2009/11/20/windows-batch-ftp-routine/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 05:10:37 +0000</pubDate>
		<dc:creator>Spechal</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://spechal.com/?p=72</guid>
		<description><![CDATA[Here is some example code to connect to an FTP server and run the commands that follow.

@echo on

%windir%\system32\ftp.exe -n -s:"%~f0" server.com
goto done
user myusername
mypassword
cd /home/directory/public_html
ls -al
quit
:done
pause

The key to this working are the following:
The -n switch allows you to not be prompted for a username upon connection.
The -s:&#8221;%~f0&#8243; says to use the rest of the file as [...]]]></description>
			<content:encoded><![CDATA[<p>Here is some example code to connect to an FTP server and run the commands that follow.</p>
<pre class="vb" name="code">
@echo on

%windir%\system32\ftp.exe -n -s:"%~f0" server.com
goto done
user myusername
mypassword
cd /home/directory/public_html
ls -al
quit
:done
pause
</pre>
<p>The key to this working are the following:</p>
<p>The -n switch allows you to not be prompted for a username upon connection.<br />
The -s:&#8221;%~f0&#8243; says to use the rest of the file as the commands to execute<br />
The goto command is not a valid FTP command, so the FTP server ignores it.</p>
<p>So you have the script using the Windows FTP utility to connect to a server and a routine running your commands. You can even extend off of this.</p>
]]></content:encoded>
			<wfw:commentRss>http://spechal.com/2009/11/20/windows-batch-ftp-routine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python Print Screen and Save Image in Windows</title>
		<link>http://spechal.com/2009/11/20/python-print-screen-and-save-image-in-windows/</link>
		<comments>http://spechal.com/2009/11/20/python-print-screen-and-save-image-in-windows/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 00:07:14 +0000</pubDate>
		<dc:creator>Spechal</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://spechal.com/?p=70</guid>
		<description><![CDATA[So you need to do a &#8220;Print Screen&#8221; and save the image in the clipboard huh?  I had that exact need too.  Let me save you a few hours of trouble and tell you that the win32clipboard does not yet have the ability to return the contents of the clipboard when the contents are BITMAP, [...]]]></description>
			<content:encoded><![CDATA[<p>So you need to do a &#8220;Print Screen&#8221; and save the image in the clipboard huh?  I had that exact need too.  Let me save you a few hours of trouble and tell you that the win32clipboard does not yet have the ability to return the contents of the clipboard when the contents are BITMAP, despite the CF_BITMAP constant.</p>
<p>How do you do it then?  I was wondering the same thing.  Behold, PIL.  PIL, the Python Image Library, saved me from a massive headache.</p>
<p>Here is the code to take a screen shot and save it.  You will need the win32api and PIL libraries.</p>
<pre class="python" name="code">
import win32api, win32con, ImageGrab
win32api.keybd_event(win32con.VK_SNAPSHOT, 1)
im = ImageGrab.grabclipboard()
im.save(&quot;screenshot.jpg&quot;, &quot;JPEG&quot;)
</pre>
<p>Now wasn&#8217;t that easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://spechal.com/2009/11/20/python-print-screen-and-save-image-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7: Activation cracked yet again.</title>
		<link>http://spechal.com/2009/11/15/windows-7-activation-cracked-yet-again/</link>
		<comments>http://spechal.com/2009/11/15/windows-7-activation-cracked-yet-again/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 16:26:57 +0000</pubDate>
		<dc:creator>Spechal</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://spechal.com/?p=16</guid>
		<description><![CDATA[Yet another activation bypass crack has been released into the wild and is getting massive attention.  This one doesn&#8217;t even require a license key at all!
Read more at Gizmodo &#8230; http://gizmodo.com/5404781/windows-7-hacked-again-for-keyless-activation
]]></description>
			<content:encoded><![CDATA[<p>Yet another activation bypass crack has been released into the wild and is getting massive attention.  This one doesn&#8217;t even require a license key at all!</p>
<p>Read more at Gizmodo &#8230; http://gizmodo.com/5404781/windows-7-hacked-again-for-keyless-activation</p>
]]></content:encoded>
			<wfw:commentRss>http://spechal.com/2009/11/15/windows-7-activation-cracked-yet-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
