Jump to content

The new version AutoIt3Wrapper has a bug


Recommended Posts

When sciTE set encoding to UTF-8 with BOM, appear compile error for #include "..." as follows

#include "CommMg.au3"

W:\Works\Test.au3(9,10) : ERROR: can't open include file "CommMG.au3".

#include "CommMG.au3"

~~~~~~~~~^

CommMg.au3 in ScriptDir

SciTE4Autoit3 29/12/2011

Link to comment
Share on other sites

This problem has been discussed

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

If you just specify the name you have to use <CommMg.au3>. The include directory of AutoIt, the directory where the script resides and an optional user include directory is then searched for the UDF.

If "..." is used, the filename is taken to be relative to the current script.

Please check the help file for details.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

test1.au3

#include <test2.au3>
MsgBox(0,"test","some chinese 中文")

test2.au3

MsgBox(0,"test2","test2 is ok")

set test1.au3 encoding to UTF-8W BOM and compiled as follows:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "W:Workstest.au3" /UserParams  
+>12:18:29 Starting AutoIt3Wrapper v.2.1.0.20   Environment(Language:0804  Keyboard:00000804  OS:WIN_XP/Service Pack 3  CPU:X64 OS:X86)
>Running AU3Check (3.3.9.1)  from:C:Program FilesAutoIt3
"W:Workstest.au3"(3,10) : error: can't open include file <test2.au3>.
#include <test2.au3>
~~~~~~~~~^
W:Workstest.au3 - 1 error(s), 0 warning(s)
!>12:18:29 AU3Check ended. Press F4 to jump to next error.rc:2
>Exit code: 0   Time: 0.415

the old AutoIt3Wrapper has no this bug.

Edited by ranber
Link to comment
Share on other sites

  • Developers

Not sure what the title has to do with the issue posted other then in the old days auccheck wasn't run at all when your script was unicode encoded.

This has nothing to do with AutoIt3Wrapper as such and likely related with au3check.

So the issue is that all files are located in the same directory and now you get an error where before you never got that.

The only reason for that could be that au3check doesn't support any UNICODE files, but AutoIt3wrapper will now detect that the main script is UNICODE encoded and will make a copy saved without any encode to allow au3check to verify it. I can imagine that this now causes issues when it tries to load UNICODE encoded include file but would need to test this,

Now do me a favor and zip up some tests files your are testing with and demonstrates the issue, get them to me by PM or attaching it to this thread, so I can replicate it.

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

  • Developers

Uploaded a fix for this reported issue to the Beta directory: AutoIt3Wrapper v2.1.0.30

Thanks

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

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
 Share

  • Recently Browsing   0 members

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