Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet Explorer Toolbar - How to add one
Message
De
18/11/2003 02:16:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00850615
Message ID:
00850879
Vues:
27
Hi Alexander

This is really cool - except VFP starts up in my C:\DOCUMENTS AND SETTINGS\MYUSERNAME\DESKTOP folder instead of the VFP8 directory. Any way to make it do this from the ie button?

Bernard

>>I'm looking into creating a new toolbar for internet explorer that would allow me to run my own application. [kinda like the Google Bar]
>
>Yes, it works! Run the following code and you'll get a VFP button on IE toolbar:
>
>strKey = "HKLM\Software\Microsoft\Internet Explorer\Extensions\{7830DD8F-0362-4a99-BC85-4E4DF385805F}\"
>strPath = _VFP.FullName
>
>WshShell = CreateObject("WScript.Shell")
>
>WshShell.RegWrite(strKey + "Default Visible", "Yes", "REG_SZ")
>WshShell.RegWrite(strKey + "ButtonText", "Run FoxPro", "REG_SZ")
>WshShell.RegWrite(strKey + "Icon", strPath + ",101", "REG_SZ")
>WshShell.RegWrite(strKey + "HotIcon", strPath + ",101", "REG_SZ")
>WshShell.RegWrite(strKey + "CLSID", "{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}", "REG_SZ")
>WshShell.RegWrite(strKey + "Exec", strPath, "REG_SZ")
>
>* Uncomment to uninstall
>* WshShell.RegDelete(strKey)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform