Jump to content

Possible bug in AutoIt3Wrapper


dg0421
 Share

Recommended Posts

The path to my source file is the following:

E:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files

The Wrapper seems to be having a problem with the special character "&" in the folder path. Parameters aren't being sent to the Auto2Exe utility properly. Any ideas for a work around?

Link to comment
Share on other sites

The path to my source file is the following:

E:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files

The Wrapper seems to be having a problem with the special character "&" in the folder path. Parameters aren't being sent to the Auto2Exe utility properly. Any ideas for a work around?

Show the exact command line you are passing. Any path containing spaces, let alone an ampersand, needs to be wrapped in double quotes, but should otherwise work fine.

;)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Show the exact command line you are passing. Any path containing spaces, let alone an ampersand, needs to be wrapped in double quotes, but should otherwise work fine.

;)

I don't think I'm passing a command line. What I do is simply press Ctrl-F7 to invoke the compile process from the SciTE Script Editor. Once I do this I get the "AutoIt3Wrapper GUI to Compile..." dialog that already has the source file filled in. The source file that is automatically filled in says E:\ACE-IDS\XP _2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3. As you can see it doesn't interpret the ampersand properly. Since I'm not running Auto2Exe manually I don't have a chance to wrap the path in double quotes.

Link to comment
Share on other sites

I don't think I'm passing a command line. What I do is simply press Ctrl-F7 to invoke the compile process from the SciTE Script Editor. Once I do this I get the "AutoIt3Wrapper GUI to Compile..." dialog that already has the source file filled in. The source file that is automatically filled in says E:\ACE-IDS\XP _2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3. As you can see it doesn't interpret the ampersand properly. Since I'm not running Auto2Exe manually I don't have a chance to wrap the path in double quotes.

I tried compiling a test script in a folder which has an ampersand in its name and didn't see your problem. My compiler is Ver 3.2.13.7.
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

I don't think I'm passing a command line. What I do is simply press Ctrl-F7 to invoke the compile process from the SciTE Script Editor. Once I do this I get the "AutoIt3Wrapper GUI to Compile..." dialog that already has the source file filled in. The source file that is automatically filled in says E:\ACE-IDS\XP _2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3. As you can see it doesn't interpret the ampersand properly. Since I'm not running Auto2Exe manually I don't have a chance to wrap the path in double quotes.

I don't get any dialog anymore when I compile from SciTE with either F7 (Prod) or Ctrl-F7 (Beta). That went away a long time ago, and everything goes to the console pane of the SciTE window now. What version of SciTE4AutoIt3 are you running?

;)

Edit: This was a mistake on my part. Beta compile is Alt-F7, and Ctrl-F7 does in fact bring up the GUI compile dialog, I just haven't been using it since everything can be put in compile directives inside the script.

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I don't get any dialog anymore when I compile from SciTE with either F7 (Prod) or Ctrl-F7 (Beta). That went away a long time ago, and everything goes to the console pane of the SciTE window now. What version of SciTE4AutoIt3 are you running?

;)

BTW, thanks for your help. When I choose Help/About SciTE it says -- SciTE Version 1.76 Mar 30 2008 21:05:14

Link to comment
Share on other sites

BTW, thanks for your help. When I choose Help/About SciTE it says -- SciTE Version 1.76 Mar 30 2008 21:05:14

I was wrong about Ctrl-F7 (see edit above), but I still don't have any problem with a script path containing special characters from SciTE. I save a short script at: C:\temp\Test\September 03, 2008\This & That\Test2.au3

Compiled with F7 (Prod):

>"C:\Progra~1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /autoit3dir "C:\Program Files\AutoIt3"
+>16:25:52 Starting AutoIt3Wrapper v.1.10.1.12  Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3
+>16:25:53 AU3Check ended.rc:0
>Running:(3.2.12.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /out "C:\temp\Test\September 03, 2008\This & That\Test2.exe" /comp 2 /pack /Bin C:\DOCUME~1\TestUser\LOCALS~1\Temp\AutoItSC.bin
+>16:25:55 Aut2exe.exe ended.rc:0
+>16:25:55 Created program:C:\temp\Test\September 03, 2008\This & That\Test2.exe
->Warning: This is an Unicode compiled script and will not run on Win9x/ME.
+>16:25:55 AutoIt3Wrapper Finished
>Exit code: 0   Time: 3.069

Compiled with Alt-F7 (Beta):

>"C:\Progra~1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /beta /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /autoit3dir "C:\Program Files\AutoIt3\beta"
+>16:28:54 Starting AutoIt3Wrapper v.1.10.1.12  Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3\beta
+>16:28:54 AU3Check ended.rc:0
>Running:(3.2.13.7):C:\Program Files\AutoIt3\beta\aut2exe\aut2exe.exe  /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /out "C:\temp\Test\September 03, 2008\This & That\Test2.exe" /comp 2 /pack /Bin C:\DOCUME~1\TestUser\LOCALS~1\Temp\AutoItSC.bin
                       Ultimate Packer for eXecutables
  Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
UPX 3.01w      Markus Oberhumer, Laszlo Molnar & John Reiser   Jul 31st 2007

        File size        Ratio    Format      Name
   --------------------   ------   -----------   -----------
    611328 ->   289792   47.40% win32/pe     Test2.exe

Packed 1 file.
+>16:28:56 Aut2exe.exe ended.rc:0
+>16:28:56 Created program:C:\temp\Test\September 03, 2008\This & That\Test2.exe
->Warning: This is an Unicode compiled script and will not run on Win9x/ME.
+>16:28:57 AutoIt3Wrapper Finished
>Exit code: 0   Time: 3.079

And finally by selecting Ctrl-F7 (dialog compile) with default selections:

>"C:\Progra~1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3"
+>16:29:58 Starting AutoIt3Wrapper GUI v.1.10.1.12
-> No changes made..
+>16:30:11 Starting AutoIt3Wrapper v.1.10.1.12  Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3
+>16:30:11 AU3Check ended.rc:0
>Running:(3.2.12.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /out "C:\temp\Test\September 03, 2008\This & That\Test2.exe" /comp 2 /pack /Bin C:\DOCUME~1\TestUser\LOCALS~1\Temp\AutoItSC.bin
+>16:30:13 Aut2exe.exe ended.rc:0
+>16:30:13 Created program:C:\temp\Test\September 03, 2008\This & That\Test2.exe
->Warning: This is an Unicode compiled script and will not run on Win9x/ME.
+>16:30:14 AutoIt3Wrapper Finished
>Exit code: 0   Time: 15.560

Could you post the console pane output from your attempted compile?

;)

Edit: Aha... when I do compile with Ctrl-F7, via the dialog, the file path is mangled IN THE GUI, but as you can see from the console output, it correctly identifies the file and compiles successfully in spite of that. Does it compile successfully for you, after the bad display?

:D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I was wrong about Ctrl-F7 (see edit above), but I still don't have any problem with a script path containing special characters from SciTE. I save a short script at: C:\temp\Test\September 03, 2008\This & That\Test2.au3

Compiled with F7 (Prod):

>"C:\Progra~1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /autoit3dir "C:\Program Files\AutoIt3"
+>16:25:52 Starting AutoIt3Wrapper v.1.10.1.12  Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3
+>16:25:53 AU3Check ended.rc:0
>Running:(3.2.12.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /out "C:\temp\Test\September 03, 2008\This & That\Test2.exe" /comp 2 /pack /Bin C:\DOCUME~1\TestUser\LOCALS~1\Temp\AutoItSC.bin
+>16:25:55 Aut2exe.exe ended.rc:0
+>16:25:55 Created program:C:\temp\Test\September 03, 2008\This & That\Test2.exe
->Warning: This is an Unicode compiled script and will not run on Win9x/ME.
+>16:25:55 AutoIt3Wrapper Finished
>Exit code: 0   Time: 3.069

Compiled with Alt-F7 (Beta):

>"C:\Progra~1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /beta /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /autoit3dir "C:\Program Files\AutoIt3\beta"
+>16:28:54 Starting AutoIt3Wrapper v.1.10.1.12  Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3\beta
+>16:28:54 AU3Check ended.rc:0
>Running:(3.2.13.7):C:\Program Files\AutoIt3\beta\aut2exe\aut2exe.exe  /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /out "C:\temp\Test\September 03, 2008\This & That\Test2.exe" /comp 2 /pack /Bin C:\DOCUME~1\TestUser\LOCALS~1\Temp\AutoItSC.bin
                       Ultimate Packer for eXecutables
  Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
UPX 3.01w      Markus Oberhumer, Laszlo Molnar & John Reiser   Jul 31st 2007

        File size        Ratio    Format      Name
   --------------------   ------   -----------   -----------
    611328 ->   289792   47.40% win32/pe     Test2.exe

Packed 1 file.
+>16:28:56 Aut2exe.exe ended.rc:0
+>16:28:56 Created program:C:\temp\Test\September 03, 2008\This & That\Test2.exe
->Warning: This is an Unicode compiled script and will not run on Win9x/ME.
+>16:28:57 AutoIt3Wrapper Finished
>Exit code: 0   Time: 3.079

And finally by selecting Ctrl-F7 (dialog compile) with default selections:

>"C:\Progra~1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3"
+>16:29:58 Starting AutoIt3Wrapper GUI v.1.10.1.12
-> No changes made..
+>16:30:11 Starting AutoIt3Wrapper v.1.10.1.12  Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3
+>16:30:11 AU3Check ended.rc:0
>Running:(3.2.12.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "C:\temp\Test\September 03, 2008\This & That\Test2.au3" /out "C:\temp\Test\September 03, 2008\This & That\Test2.exe" /comp 2 /pack /Bin C:\DOCUME~1\TestUser\LOCALS~1\Temp\AutoItSC.bin
+>16:30:13 Aut2exe.exe ended.rc:0
+>16:30:13 Created program:C:\temp\Test\September 03, 2008\This & That\Test2.exe
->Warning: This is an Unicode compiled script and will not run on Win9x/ME.
+>16:30:14 AutoIt3Wrapper Finished
>Exit code: 0   Time: 15.560

Could you post the console pane output from your attempted compile?

;)

Edit: Aha... when I do compile with Ctrl-F7, via the dialog, the file path is mangled IN THE GUI, but as you can see from the console output, it correctly identifies the file and compiles successfully in spite of that. Does it compile successfully for you, after the bad display?

:D

Attached is a pdf that contains the dialog print-screens

This is the console output I'm getting.......

CODE
>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "E:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3"

+>16:07:41 Starting AutoIt3Wrapper GUI v.1.10.1.12

-> No changes made..

+>16:07:55 Starting AutoIt3Wrapper v.1.10.1.12 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 2 CPU:X86 ANSI)

>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3

+>16:07:55 AU3Check ended.rc:0

>Running:(3.2.8.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe /in "E:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3" /out "e:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files\CoRALStatus.exe" /comp 2 /pack /Bin C:\DOCUME~1\DALECT~1\LOCALS~1\Temp\AutoItSC.bin

!>16:08:01 Aut2exe.exe ended errors because the target exe wasn't created, abandon build.rc:9999

+>16:08:01 AutoIt3Wrapper Finished

>Exit code: 0 Time: 20.728

AutoItDialogs.pdf

Link to comment
Share on other sites

Attached is a pdf that contains the dialog print-screens

This is the console output I'm getting.......

CODE
>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "E:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3"

+>16:07:41 Starting AutoIt3Wrapper GUI v.1.10.1.12

-> No changes made..

+>16:07:55 Starting AutoIt3Wrapper v.1.10.1.12 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 2 CPU:X86 ANSI)

>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3

+>16:07:55 AU3Check ended.rc:0

>Running:(3.2.8.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe /in "E:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files\CoralStatus.au3" /out "e:\ACE-IDS\XP & 2003 SLCD\Utilities\CoRAL\Include Files\CoRALStatus.exe" /comp 2 /pack /Bin C:\DOCUME~1\DALECT~1\LOCALS~1\Temp\AutoItSC.bin

!>16:08:01 Aut2exe.exe ended errors because the target exe wasn't created, abandon build.rc:9999

+>16:08:01 AutoIt3Wrapper Finished

>Exit code: 0 Time: 20.728

Well, your AU3Check is not current (1.54.9.0 vice 1.54.13.0), and your AutoIt is way out of date (about a year) at 3.2.8.1 vice 3.2.12.1!

;)

Edit: Note Jos's post below. The fix he's talking about is the minor display bug in the AutoIt3Wrapper_GUI so it will display properly in the GUI. I still think you could compile successfully if you install the latest version of AutoIt (3.2.12.1) and ignore that minor display problem. Using 3.2.12.1, I edited the AutoIt3Wrapper_Gui.au3 on line 747 as Jos posted, recompiled it, and now the GUI shows the path correctly, but don't do this with your outdated version of AutoIt!

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

  • Developers

Will be fixed in the next release of AutoIt3Wrapper_GUI.

The issue is simple: need to add the style $SS_NOPREFIX to the Label control. ;)

line 747: GUICtrlCreateLabel($ScriptFile_In, 100, 105, 500, 20, BitOR($WS_BORDER,$SS_LEFTNOWORDWRAP,$SS_NOPREFIX))

Jos

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

Link to comment
Share on other sites

Well, your AU3Check is not current (1.54.9.0 vice 1.54.13.0), and your AutoIt is way out of date (about a year) at 3.2.8.1 vice 3.2.12.1!

;)

Edit: Note Jos's post below. The fix he's talking about is the minor display bug in the AutoIt3Wrapper_GUI so it will display properly in the GUI. I still think you could compile successfully if you install the latest version of AutoIt (3.2.12.1) and ignore that minor display problem. Using 3.2.12.1, I edited the AutoIt3Wrapper_Gui.au3 on line 747 as Jos posted, recompiled it, and now the GUI shows the path correctly, but don't do this with your outdated version of AutoIt!

Thank you for identifying the problem. It was, as you stated, an issue that was caused by outdated files. What happened was, I already had installed an AutoIt3 version from last year. A couple of days ago I installed the new SciTE (full version) that included AutoIt3Wrapper. It turns out that the AutoIt3Wrapper was issuing a command line parameter that wasn't compatible to version 3.2.8.1 of Aut2Exe. Specifically the command line parameter being issued by AutoIt3Wrapper was "/Pack" which isn't a valid parameter for version 3.2.8.1 of Aut2Exe. I have now upgraded to version 3.2.12.1 and changed the line mentioned by Jos of the AutoItWrapper_GUI and all is well.

Again, thank you for all of the time you spent with me researching this issue. :D

Link to comment
Share on other sites

  • 5 months later...

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...