Modify

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2731 closed Bug (Fixed)

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

Reported by: cory.r.stein@… Owned by: Jpm
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:1 Changed 10 years ago by Jos

  • Owner set to Jpm
  • Status changed from new to assigned
Version 0, edited 10 years ago by Jos (next)

comment:3 Changed 10 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from assigned to closed

comment:4 Changed 10 years ago by Jpm

I hope the beta .exe is OK for everybody.

Cheers

comment:5 Changed 10 years ago by mLipok

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 Changed 10 years ago by mLipok

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 Changed 10 years ago by mLipok

sorry all is fine
in this script i was used:

#AutoIt3Wrapper_Version=B

comment:8 Changed 9 years ago by bmcgrath@…

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:9 Changed 9 years ago by mLipok

I see you are using 3.3.12.0
here is updated version:
https://www.autoitscript.com/forum/files/file/270-autoit-latest-stable-version/

comment:10 Changed 9 years ago by anonymous

3.3.14.1 works, thanks.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.