Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
>Is it possible to do this with VFP?
>
>1) contact a known url / ip address
>2) supply the correct user id and pw, (which I know ahead of time)
>3) hit/send the right button to upload a specific zip file, and do so
>
>Thanks!
use WebBrowser - did a lot of that back in IE3 - IE5 times, had to do a small task last year: fell back to IE6 (in an XP VM) as some things with IE8/9 did not work with my routines from last century. SWAG it was my code, but did not spend time, as it was a quick one shot for the old customer. Trouble spots the typical: COM and vfp debugger not always eye to eye, .object syntax sometimes needed. Wait until the page has finished loading before accessing DOM. IE sometimes rewrites the HTML in its DOM: if you are after source code as from server, several tricks, but don't always believe what IE iffers via innerHTML. Walking along link list easy to do...
If you need to automate IE internal screens (.saveas etc) you either need to work stuffing the keyboard buffer, but not with vfp keyboard(), but some COM (scripting host) or API.
Unless you already have some vfp code doing that or have a need to save into dbf/SQL munging, I'd reccommend either vb6 (neater COM integration), Dotnet (pobably more examples) or python (easier and nicer coding).
HTH
thomas
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement