Jump to content
Sign in to follow this  
billthecreator

InetGet

Recommended Posts

billthecreator

one of my programs im creating has a font that isnt on the computer naturally.

i deleted the font file and used inetget to get it, but it did something weird and never downloaded the file.

how can i get around that.


[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Share this post


Link to post
Share on other sites
Valuater

Maybe call it a ".txt" file for the download then change the file name once INetGet() is completed

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
billthecreator

I have the font file on my webpage, and my function sees if the file in the windows\fonts\ folder exists, and if it dosent, it downloads it to another folder and copies/installs it to the fonts folder.

i tried filecopy and fileinstall, and both dont work. but if i manually copy, or install it, but either right clicking the actual file, or dragging it, it works...


[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Share this post


Link to post
Share on other sites
billthecreator

Does anyone know if i could use this???

i think it should work, but its not...

If Not FileExists(@WindowsDir & "\Fonts\SFDigitalReadout-Light.ttf") Then
    $objShell = ObjCreate("Shell.Application")
    $objFolder = $objShell.Namespace(@WindowsDir & "\Fonts")
    
    $objFolder.CopyHere($Dir & "\SFDigitalReadout-Light.ttf") 
EndIf

i found this here

http://msdn.microsoft.com/en-us/library/bb787866(VS.85).aspx

Edited by billthecreator

[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Share this post


Link to post
Share on other sites
martin

Does anyone know if i could use this???

Valuater's link doesn't work for me but this one does.

Failing that go to search, click more search options and then in the key word field type "install font" including the quotation marks.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×