Michael Harney wrote:
>
>I'm not quite sure what you are asking here... Your description of what you
>want to do is a bit vague. Windows can run any script file it has an
>associated file opener for
>
Uh?
>(and since IE is so ingtegrated with the Windows
>OS, there is not many scriptfile type that you can not run without installing
>new software),
>
Uh?
>the rest is language dependant.
>
Uh?
>What exactly are you trying to do?
>
The *exact* think I want to do is create, in my father's computer
desktop, an icon that makes this when he clicks on it [my father
is technophobe, and any procedure that requires him to
type more than two command is called "ununderstandable"]:
(a) scan all recent files in the My Documents directory
(b) connect to the internet
(c) enter into a page of an e-mail free server
(d) for each file found in (a), use the Webmail of (c) and send it
to an e-mail address
(e) close everything
I can write step (a) using C, and I can write step (b) using a DOS
batch file [start http://www.bol.com.br :-)], so I can write it also
using C. I tried to write (c) using javascript...
<script>
function executes_login_at_bol()
{
var agora = new Date();
var wnd = window.open(
"http://www.bol.com.br/home1.jsp",
agora.getTime(), "scrollbars=yes");
if (wnd.closed) { // erro
return;
}
wnd.document.formfake.nome = "nome";
wnd.document.formfake.upass = "senha";
wnd.document.formfake.Act_Login.click();
}
</script>
But, somehow, it doesn't work. And I have no idea about how to
implement part (d). Part (e) can be resumed into "power the
damned thing off" :-)
Alberto Monteiro