Sign in to follow this  
Followers 0
Gillboss

Mistake with help file

8 posts in this topic

i have vista 64..

and when i run au3 files, i get much problems that i didnt get in windows xp.

anyway:

i just want run Clock.au3 and:

>"D:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3"    
D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3 (28) : ==> Can not redeclare a constant.:
Global Const $ULW_ALPHA      = 2
Global Const ^ ERROR
>Exit code: 1   Time: 0.329

thx

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i have vista 64..

and when i run au3 files, i get much problems that i didnt get in windows xp.

anyway:

i just want run Clock.au3 and:

>"D:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3"    
D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3 (28) : ==> Can not redeclare a constant.:
Global Const $ULW_ALPHA      = 2
Global Const ^ ERROR
>Exit code: 1   Time: 0.329

thx

Delete this line because exists in one of your include files.

Global Const $ULW_ALPHA = 2
Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Delete this line because exists in one of your include files.

Global Const $ULW_ALPHA = 2
and i get this:

>"D:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3"    
 D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3 (70) : ==> Variable used without being declared.:
 $iX = -(_WinAPI_GetSystemMetrics($SM_CXFRAME))
 $iX = -(_WinAPI_GetSystemMetrics(^ ERROR
 >Exit code: 1  Time: 0.309

Share this post


Link to post
Share on other sites

and i get this:

>"D:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3"    
 D:\Program Files (x86)\AutoIt3\Examples\GUI\Advanced\Clock.au3 (70) : ==> Variable used without being declared.:
 $iX = -(_WinAPI_GetSystemMetrics($SM_CXFRAME))
 $iX = -(_WinAPI_GetSystemMetrics(^ ERROR
 >Exit code: 1  Time: 0.309
#include <WindowsConstants.au3>

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#include <WindowsConstants.au3>

slove.. how do u know it?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

slove.. how do u know it?

If you don't find some constants try option Search in Files from Scite and browse in AutoIt include folder. :)

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Use the latest version of SciTE4AutoIt3 and add this Directive at the top of your script:

#AutoIt3Wrapper_Add_Constants=y

This will figure out for you what *Constants.au3 includes need to be added

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

If you don't find some constants try option Search in Files from Scite and browse in AutoIt include folder. :)

oh thx =]

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