nicob2k Posted November 12, 2007 Posted November 12, 2007 Hello, I'm just kind of getting lost. When running my uncompiled script, the @OSbuild call return me the good result, but when running it compiled it doesn't.... CODEIf @OSbuild = 6000 then SplashTextOn("CELCAT", "Logiciel équivalent déjà installé", 350, 50, -1, -1, 32, "", 10) Sleep(3000) SplashOff() GUICtrlCreateLabel ($equi, 280, 30, "","") GUICtrlSetColor(-1,$color) GUICtrlCreateLabel ($equi, 280, 50, "","") GUICtrlSetColor(-1,$color) ElseIf @OSBuild = 2600 AND @OSServicePack = "Service Pack 2" or @OSBuild > 2600 Then I guess I'm missing something in my "#include" I've : #requireadmin #include <GUIConstants.au3> #include <Constants.au3> Any views? THanks
AdmiralAlkex Posted November 12, 2007 Posted November 12, 2007 (edited) I dont think the macros need any includes, they are inbuilt so whatever fails for you is probably something else Edited November 12, 2007 by TzarAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
nicob2k Posted November 12, 2007 Author Posted November 12, 2007 I dont think the macros need any includes, they are inbuilt so whatever fails for you is probably something else... Do you have any idea what could cause an uncompile script to work and a compiled one to fail using macros ?
Kerros Posted November 12, 2007 Posted November 12, 2007 The only time I ever have a script that seems to work uncompiled, and not compiled is when there is some syntax error somewhere in the script. Usually leaving out a bracket somewhere. I usually try to run SyntaxCheck within Scite to check for these errors. Kerros Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.
HeiWoMa Posted November 27, 2007 Posted November 27, 2007 The only time I ever have a script that seems to work uncompiled, and not compiled is when there is some syntax error somewhere in the script. Usually leaving out a bracket somewhere. I usually try to run SyntaxCheck within Scite to check for these errors.KerrosThis is what SciTe says. That's also why the compilled script will not run:+>17:55:56 Starting AutoIt3Wrapper v.1.7.6>Running AU3Check (1.54.6.0) params: from:C:\Program Files\AutoIt32C:\sys-files\640\ger\utl\exe\Test\Test3.au3(5,26) : WARNING: $equi: possibly used before declaration.GUICtrlCreateLabel ($equi,~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Test3.au3(6,26) : WARNING: $color: possibly used before declaration.GUICtrlSetColor(-1,$color)~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Test3.au3(10,81) : ERROR: missing EndIf.ElseIf @OSBuild = 2600 AND @OSServicePack = "Service Pack 2" or @OSBuild > 2600 Then~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Test3.au3(1,24) : REF: missing EndIf.If @OSbuild = 6000 then~~~~~~~~~~~~~~~~~~~~~~~^C:\Test3.au3(5,26) : ERROR: $equi: undeclared global variable.GUICtrlCreateLabel ($equi,~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Test3.au3 - 2 error(s), 2 warning(s)!>17:55:57 AU3Check ended.rc:2+>17:55:59 AutoIt3Wrapper Finished>Exit code: 0 Time: 4.135Regards,heiwoma
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