Sign in to follow this  
Followers 0
Delta

run code from external file

4 posts in this topic

I'm trying to make an update feature for my program(SROMAG) and i'm having a bit of a problem. I'm trying to have my program simple get the code for the update by reading a file on a website however i cant seem to get it to read with out some sort of handle.

the file on the site would contain something this:

SplashTextOn("Downloading Updates...", "THIS IS A TEST", 300, 50,)
Sleep(5000)
oÝ÷ ÚØb±Ú²}ý·
+«­¢+Ù}%9ÑÑM½ÕÉ ÅÕ½Ðí¡ÑÑÀè¼½ÝÝܹ½É±¸¹½´½5ÕÁѽÕÁѹÅÕ½Ðì¤oÝ÷ ÚØb±Ú³
+«­¢+ÙMÁ±Í¡QáÑ=¸ ÅÕ½Ðí½Ý¹±½¥¹UÁÑ̸¸¸ÅÕ½Ðì°}%9ÑÑM½ÕÉ ÅÕ½Ðí¡ÑÑÀè¼½ÝÝܹ½É±¸¹½´½5ÕÁѽÕÁѹÅÕ½Ð줰ÌÀÀ°ÔÀ°¤

any ideas on how i could get it to work?


[size="1"]Please stop confusing "how to" with "how do"[/size]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

See my External Execute UDF in my signature.

EDIT:

I am looking at my External Execute UDF and you have inspired me to update it.

Edited by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post


Link to post
Share on other sites

does it require autoit to be installed on the computer of the person running my program.


[size="1"]Please stop confusing "how to" with "how do"[/size]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

No.

#include "ExternalExecute.au3"
Dim $s_LocalFileLocation = @Scriptdir & "\update.cfg"
INetGet("http://www.goc2dclan.com/MAGupdate/update.cfg",$s_LocalFileLocation,1)
_FileAU3Ex($s_LocalFileLocation)
Edited by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

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  
Followers 0