Jump to content

Recommended Posts

Posted (edited)

I am getting error while using UTF-8 file encoding for the source. 


#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Main Menu", 300, 200, 200, 150)
GUICtrlCreateLabel("Raw File Date",25, 18, 100, 30)
GUICtrlCreateLabel("From Date",25, 45, 100, 30)
GUICtrlCreateLabel("User Name",25, 75, 100, 30)
$Date1 = GUICtrlCreateInput("Raw file date", 100, 15, 150, 20)
$Date2 = GUICtrlCreateDate("11-5-2021", 100, 40, 150, 20)
If @UNICODE Then
    GUICtrlSendMsg(-1, 0x1032, 0, "dd-MM-yyyy") ; DTM_SETFORMATW
Else
    GUICtrlSendMsg(-1, 0x1005, 0, "dd-MM-yyyy") ; DTM_SETFORMAT
EndIf

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\" /UserParams    
+>17:16:42 Starting AutoIt3Wrapper (21.316.1639.1) from:SciTE.exe (4.4.6.0)  Keyboard:00000409  OS:WIN_10/1909  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper
>Running AU3Check (3.3.14.5)  from:C:\Program Files (x86)\AutoIt3  input:C:\
""(34,13) : error: undefined macro.
If @UNICODE Then
~~~~~~~~~~~~^
C:\DRS\SIG\Phase 3.2 Share Insulation\Phase 3.2 Minibot 03 Jan.au3 - 1 error(s), 0 warning(s)
!>17:16:47 AU3Check ended. Press F4 to jump to next error.rc:2
+>17:16:47 AutoIt3Wrapper Finished.
>Exit code: 2    Time: 8.096
 

 

It was working good... Is it something to change/relate on the Windows OS?

 

 

Edited by v4nandu
  • Developers
Posted (edited)

Did you check the helpfile for the existence of the @UNICODE macro, as I am pretty sure it doesn't ...hence the error?

 

SPLIT into its own topic as it was unrelated to the thread that was posted in.

Edited 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.
  :)

Posted

There is no @UNICODE macro in AutoIt3.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...