Hi All!!!!
as u could see in this subject, this is a little weird problem.. lol

This is it:
I created a .vbs file, it runs a batch process opening an Internet Explorer
Window, logs in an external website , and upload a file from this comp (
where i have the vbs file )
The first problem i had : when i navigate a HTTPS URL , it ask for the
certificate window and i had to click YES manually .. so i used the SENDKEYS
to send 2 TABs and one ENTER to step over that window.. it worked

The second problem : On the upload page, i had to browse the file to upload.
HTML doesnt let u write in a FILE control Value. So i used again the
SENDKEYS to send the full path of the file to upload. It worked.

Now the Actual Problem : this computer has to be locked while the process
runs.. so.. the sendkeys doesnt work becouse the focus it s on the windows
login window.

Anyone has another idea to do what i m trying ?? thnx !! and sorry for my
poor english..


PS: i cant modify the upload web site

--
CHIN@KD
www.racingclub.com.ar

Re: SENDKEYS + Batch Process by Torgeir

Torgeir
Wed Jan 26 11:39:45 CST 2005

CHIN@KD wrote:

> Hi All!!!!
> as u could see in this subject, this is a little weird problem.. lol
>
> This is it:
> I created a .vbs file, it runs a batch process opening an Internet Explorer
> Window, logs in an external website , and upload a file from this comp (
> where i have the vbs file )
> The first problem i had : when i navigate a HTTPS URL , it ask for the
> certificate window and i had to click YES manually .. so i used the SENDKEYS
> to send 2 TABs and one ENTER to step over that window.. it worked
>
> The second problem : On the upload page, i had to browse the file to upload.
> HTML doesnt let u write in a FILE control Value. So i used again the
> SENDKEYS to send the full path of the file to upload. It worked.
>
> Now the Actual Problem : this computer has to be locked while the process
> runs.. so.. the sendkeys doesnt work becouse the focus it s on the windows
> login window.
>
> Anyone has another idea to do what i m trying ??
Hi

Maybe this one will work for you:

curl
http://curl.haxx.se/



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: SENDKEYS + Batch Process by CHIN

CHIN
Wed Jan 26 11:53:51 CST 2005

THNX !!!
But i dont have to do a simple post to a website, couse it has a login
window first and then i have to navigate that website until i get the UPLOAD
module, and then put the upload file path on the FILE field , and then do a
CLICK in the submit button. When i click it , the "ARE U SURE?" confirm
window appears.. that s why i use SENDKEYS to emule the all process... but
if i task the .vbs , and lock the computer, it doesnt work becaus it does
the sendkeys in the unlock window..

really thanx anyway.. i ll keep looking..


PS: Another way could be try to unlock the computer before run the .vbs ,
and then lock it again... i m trying to do that now..


"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:uQg8848AFHA.1524@TK2MSFTNGP09.phx.gbl...
> CHIN@KD wrote:
>
> > Hi All!!!!
> > as u could see in this subject, this is a little weird problem.. lol
> >
> > This is it:
> > I created a .vbs file, it runs a batch process opening an Internet
Explorer
> > Window, logs in an external website , and upload a file from this comp (
> > where i have the vbs file )
> > The first problem i had : when i navigate a HTTPS URL , it ask for the
> > certificate window and i had to click YES manually .. so i used the
SENDKEYS
> > to send 2 TABs and one ENTER to step over that window.. it worked
> >
> > The second problem : On the upload page, i had to browse the file to
upload.
> > HTML doesnt let u write in a FILE control Value. So i used again the
> > SENDKEYS to send the full path of the file to upload. It worked.
> >
> > Now the Actual Problem : this computer has to be locked while the
process
> > runs.. so.. the sendkeys doesnt work becouse the focus it s on the
windows
> > login window.
> >
> > Anyone has another idea to do what i m trying ??
> Hi
>
> Maybe this one will work for you:
>
> curl
> http://curl.haxx.se/
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx



Re: SENDKEYS + Batch Process by Torgeir

Torgeir
Wed Jan 26 12:00:02 CST 2005

CHIN@KD wrote:

> THNX !!!
> But i dont have to do a simple post to a website, couse it has a login
> window first and then i have to navigate that website until i get the UPLOAD
> module, and then put the upload file path on the FILE field , and then do a
> CLICK in the submit button. When i click it , the "ARE U SURE?" confirm
> window appears.. that s why i use SENDKEYS to emule the all process... but
> if i task the .vbs , and lock the computer, it doesnt work becaus it does
> the sendkeys in the unlock window..
>
> really thanx anyway.. i ll keep looking..
>
>
> PS: Another way could be try to unlock the computer before run the .vbs ,
> and then lock it again... i m trying to do that now..
Hi

Sorry, there is no way to programmatically unlock a computer...



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: SENDKEYS + Batch Process by CHIN

CHIN
Wed Jan 26 12:08:47 CST 2005

Thanx that answer helps me to dont waste more time in that.

So, i have to use the SENDKEYS with the user logged in windows..

i have terminal server services... how about creating a domain user only for
this batch app, and log in terminal server , task it , and close the
terminal server window.. would it keep runing ?.. where goes the sendkeys in
that case?..

i ll try that.. but tell me what u think please..

tnx !


"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:en44SE9AFHA.3664@TK2MSFTNGP14.phx.gbl...
> CHIN@KD wrote:
>

>
> Sorry, there is no way to programmatically unlock a computer...
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx



Re: SENDKEYS + Batch Process by CHIN

CHIN
Wed Jan 26 12:14:03 CST 2005

I have just read this:


http://groups.google.com.ar/groups?hl=es&lr=&threadm=8j2fc8%24f9s%243%40bw10
7zhb.bluewin.ch&rnum=1&prev=/groups%3Fhl%3Des%26lr%3D%26q%3Dvbscript%2B%252B
%2B%2522terminal%2Bserver%2522%2B%252B%2Btask%2B%252B%2Bsendkeys


wont work...

so.. i have to leave the computer logged and hope to no one tuch the
keyboard... :(

really fragil application .. lol




"CHIN@KD" <racingnet_ac@yahoo.com.ar> wrote in message
news:OwEJaH9AFHA.208@TK2MSFTNGP12.phx.gbl...
> Thanx that answer helps me to dont waste more time in that.
>
> So, i have to use the SENDKEYS with the user logged in windows..
>
> i have terminal server services... how about creating a domain user only
for
> this batch app, and log in terminal server , task it , and close the
> terminal server window.. would it keep runing ?.. where goes the sendkeys
in
> that case?..
>
> i ll try that.. but tell me what u think please..
>
> tnx !
>
>
> "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
> news:en44SE9AFHA.3664@TK2MSFTNGP14.phx.gbl...
> > CHIN@KD wrote:
> >
>
> >
> > Sorry, there is no way to programmatically unlock a computer...
> >
> >
> >
> > --
> > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> > Administration scripting examples and an ONLINE version of
> > the 1328 page Scripting Guide:
> > http://www.microsoft.com/technet/scriptcenter/default.mspx
>
>



Re: SENDKEYS + Batch Process by Al

Al
Wed Jan 26 21:21:42 CST 2005


"CHIN@KD" <racingnet_ac@yahoo.com.ar> wrote in message
news:ej9cWK9AFHA.2032@tk2msftngp13.phx.gbl...
> I have just read this:
>
>
>
http://groups.google.com.ar/groups?hl=es&lr=&threadm=8j2fc8%24f9s%243%40bw10
>
7zhb.bluewin.ch&rnum=1&prev=/groups%3Fhl%3Des%26lr%3D%26q%3Dvbscript%2B%252B
> %2B%2522terminal%2Bserver%2522%2B%252B%2Btask%2B%252B%2Bsendkeys

For such long search URL's, TinyURL.com is a handy tool, as it produces a
cryptic, but much shorter URL to the same location. Try it out at:

http://tinyurl.com/5wf2f


/Al

>
>
> wont work...
>
> so.. i have to leave the computer logged and hope to no one tuch the
> keyboard... :(
>
> really fragil application .. lol
>
>
>
>
> "CHIN@KD" <racingnet_ac@yahoo.com.ar> wrote in message
> news:OwEJaH9AFHA.208@TK2MSFTNGP12.phx.gbl...
> > Thanx that answer helps me to dont waste more time in that.
> >
> > So, i have to use the SENDKEYS with the user logged in windows..
> >
> > i have terminal server services... how about creating a domain user only
> for
> > this batch app, and log in terminal server , task it , and close the
> > terminal server window.. would it keep runing ?.. where goes the
sendkeys
> in
> > that case?..
> >
> > i ll try that.. but tell me what u think please..
> >
> > tnx !
> >
> >
> > "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
> > news:en44SE9AFHA.3664@TK2MSFTNGP14.phx.gbl...
> > > CHIN@KD wrote:
> > >
> >
> > >
> > > Sorry, there is no way to programmatically unlock a computer...
> > >
> > >
> > >
> > > --
> > > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> > > Administration scripting examples and an ONLINE version of
> > > the 1328 page Scripting Guide:
> > > http://www.microsoft.com/technet/scriptcenter/default.mspx
> >
> >
>
>



Re: SENDKEYS + Batch Process by Torgeir

Torgeir
Thu Jan 27 04:39:25 CST 2005

Al Dunbar [MS-MVP] wrote:

> "CHIN@KD" <racingnet_ac@yahoo.com.ar> wrote in message
> news:ej9cWK9AFHA.2032@tk2msftngp13.phx.gbl...
>
>>I have just read this:
>>
>> http://groups.google.com.ar/groups?hl=es&lr=&threadm=8j2fc8%24f9s%243%40bw10
>> 7zhb.bluewin.ch&rnum=1&prev=/groups%3Fhl%3Des%26lr%3D%26q%3Dvbscript%2B%252B
>>%2B%2522terminal%2Bserver%2522%2B%252B%2Btask%2B%252B%2Bsendkeys
>
>
> For such long search URL's, TinyURL.com is a handy tool, as it produces a
> cryptic, but much shorter URL to the same location. Try it out at:
>
> http://tinyurl.com/5wf2f


Or clean up the Google URL to just contain the threadm reference:

http://groups.google.com.ar/groups?threadm=8j2fc8%24f9s%243%40bw107zhb.bluewin.ch


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx