Gillboss Posted September 24, 2008 Share Posted September 24, 2008 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 Link to comment Share on other sites More sharing options...
Andreik Posted September 24, 2008 Share Posted September 24, 2008 (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 thxDelete this line because exists in one of your include files. Global Const $ULW_ALPHA = 2 Edited September 24, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Gillboss Posted September 24, 2008 Author Share Posted September 24, 2008 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 Link to comment Share on other sites More sharing options...
Andreik Posted September 24, 2008 Share Posted September 24, 2008 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. Link to comment Share on other sites More sharing options...
Gillboss Posted September 24, 2008 Author Share Posted September 24, 2008 #include <WindowsConstants.au3>slove.. how do u know it? Link to comment Share on other sites More sharing options...
Andreik Posted September 24, 2008 Share Posted September 24, 2008 (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 September 24, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 24, 2008 Developers Share Posted September 24, 2008 (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 September 24, 2008 by Jos 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. Link to comment Share on other sites More sharing options...
Gillboss Posted September 24, 2008 Author Share Posted September 24, 2008 If you don't find some constants try option Search in Files from Scite and browse in AutoIt include folder. oh thx =] 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