<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:Arial;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;
        font-weight:normal;
        font-style:normal;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink="#606420">
<div class=Section1>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>Change this line from:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>c = "start ruby
#{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} "<br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>to:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>c = "start rubyw
#{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} "<br>
<br>
</span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><b><font size=2 color=navy face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:navy;font-weight:bold'>--Mark<o:p></o:p></span></font></b></p>
</div>
</div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Arial><span style='font-size:10.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font face=Tahoma><span
style='font-family:Tahoma'> wtr-general-bounces@rubyforge.org [mailto:wtr-general-bounces@rubyforge.org]
<b><span style='font-weight:bold'>On Behalf Of </span></b>VIKASH KUMAR<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, December 20, 2006
11:57 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">wtr-general@rubyforge.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [Wtr-general] how to
minimize the command prompt</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>I running test cases under Windows Environment,
using ruby, watir 1.5.1.1100.<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>I have the following code:<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>require 'watir' # the watir controller<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>require 'watir/winClicker.rb'<br>
require 'watir\contrib\enabled_popup'<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>test = "C:\\aa.htm"<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>ie=Watir::IE.start(test)<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'>def startClicker( button,ie,waitTime = 3)<br>
w = WinClicker.new<br>
longName = ie.dir.gsub("/" , "\\" )<br>
shortName = w.getShortFileName(longName)<br>
c = "start ruby #{shortName}\\watir\\clickJSDialog.rb
#{button} #{waitTime} "<br>
puts "Starting #{c}"<br>
w.winsystem(c)<br>
w=nil<br>
end</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'>startClicker("OK",ie,3)<br>
ie.button("Submit").click</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'>The above is working fine, but when the method startClicker is
called, it displays a command shell/prompt of ruby.exe, showing some
message. I want the command shell/prompt doesn't comes up or if it is
necessary for the prompt to come up, it should open in minimized state. </span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'>Please, help me out from this.</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'>Thanks in advance</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p><font size=3 face="Courier New"><span style='font-size:12.0pt;font-family:
"Courier New"'>Vikash</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'><br>
Send free SMS to your Friends on <st1:City w:st="on"><st1:place w:st="on">Mobile</st1:place></st1:City>
from your Yahoo! Messenger. Download Now!
http://messenger.yahoo.com/download.php<o:p></o:p></span></font></p>
</div>
</body>
</html>