I'm just hacking a little HTML demo where I want my browser to reload the page after running my script.
Back in the time on *u*x it was very easy to send remote commands to netscape/firefox to open an URL.
But now I have to work on Win where the -remote option doesn't work and FF has shut down some interfaces, which results in opening many new tabs or
warning that FF is already running.
My search revealed that Win32::OLE should do the trick of sending an F5 to the browser, alas I could only find examples in VBS and dunno how to translate them to Win32::OLE.
see https://stackoverflow.com/questions/4680109/how-to-reload-refresh-a-web-page-without-leaving-my-web-development-ide
I'm at the point where hacking the dev environment costs me more than the main project.
Could someone please point me to a working example to send a reload to FF and possible other browsers?
DISCLAIMER: I have the feeling we discussed this before, but a search for lanx and OLE was not successfull.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.