<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Vincent,</div><div><br>On Jul 29, 2014, at 11:54 PM, Blondeau Vincent &lt;<a href="mailto:vincent.blondeau@worldline.com">vincent.blondeau@worldline.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->


<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Eliot,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I tried with the latest vm from your website (<a href="http://www.mirandabanda.org/files/Cog/VM/VM.r3056/cogwin-14.29.3056.zip">http://www.mirandabanda.org/files/Cog/VM/VM.r3056/cogwin-14.29.3056.zip</a> -&gt; SqueakConsole.exe).
 But unfortunately the problem is still there…</span></p></div></div></blockquote><div><br></div>I'm sorry for having wasted your time! &nbsp;There must be some code that gets run during startup that shouldn't be when the VM is running headless. &nbsp;Tracking it down could be done by running a debug VM under gdb in a console window. &nbsp;I guess the console in which gdb is running will lose focus at the same point. &nbsp;I don't have time to do this right now, but I'll try soon. &nbsp;How motivated are you to fix this?<div><br><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Vincent<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="FR" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">De&nbsp;:</span></b><span lang="FR" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Pharo-dev [<a href="mailto:pharo-dev-bounces@lists.pharo.org">mailto:pharo-dev-bounces@lists.pharo.org</a>]
<b>De la part de</b> Eliot Miranda<br>
<b>Envoyé&nbsp;:</b> mardi 29 juillet 2014 21:08<br>
<b>À&nbsp;:</b> Pharo Development List<br>
<b>Objet&nbsp;:</b> Re: [Pharo-dev] Headless mode loss of focus under windows 7<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Hi Vincent,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp; &nbsp; use one if the console VMs from my website. &nbsp;They don't open up another window. &nbsp;Open up a recent cogwin zip and use SqueakConsole.exe<br>
<br>
Eliot (phone)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<br>
On Jul 29, 2014, at 4:01 AM, Blondeau Vincent &lt;<a href="mailto:vincent.blondeau@worldline.com">vincent.blondeau@worldline.com</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Hello everyone,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Currently I use a batch script where a moose image (based on pharo) load a model, export some data and close itself without saving and that several times.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">I do it under windows 7 by this kind of loop in a .bat file:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">FOR /L %%i IN (1,1,10) DO (<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Pharo.exe --headless sdco-sa-tooling-ci-5.image eval ‘&lt;tasks&gt;'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">The problem is that at each execution of pharo, I lose focus from the window where I was currently working (a notepad by example).<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">How can I do to solve it?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Thanks in advance!<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Cheers,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Vincent BLONDEAU<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
</blockquote>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le
 détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus,
 l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.<br>
<br>
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
 the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
 from any virus transmitted.<br>
</font>


</div></blockquote></div></body></html>