<div dir="ltr">I'm not sure I would launch IE with Python. While it may serve as a decent introductory practice exercise, I feel that you can create a better solution while still "getting your feet wet".<div>
<br></div><div style>I don't know how you have stored these IE shortcuts; if you can move all of these URLs into some sort of a data file, that would be great.</div><div style><br></div><div style>From there, use a library such as curl to call a GET request on each of these URLs. If you want to be fancy, you could use a simple GUI library (such as TKinter which you mentioned) to display what you like. However, I'd just get the bare-minimal functionality working first and display the output (along with any user-interaction) in the console. NCurses might be a good candidate for this.</div>
<div style><br></div><div style>I live in Dayton, myself, and don't attend any of the meetings so don't feel bad. I'm usually <i>extremely</i> busy with work and my son but if you're ever in town during a time I'm free, I'd be more than happy to walk you through any questions you may have. I've had quite a few people who were lost in the Python world and managed to "show [them] the light" without a whole lot of effort.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 3:42 PM, <a href="mailto:Richard.C.1@bwc.state.oh.us">Richard.C.1@bwc.state.oh.us</a> <span dir="ltr"><<a href="mailto:Richard.C.1@bwc.state.oh.us" target="_blank">Richard.C.1@bwc.state.oh.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you for your speedy reply!</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">What I do is work with/manage a large number of servers here at the bureau. Each morning I have a number</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">of IE shortcuts each of which I click on to run. The shortcuts are of the form
<a href="http://servername:5555" target="_blank">http://servername:5555</a> . This will cause the</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">server to run the “health app” and display a status result screen and an “ok” reply box. Since I’m starting with Python I thought</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">it would be instructive and kind of neat to be able to automate the process so that I can kick off a python program</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">that will call/run/execute the IE shortcut that will call the server which will then display the status screen and wait</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">for me to reply with an enter key to the “OK” box. Then on to the next screen full.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I just didn’t know if I need to use something like an os.popen(cmd) thingee  …..and do I pass it the IE program and</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">the URL string, or just the URL string or ???  Whatever will “kick off” the ie command I think is what I need.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I hope I’m not biting off more than I can chew with this, but it sounds neat and challenging….</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for the invite to the meeting but I don’t think I can make it. I’m low vision and can’t do much driving. I work</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">in Columbus but live in Dayton. I vanpool from Cols. to Springfield and get a ride to Dayton from there each day…. 
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It doesn’t look like there’s a Python group in Dayton….</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">TKInter is on my list of stuff to learn….but a bit down the road…..</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> CentralOH [mailto:<a href="mailto:centraloh-bounces%2Brichard.c.1" target="_blank">centraloh-bounces+richard.c.1</a>=<a href="mailto:bwc.state.oh.us@python.org" target="_blank">bwc.state.oh.us@python.org</a>]
<b>On Behalf Of </b>Brian Costlow<br>
<b>Sent:</b> Wednesday, June 05, 2013 3:14 PM<br>
<b>To:</b> Mailing list for Central Ohio Python User Group (COhPy)<br>
<b>Subject:</b> Re: [CentralOH] Help for a newbie......</span></p>
</div><div><div class="h5">
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hi Richard,</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Welcome!</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">First, I'm not sure I completely understand the question you are asking.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Do you want your python program itself to connect to that URL, and display the okay dialog?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Or are you trying to use Python to script a browser (Firefox, Chrome, IE) so the browser connects to the URL and hits okay on a dialog displayed in the browser?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">If the latter, I suggest you look into a web test application, like selenium. You can script it in Python (or a number of other languages) and use it to automate browsers.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><a href="http://docs.seleniumhq.org/" target="_blank">http://docs.seleniumhq.org/</a></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">If the former, you'll need to work out how to connect to the URL and get data. I suggest looking into the Requests library.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><a href="http://docs.python-requests.org/en/latest/" target="_blank">http://docs.python-requests.org/en/latest/</a></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Then you'll need to work on a GUI. There are a number of possible choices, though PyQt and TkInter seem to get talked about the most.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><a href="http://wiki.python.org/moin/GuiProgramming" target="_blank">http://wiki.python.org/moin/GuiProgramming</a></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Trying to give this level of help on the mailing list is tough. You might want to bring your code to a dojo for help. Or get started and ask a more specific question. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">You can go here to find dojos, the next one is this Friday.  <a href="http://cohpy.org" target="_blank">http://cohpy.org</a></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">--Brian</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> </p>
<div>
<p class="MsoNormal">On Wed, Jun 5, 2013 at 2:36 PM, <a href="mailto:Richard.C.1@bwc.state.oh.us" target="_blank">
Richard.C.1@bwc.state.oh.us</a> <<a href="mailto:Richard.C.1@bwc.state.oh.us" target="_blank">Richard.C.1@bwc.state.oh.us</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal">First, I’m a real newbie to Python – and I mean a real newbie…  I’m still going</p>
<p class="MsoNormal">through a tutorial on it so I think I don’t know what I don’t know…. and right</p>
<p class="MsoNormal">now I think I’m getting a bit swamped by what seem to be the bunch of ways</p>
<p class="MsoNormal">I might be able to do something….. and what would help is a short example or</p>
<p class="MsoNormal">description of the command/call (s?) that I need to use. Briefly, what I want to</p>
<p class="MsoNormal">be able to do is to execute an internal browser command that will run a shortcut</p>
<p class="MsoNormal">on our internal web that looks like this:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><a href="http://%3chostname%3e:5555/dosomething" target="_blank">http://<hostname>:5555/dosomething</a></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">This will call a server which after a few seconds will show an “OK” box on the
</p>
<p class="MsoNormal">screen to which I want to “pipe” an “enter” command.  There’s a lot more to
</p>
<p class="MsoNormal">the whole thing, but if I can get an example of what commands/calls/?? I would</p>
<p class="MsoNormal">need to use to do those two actions that would get me started. Thank you very</p>
<p class="MsoNormal">much for any help/suggestions/references/thoughts you may feel like sharing!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal">Portions of this message may be confidential under an exemption to Ohio's public records law or under a legal privilege. If you have received this message in error or due to an unauthorized transmission or interception, please delete all
 copies from your system without disclosing, copying, or transmitting this message.
</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org" target="_blank">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a></p>
</div>
<p class="MsoNormal"> </p>
</div>
</div></div></div><div><div class="h5">
Portions of this message may be confidential under an exemption to Ohio's public records law or under a legal privilege. If you have received this message in error or due to an unauthorized transmission or interception, please delete all copies from your system
 without disclosing, copying, or transmitting this message.
</div></div></div>

<br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br></div>