Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control browser window from VFP???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01573106
Message ID:
01573268
Vues:
66
>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
Fil
Voir

Click here to load this message in the networking platform