<?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>Jozef Chúťka&#039;s blog &#187; Desktop</title>
	<atom:link href="http://blog.yoz.sk/tag/desktop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Remote Desktop With Remotair</title>
		<link>http://blog.yoz.sk/2011/01/remote-desktop-with-remotair/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remote-desktop-with-remotair</link>
		<comments>http://blog.yoz.sk/2011/01/remote-desktop-with-remotair/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 10:31:09 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[NativeProcess]]></category>
		<category><![CDATA[Remotair]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=2706</guid>
		<description><![CDATA[A day ago I published a youtube video about remote Windows control from an Android device. I will try to clarify the process about how it is done. What you need to make this work for you is (1.) an Android device with Remotair application v 0.1.9 (or higher) installed, (2.) Windows with Remotair desktop [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.yoz.sk/wp-content/uploads/remotairremotedesktop.jpg" alt="" title="remotairremotedesktop" width="200" height="100" class="alignleft size-full wp-image-2878" /></p>
<p>A day ago I published a <a href="http://www.youtube.com/watch?v=ZfhcvmMEE5U">youtube video</a> about remote Windows control from an Android device. I will try to clarify the process about how it is done. What you need to make this work for you is (1.) an <strong>Android</strong> device with <a href="http://remotair.yoz.sk"><strong>Remotair</strong></a> application v 0.1.9 (or higher) installed, (2.) Windows with <a href="http://remotair.yoz.sk"><strong>Remotair</strong></a> desktop .exe air application v 0.1.3 (or higher) and (3.) some capture-desktop softwer, <a href="http://www.splitmedialabs.com/vh-video-sdk/vh-screen-capture"><strong>VH Screen Capture</strong></a> works good.</p>
<p><span id="more-2706"></span></p>
<p>First, download and install <a href="http://www.splitmedialabs.com/vh-video-sdk/vh-screen-capture">VH Screen Capture</a>, run &#8220;Configure VHScrCap&#8221; and &#8220;Create new one&#8221;, configure the instance something like this:</p>
<p><img src="http://blog.yoz.sk/wp-content/uploads/vhssettingscapture.jpg" alt="" title="vhssettingscapture" width="514" height="201" class="alignleft size-full wp-image-2957" /></p>
<p><img src="http://blog.yoz.sk/wp-content/uploads/vhs.jpg" alt="" title="vhs" width="514" height="199" class="alignnone size-full wp-image-2867" /></p>
<p>Specify output size to match your Android device resolution, make sure to show mouse and also do not forget to define some magnitude (moves the recording screen accordingly when cursor reaches the current recording boundaries or is near). Make sure your new desktop &#8220;webcamera&#8221; is visible in flash player / air, I usually check available cameras using <a href="http://onstream.yoz.sk/">onStream</a>.</p>
<p>Install latest Remotair Android application on your device from Android market (its free), make sure you are connected to the internet, run it and click the big button to connect. You will obtain a channel ID</p>
<p>Download and install Remotair desktop executable. It has to be an .exe (extendedDesktop profiled air app) to be able to work with <a href="http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/desktop/NativeProcess.html">NativeProcess</a> &#8211; in order to move and click mouse cursor and dispatch keyboard events. </p>
<p>Run the desktop app and insert generated channel ID. Now the Android app and desktop app should pair. In the desktop app click Remote Desktop tab and select VHScrCap for camera source, now select Remote Desktop option in Android device. Just make sure to click Remote Desktop tab in the desktop app first and just after that in Android app (desktop app listens for initial command after its in Remote Desktop tab). Now you are remotely controling mouse and keyboard from the Android device, see it work here:</p>
<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/ZfhcvmMEE5U" frameborder="0" allowFullScreen></iframe></p>
<p>The desktop app you have downloaded is just a demo, you can use <a href="http://blog.yoz.sk/2010/12/remotair/">Remotair api</a> to build your own desktop application and to include your own functionality. Here is a source code to begin with</p>
<pre class="brush: as3; title: ; notranslate">import sk.yoz.remotair.events.RemotairEvent;
import sk.yoz.remotair.net.Receiver;
import sk.yoz.system.SystemKeyboard;
import sk.yoz.system.SystemMouse;

var offset:Point;
var receiver:Receiver;

receiver.remotairEvents.addEventListener(RemotairEvent.INIT_REMOTE_DESKTOP, onInitRemoteDesktop);
receiver.mouseEvents.addEventListener(MouseEvent.MOUSE_MOVE, onReceivedMouseMove);
receiver.mouseEvents.addEventListener(RemotairEvent.MOUSE_LEFT_DOWN, onReceivedMouseLeftDown);
receiver.keyboardEvents.addEventListener(KeyboardEvent.KEY_UP, onReceivedKeyboardUp);

function onInitRemoteDesktop(event:RemotairEvent):void
{
    camera = Camera.getCamera(); // make sure to select VHScrCap
    camera.setMode(event.data.width, event.data.height, 10);

    stream = new NetStream(receiver.connection, NetStream.DIRECT_CONNECTIONS);
    stream.publish(event.data.channel);
    stream.attachCamera(camera);
}

function onReceivedMouseMove(event:MouseEvent):void
{
    SystemMouse.moveBy('MoveCursor.exe', event.localX - offset.x, event.localY - offset.y);
    offset = new Point(event.localX, event.localY);
}

function onReceivedMouseLeftDown(event:MouseEvent):void
{
    SystemMouse.event('MouseEvent.exe', SystemMouse.MOUSE_LEFT_DOWN);
}

function onReceivedKeyboardUp(event:KeyboardEvent):void
{
    SystemKeyboard.event('KeyboardEvent.exe', event.keyCode);
}</pre>
<p>I would like to apologize to mac users, I do not have desktop version of app for a mac. I believe it is possible and easy to create one using Remotair api and customized native processes for mac.</p>
<p>I have experienced some issues running MoveCursor.exe under Windows Vista. Copying <a href="http://www.google.cz/search?q=msvcr100D.dll">msvcr100D.dll</a> into win/system32 fixed the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2011/01/remote-desktop-with-remotair/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Facebook application type web goes 104 Incorrect signature</title>
		<link>http://blog.yoz.sk/2009/11/facebook-application-type-web-goes-104-incorrect-signatur/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=facebook-application-type-web-goes-104-incorrect-signatur</link>
		<comments>http://blog.yoz.sk/2009/11/facebook-application-type-web-goes-104-incorrect-signatur/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 10:00:16 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[104]]></category>
		<category><![CDATA[Application Type]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[facebook api]]></category>
		<category><![CDATA[incorrect signature]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=588</guid>
		<description><![CDATA[When creating flash / flex application for facebook, Application Type &#8220;Desktop&#8221; will work for you just fine, even when your app is deployed. My app is both embedded via iframe in facebook and standalone application (not in facebook). First I tought desktop mode is just to test my app locally and when finished, I should [...]]]></description>
			<content:encoded><![CDATA[<p>When creating flash / flex application for facebook, Application Type &#8220;Desktop&#8221; will work for you just fine, even when your app is deployed. My app is both embedded via iframe in facebook and standalone application (not in facebook). First I tought desktop mode is just to test my app locally and when finished, I should switch to web type. But guess what, after switching to &#8220;Web&#8221; type, my standalone application refused some actions (upload photos etc.), resulting in error:</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">error_code: 104
error_msg: Incorrect signature</pre>
<p>So, I switched back to &#8220;Desktop&#8221; and both iframe and standalone applications works fine. <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Correct me if I am wrong, but it seems, desktop application type works for facebook flash / flex api in all cases.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/11/facebook-application-type-web-goes-104-incorrect-signatur/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

