Jump to content
Sign in to follow this  
nicob2k

Library fonction for vista

Recommended Posts

nicob2k

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....

CODE
If @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

Share this post


Link to post
Share on other sites
AdmiralAlkex

I dont think the macros need any includes, they are inbuilt so whatever fails for you is probably something else

Edited by TzarAlkex

Share this post


Link to post
Share on other sites
nicob2k

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 ?

Share this post


Link to post
Share on other sites
Kerros

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.

Share this post


Link to post
Share on other sites
HeiWoMa

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

This 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\AutoIt32

C:\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.135

Regards,

heiwoma

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.