<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Prevent desktop lock or screensaver with PowerShell</title>
	<atom:link href="http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/</link>
	<description>Dmitry Sotnikov's view on PowerShell, PowerGUI and everything he sees around</description>
	<lastBuildDate>Mon, 30 Nov 2009 16:13:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5252</link>
		<dc:creator>Dmitry Sotnikov</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5252</guid>
		<description>My guess is that it will just stop at the border.

However, you can just make it move to the side and back by doing something like:


[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point((($Pos.X) + 1) , $Pos.Y)
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($Pos.X , $Pos.Y)</description>
		<content:encoded><![CDATA[<p>My guess is that it will just stop at the border.</p>
<p>However, you can just make it move to the side and back by doing something like:</p>
<p>[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point((($Pos.X) + 1) , $Pos.Y)<br />
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($Pos.X , $Pos.Y)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vics</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5251</link>
		<dc:creator>Vics</dc:creator>
		<pubDate>Tue, 08 Sep 2009 18:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5251</guid>
		<description>What happen when your program move the mouse enough times that the screen end, do yo get bips or what ?</description>
		<content:encoded><![CDATA[<p>What happen when your program move the mouse enough times that the screen end, do yo get bips or what ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5165</link>
		<dc:creator>Dmitry Sotnikov</dc:creator>
		<pubDate>Tue, 28 Jul 2009 15:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5165</guid>
		<description>Claus,

This is way-way better than what I originally used!

Learning something new every day. Thanks a lot for the tip!

Dmitry</description>
		<content:encoded><![CDATA[<p>Claus,</p>
<p>This is way-way better than what I originally used!</p>
<p>Learning something new every day. Thanks a lot for the tip!</p>
<p>Dmitry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claus Thude Nielsen</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5164</link>
		<dc:creator>Claus Thude Nielsen</dc:creator>
		<pubDate>Mon, 27 Jul 2009 10:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5164</guid>
		<description>I did something similar in AutoIt as well, just moving the mouse one &quot;pixel&quot;.

So I thought I would try the same in PowerShell, here is what I ended up with, it will move the mouse one &quot;Pixel&quot; to the right, which is hardly noticeable.

$Pos = [System.Windows.Forms.Cursor]::Position
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point((($Pos.X) + 1) , $Pos.Y)</description>
		<content:encoded><![CDATA[<p>I did something similar in AutoIt as well, just moving the mouse one &#8220;pixel&#8221;.</p>
<p>So I thought I would try the same in PowerShell, here is what I ended up with, it will move the mouse one &#8220;Pixel&#8221; to the right, which is hardly noticeable.</p>
<p>$Pos = [System.Windows.Forms.Cursor]::Position<br />
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point((($Pos.X) + 1) , $Pos.Y)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5157</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Wed, 22 Jul 2009 17:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5157</guid>
		<description>I did the same thing with AutoIt ... however I just had the mouse move 1 pixel.</description>
		<content:encoded><![CDATA[<p>I did the same thing with AutoIt &#8230; however I just had the mouse move 1 pixel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asf</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5101</link>
		<dc:creator>asf</dc:creator>
		<pubDate>Mon, 29 Jun 2009 22:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5101</guid>
		<description>talk about using the wrong tool for the job, why is powershell even involved, just some excuse not to use a WSH script (I know its tagged a hack and you are a powershell guy, but still) The proper way to do this would be to use the windows api (You can call the native api with autoit, so using a key pressing hack there is even worse)

And a &quot;.&quot;? why not toggle the start menu with ctrl+esc or something (print screen maybe if the scripting supports an escape code for that)?</description>
		<content:encoded><![CDATA[<p>talk about using the wrong tool for the job, why is powershell even involved, just some excuse not to use a WSH script (I know its tagged a hack and you are a powershell guy, but still) The proper way to do this would be to use the windows api (You can call the native api with autoit, so using a key pressing hack there is even worse)</p>
<p>And a &#8220;.&#8221;? why not toggle the start menu with ctrl+esc or something (print screen maybe if the scripting supports an escape code for that)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5100</link>
		<dc:creator>Dmitry Sotnikov</dc:creator>
		<pubDate>Mon, 29 Jun 2009 13:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5100</guid>
		<description>Yep, good comments. I love Jaykul&#039;s stuff but wanted something simple and self-contained so I ended up with the keys approach.</description>
		<content:encoded><![CDATA[<p>Yep, good comments. I love Jaykul&#8217;s stuff but wanted something simple and self-contained so I ended up with the keys approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stangm</title>
		<link>http://dmitrysotnikov.wordpress.com/2009/06/29/prevent-desktop-lock-or-screensaver-with-powershell/#comment-5099</link>
		<dc:creator>stangm</dc:creator>
		<pubDate>Mon, 29 Jun 2009 13:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=1348#comment-5099</guid>
		<description>Using Jaykul&#039;s WASP to send mouse clicks would help with the input buffer problem, and remove the need for launching notepad to accept the keys.

Actually I did this a while back with a simple autoit script that I compiled as an .exe.  So when I need this functionality I just run that program, and kill it when I&#039;m done.</description>
		<content:encoded><![CDATA[<p>Using Jaykul&#8217;s WASP to send mouse clicks would help with the input buffer problem, and remove the need for launching notepad to accept the keys.</p>
<p>Actually I did this a while back with a simple autoit script that I compiled as an .exe.  So when I need this functionality I just run that program, and kill it when I&#8217;m done.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
