Sign in to follow this  
Followers 0
alinashul

need help fast plz

5 posts in this topic

helo guyz ... i have a little problem ... i have this start of a script :

#include <Guiconstants.au3>
FileInstall (@ScriptDir & "\quantum1.jpg", @TempDir & "\", 1)
$gui = GUICreate("Quantum's lossbot made for D3scene.com comunity", 500, 400)
$background = GUICtrlCreatePic(@TempDir & "\quantum1.jpg",0,0,500,400)

now ... all works just fine ... the photo sticks with the script and all .... but when i try to make in into a .exe file he put's me an error saying like this :

Invalid FileInstall() function :

what should i do ? thx for ur help

2nd problem ... i need to make a .ico image ... for the icon of the script .... can somebody tell me a program who can make .ico .. thx alot

Share this post


Link to post
Share on other sites



FileInstall (@ScriptDir & "\quantum1.jpg", @TempDir & "\", 1)

From helpfile:

The source file must be a string and not a variable so that the compiler can extract the filename to include.

 

So use absolute path as string and not @ScriptDir macro

Share this post


Link to post
Share on other sites

Just use a relative path instead of the @scriptdir macro:

FileInstall (".\quantum1.jpg", @TempDir & "\", 1)

- The Kande 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

Zedna ..... can u explain me more plz that string thing ? cuz i don't know what a string is :))

The kandie Man : i haputted ur version in the script ... and when i make it to .exe now i get the error ....

Error adding file : .\quantum1.jpg

what should i do ?

Zedna ... explain me with that string's plz :P) how should it be ? i have the script and the photo at this direccion :

D:\Jocuri\Warcraft III\script source's\myscript

thx for help

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