LinuZ Posted May 16, 2008 Posted May 16, 2008 (edited) So I am making this like shell/skin for a small C++ proggy that injects some code into a game called Warcraft IIIMy problem is that when I compile it, it says:EDIT: The fault was just:FileInstall(@Scriptdir & "/blablha.exe", @Tempdir & "/blablha.exe")source: The source path of the file to compile. This must be a literal string; it cannot be a variable.So it had to be:FileInstall(C:/blablha.exe", @Tempdir & "/blablha.exe") Edited May 17, 2008 by LinuZ
Developers Jos Posted May 16, 2008 Developers Posted May 16, 2008 source The source path of the file to compile. This must be a literal string; it cannot be a variable. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
LinuZ Posted May 16, 2008 Author Posted May 16, 2008 (edited) Thanks for a so fast answer but I dont get where it would be variable; I only use macros for installing the files Are they counted as same? I edited it so it is a full string with the full path to the files and I tried without a path too. Not working :/ Jos; give another suggestion! Edited May 16, 2008 by LinuZ
Developers Jos Posted May 16, 2008 Developers Posted May 16, 2008 A Macro is a "fixed" variable. the thing to realize is that the script isn't running when you perform the aut2exe operation and thus cannot interpret that Macro. That is why it needs a literal string. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
LinuZ Posted May 16, 2008 Author Posted May 16, 2008 A Macro is a "fixed" variable. the thing to realize is that the script isn't running when you perform the aut2exe operation and thus cannot interpret that Macro. That is why it needs a literal string. Ok, now I know that So the _Install() function should look like this: Func _Install() FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp_hack.png", @TempDir & "\isdp_hack.png") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp_skull.png", @TempDir & "\isdp_skull.png") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\grey.gif", @TempDir & "\grey.gif") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp.wav", @TempDir & "\isdp.wav") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\song.mod", @TempDir & "\song.mod") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\BASSMOD.dll", @TempDir & "\BASSMOD.dll") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp.exe", @TempDir & "\isdp.exe") EndFunc Privacy, hell with it xD The problem is that this doesnt work :/
Developers Jos Posted May 16, 2008 Developers Posted May 16, 2008 Ok, now I know that So the _Install() function should look like this: Func _Install() FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp_hack.png", @TempDir & "\isdp_hack.png") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp_skull.png", @TempDir & "\isdp_skull.png") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\grey.gif", @TempDir & "\grey.gif") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp.wav", @TempDir & "\isdp.wav") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\song.mod", @TempDir & "\song.mod") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\BASSMOD.dll", @TempDir & "\BASSMOD.dll") FileInstall("C:\Documents and Settings\Spel\Desktop\ISEEDEADPOEPL\isdp.exe", @TempDir & "\isdp.exe") EndFunc Privacy, hell with it xD The problem is that this doesnt work :/ Would help when you describe what isn't working or what errors you get.... Show the SciTE output pane information when you do F7 (assuming you use SciTE). SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
LinuZ Posted May 16, 2008 Author Posted May 16, 2008 Would help when you describe what isn't working or what errors you get....Show the SciTE output pane information when you do F7 (assuming you use SciTE).I'm sorry I can't ATM, but I will when I can if still needed.(I'm not on the comp with the source)All I get is that MessageBox that I posted in the first post, no outcome on what is wrong at all.Have you tried to compile it? Have you got it working?Thanks!
LinuZ Posted May 16, 2008 Author Posted May 16, 2008 The mystic thing is that it works at our family computer not on my and my brothers comp :/ I had to edit some small things but then it worked like a charm and now it is compiled... The mystic thing is that we have exactly the same versions ... Yaya, but I can always move to this comp when I need to compile something bigger like this Thanks for the help Jos!
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