Modify

#2731 closed Bug (Fixed)

AU3Check error on objects that contain properties with name (.To)

Reported by: cory.r.stein@… Owned by: J-Paul Mesnage
Milestone: Component: AutoIt
Version: 3.3.12.0 Severity: None
Keywords: Cc:

Description

We have a function that uses the object CDO.Message. The below simplified snippet of code fails to compile. Looks like this might have been addressed in an earlier version, but have recently resurfaced. Not sure if (http://www.autoitscript.com/trac/autoit/ticket/2113) is similar, but we are holding off on using the latest due to this issue.

Local $objEmail = ObjCreate("CDO.Message")
$objEmail.From = '"Test" <Test>'
$objEmail.To = 'Test'

AU3Check fails to pass on the .To property, which I assume is because its a reserved keyword in the AI engine or something

Attachments (0)

Change History (10)

comment:3 by J-Paul Mesnage, on Jun 11, 2014 at 6:00:41 AM

Resolution: Fixed
Status: assignedclosed

comment:4 by J-Paul Mesnage, on Jun 11, 2014 at 6:01:36 AM

I hope the beta .exe is OK for everybody.

Cheers

comment:5 by mLipok, on Jun 13, 2014 at 10:27:24 AM

no
I download it today (again to be sure)

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "Z:\TOOLs\Macro\       PROGRAM_MANAGER\PROGRAM_MANAGER.au3"
+>11:24:03 Starting AutoIt3Wrapper v.2.2.0.3 SciTE v.3.4.3.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\user\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\user\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.12.0)  from:C:\Program Files (x86)\AutoIt3\Beta  input:Z:\TOOLs\Macro\       PROGRAM_MANAGER\PROGRAM_MANAGER.au3
"Z:\TOOLs\Macro\KK_EMAIL_Sending.au3"(261,12) : error: missing separator character before keyword.
	$objEmail.To
	~~~~~~~~~~^
Z:\TOOLs\Macro\       PROGRAM_MANAGER\PROGRAM_MANAGER.au3 - 1 error(s), 0 warning(s)
!>11:24:05 AU3Check ended. Press F4 to jump to next error.rc:2
+>11:24:05 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.546

comment:6 by mLipok, on Jun 13, 2014 at 10:31:09 AM

cramp see what the problem

why if I use CTRL+F5 in SciTE4AutoIt then Beta version of Au3Check is running ?

> Running AU3Check (3.3.12.0) from: C: \ Program Files (x86) \ AutoIt3 \ Beta

comment:7 by mLipok, on Jun 13, 2014 at 1:16:45 PM

sorry all is fine
in this script i was used:

#AutoIt3Wrapper_Version=B

comment:8 by bmcgrath@…, on Aug 3, 2015 at 11:09:02 PM

Seems to have regressed:

"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Prod /AU3check /in "T:\AUTOIT\mail.au3"

+>15:06:28 Starting AutoIt3Wrapper v.15.729.1555.3 SciTE v.3.6.0.0 Keyboard:00000409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64 Environment(Language:0409)
+> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\bmcgrath\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\bmcgrath\AppData\Local\AutoIt v3\SciTE

Running AU3Check (3.3.12.0) from:C:\Program Files (x86)\AutoIt3 input:T:\AUTOIT\mail.au3

"T:\AUTOIT\mail.au3"(48,15) : error: missing separator character before keyword.

$objEmail.To


comment:10 by anonymous, on Aug 7, 2015 at 11:39:06 PM

3.3.14.1 works, thanks.

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.