Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pullup Control Panel's Printers window
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01285872
Message ID:
01287026
Vues:
26
You're welcome.
Keep in mind that delay may not be enough when computer is busy/slow.

>Thank You so much Sergey.
>Exactly what I needed.
>Works like a charm...
>
>>Try
>>
>>DECLARE Sleep IN WIN32API Long
>>
>>* Display 'Printers and Faxes'
>>ccPRINTERS = 0x4
>>loShellApp = CREATEOBJECT("Shell.Application")
>>loShellApp.Open(ccPRINTERS)
>>* Wait some time for dialog to show up
>>Sleep(1500)
>>* Change view
>>loShell = Createobject("wscript.shell")
>>loShell.AppActivate("Printers and Faxes")
>>loShell.SendKeys("%VD")
>>
>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform