alinashul Posted January 8, 2008 Share Posted January 8, 2008 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 Link to comment Share on other sites More sharing options...
Zedna Posted January 8, 2008 Share Posted January 8, 2008 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 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
The Kandie Man Posted January 8, 2008 Share Posted January 8, 2008 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 Link to comment Share on other sites More sharing options...
alinashul Posted January 8, 2008 Author Share Posted January 8, 2008 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.jpgwhat should i do ? Zedna ... explain me with that string's plz ) how should it be ? i have the script and the photo at this direccion : D:\Jocuri\Warcraft III\script source's\myscriptthx for help Link to comment Share on other sites More sharing options...
Zedna Posted January 9, 2008 Share Posted January 9, 2008 FileInstall ( "D:\Jocuri\Warcraft III\script source's\myscript\quantum1.jpg", @TempDir & "\", 1) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now