Jump to content
Sign in to follow this  
rudi

Ressource Update on compilation is failing, Error 1359

Recommended Posts

Hi.

Problem was using two compilation options at the same time:

 

  1. "Save a copy of the Scriptsource in the output program resources." on Tab "Resource Update", and ...
  2. "Run Au3Stripper before compilation." on Tab "Au3Stripper" (no options).

 

In this thread Jos pointed out, that UTF-8 with or without BOM doesn't make any difference.

It was a bug in AutoIt3Wrapper.au3, which was instantly fixed by Jos. That beta Version is available from this page,

the Link "this location" on the bottom of the page will take you to the "Betas": https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/

Thanks to Jos again, you can stop reading here, the other stuff is just confusing

 

 

Regards, Rudi.

 

 

 

######################################################################

 

 

 

 

 

 

 

 

This is only one out of 5 PCs, where I use Autoit & SciTE, latest version on all of them.

 

for a similar issue Jos suggested, to try the latest beta version of SciTE:

I did so, but the compilation is always failing, *IF* I try to "save a copy of the Scriptsource in the output program resources".

Starting SciTE using "run as Administrator" doesn't change anything.

Deleting "%localappdata%\AutoIt v3" doesn't help either, avoiding "German Umlauts" (äöüÄÖÜ) doesn't make any difference as well.

 

 

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung.au3"
+>13:54:18 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE
-> No changes made..
>Running AU3Check (3.3.15.1)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung.au3
+>13:55:01 AU3Check ended.rc:0
>Running Au3Stripper (15.920.938.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Au3Stripper will work correctly.
- 0.02 Iteration 1 Strip Functions result: Output  18 lines, stripped 0 Func lines and 28 Commentlines
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Au3Stripper will work correctly.
- 0.02 Iteration 2 Strip Variables result: Output  18 lines and stripped 0 lines
+> 0 Au3Stripper v15.920.938.0 finished merging 54 lines of code, stripped 28 comment lines and Merged 7 Continuation lines.
+>        Created:H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung_stripped.au3 with 19 lines.
+>13:55:01 Au3Stripper ended.rc:0
>Running AU3Check (3.3.15.1)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung_stripped.au3
+>13:55:01 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung_stripped.au3" /out "C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AUF86B.tmp.exe" /nopack /comp 2
+>13:55:04 Aut2exe.exe ended.C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AUF86B.tmp.exe. rc:0
>13:55:04 Performing the Program Resource Update steps:
...>Updating Program Version information.
!>13:55:04 Skipping SourceSave because this is an stripped script.rc:2
!>13:55:04 Error: EndUpdateResource: Returncode = 0 - LastError:1359:Interner Fehler.rc:2
!>13:55:04 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2
+>13:55:07 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 49.72

 

 

After renaming "my" folder "C:\Program Files (x86)\AutoIt3" and copying over all the content of the same folder from a different, working PC do the mainly used box, the Error Message now is:

 

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung.au3"
+>14:14:35 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.6.0.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE
! ***************************************************************************************************************
! * Input file is UTF8 without BOM encoded, Au3Stripper do not support UNICODE and will be skipped.      *
! * The file SHOULD BE encoded as UTF8 with BOM to continue processing by AutoIt3Wrapper.                       *
! *    #####################################################################################################    *
! * ##### AutoIt3Wrapper will not show a GUI or update the script to avoid any damage to your scriptfile. ##### *
! *    #####################################################################################################    *
! * When your file isn't a UTF8 file without BOM then please report this to me for review.                      *
! ***************************************************************************************************************
>Running AU3Check (3.3.10.2)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung.au3
+>14:14:36 AU3Check ended.rc:0
>Running Au3Stripper (1.2.0.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 0.02 Iteration 1 Strip Functions result: Output  18 lines, stripped 0 Func lines and 28 Commentlines
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 0.02 Iteration 2 Strip Variables result: Output  18 lines and stripped 0 lines
+> 0 Au3Stripper v1.2.0.0 finished merging 54 lines of code, stripped 28 comment lines and Merged 7 Continuation lines.
+>        Created:H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung_stripped.au3 with 19 lines.
+>14:14:36 Au3Stripper ended.rc:0
>Running AU3Check (3.3.10.2)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung_stripped.au3
+>14:14:36 AU3Check ended.rc:0
>Running:(3.3.10.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "H:\DATEN\EDV\Anleitungen Hilfe Doku\W3Stat-(IDES)\w3stat-IDES-DesktopVerknüpfung_stripped.au3" /out "C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU3hddtvjf.exe" /nopack /comp 2
+>14:14:38 Aut2exe.exe ended.C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU3hddtvjf.exe. rc:0
>14:14:38 Performing the Program Resource Update steps:
...>Updating Program Version information.
!>14:14:38 Skipping SourceSave because this is an stripped script.rc:2
+>14:14:38 Resource Update skipped: missing Resfile :C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\scriptin.tmp
>14:14:39 Program Resource updating finished successfully.
+>14:14:39 Created program:z:\w3stat-IDES-IntraStat-DesktopVernuepfung-Erstellen.exe
- Skipping Updated of the Source Version because this file is detected as UTF8 without BOM which could cause script corruption.
+>14:14:40 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 5.176

 

 

 

I tried to figure out, if this AU3 file is such a "UTF-8 without BOM", I don't know how to tell? :mad2:

 

 

 

:'( any suggestions?

Regards, Rudi.

 

Edited by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Solved:

It's happening, when both is checked for compilation:

 

  1. Tab "Ressource Update" --> "Save a copy of the Scriptsource in the output program resources"
  2. [ ] Run Au3Strippper before compilation (no options specified, due to description the same as /so = /sf + /sv)

 

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
1 hour ago, rudi said:

I tried to figure out, if this AU3 file is such a "UTF-8 without BOM", I don't know how to tell?

SciTE should tell you when you look at File/Encoding. It will either say "Code Page Property" or "UTF8"

Will look at the other issue you mention to see what is happening.

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

Share this post


Link to post
Share on other sites

Hi Jos.

 

Sorry, I miss most of the meaning or your relpy :-(

Ah :D, the file encoding is "UTF-8" :D


The console output of SciTE is included in my initial post, it *WAS* telling something about UTF-8.

Now I cannot reproduce this, but these options give a ressource upate error, quite similar, when I compile using these options. Maybe "Stripper" and "Resource Updater --> save source to output" are incompatible options?

  1. Autoit3/Aut2Exe: production, Exe, targets "blank", Icon = "Vorhaengeschloss.ico" (same folder as au3), file install compression = normal, x86, "use UPX" unchecked, no CUI, no add required constants
  2. Tab "Ressource Update": Auto Increment, Exec Level Default, save a copy of ScriptSource in the output program ressources is [checked]
  3. Run Au3Stripper before compilation without parameters (that's according to the description using "/so" = "/sf + /sv" as default values)

 

As the decompile option has been removed years ago, an I have lost source code info more than once, I always make use of this "Save SrcCode to Prog Ressource". (I miss this function. That's just a statement, no arguing to get it back ;-)

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss.au3"
+>11:26:38 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\admin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss.au3
+>11:26:38 AU3Check ended.rc:0
>Running Au3Stripper (15.920.938.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
- 0.56 Iteration 1 Strip Functions result: Output  1232 lines, stripped 3536 Func lines and 4667 Commentlines
- 0.88 Iteration 2 Strip Variables result: Output  66 lines and stripped 1166 lines
- 0.88 Iteration 3 Strip Variables result: Output  36 lines and stripped 30 lines
- 0.94 Iteration 4 Strip Variables result: Output  35 lines and stripped 1 lines
- 0.94 Iteration 5 Strip Variables result: Output  35 lines and stripped 0 lines
+> Source    9575 lines 467028 Characters.
+> Stripped  4733 Func/Var lines and  4667 comment lines, Total 464859 Characters.
+> Saved     98% lines 99% Characters.
+> 0 Au3Stripper v15.920.938.0 finished created:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss_stripped.au3
+>11:26:39 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss_stripped.au3
+>11:26:39 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss_stripped.au3" /out "C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU1479.tmp.exe" /nopack /comp 2
+>11:26:42 Aut2exe.exe ended.C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU1479.tmp.exe. rc:0
>11:26:42 Performing the Program Resource Update steps:
...>Updating Program Version information.
!>11:26:42 Skipping SourceSave because this is an stripped script.rc:2
!>11:26:42 Error: EndUpdateResource: Returncode = 0 - LastError:1359:Interner Fehler.rc:2
!>11:26:42 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2
+>11:26:44 Created program:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss.exe

Dialog: Error: EndUpdateResource: Returncode = 0 - LastError:1359:Interner Fehler.
--> continue anyway

-Updated the Source Version to:1.0.0.5
+>11:26:44 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 6.909


--> here the output of SciTE ends. Putting the Cursor into the SciTE output pane behind "rc:2" at the very end of the line startging with 11:25:42, pressing enter clears the output pane and shows this text:



>!>11:25:27 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2

Die Syntax f² den Dateinamen, Verzeichnisnamen oder die Datentrŧerbezeichnung ist falsch.
>Exit code: 1    Time: 0.2351

Translated: The syntax for file name, directory name or volume name is wrong (or invalid).
And it should tell "für", not "f[x81]r" and "Datenträger...", not Datentr[x84]..." --> Propably UTF-8 Chars not displayed properly???

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Rudi: au3check, au3stripper and tidy also can't work with UTF8 without BOM encoded Files, so you have to switch to UTF8 with BOM.  Just open Filemenu => Encoding => UTF8 with Bom and save the file.  

Share this post


Link to post
Share on other sites

Hello,

Thanks for your reply.

I did so (change encoding to "UTF-8 with BOM", save file, then CTRL+F7), and still run into an error:

 

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss.au3"
+>17:37:18 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\admin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE 
-> No changes made..
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss.au3
+>17:37:31 AU3Check ended.rc:0
>Running Au3Stripper (15.920.938.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
- 0.56 Iteration 1 Strip Functions result: Output  1232 lines, stripped 3536 Func lines and 4667 Commentlines
- 0.94 Iteration 2 Strip Variables result: Output  66 lines and stripped 1166 lines
- 0.94 Iteration 3 Strip Variables result: Output  36 lines and stripped 30 lines
- 0.94 Iteration 4 Strip Variables result: Output  35 lines and stripped 1 lines
- 0.94 Iteration 5 Strip Variables result: Output  35 lines and stripped 0 lines
+> Source    9575 lines 467028 Characters.
+> Stripped  4733 Func/Var lines and  4667 comment lines, Total 464856 Characters.
+> Saved     98% lines 99% Characters.
+> 0 Au3Stripper v15.920.938.0 finished created:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss_stripped.au3
+>17:37:32 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss_stripped.au3
+>17:37:32 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss_stripped.au3" /out "C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AUA098.tmp.exe" /nopack /comp 2
+>17:37:34 Aut2exe.exe ended.C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AUA098.tmp.exe. rc:0
>17:37:34 Performing the Program Resource Update steps:
...>Updating Program Version information.
!>17:37:34 Skipping SourceSave because this is an stripped script.rc:2
!>17:37:34 Error: EndUpdateResource: Returncode = 0 - LastError:1359:Interner Fehler.rc:2
!>17:37:34 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2

####
Error Message Box:
Error: EndUpdateResource: Returncode = 0 - LastError:1359:Interner Fehler. (internal error)
--> Clicking button "continue anyway"


+>17:37:45 Created program:H:\DATEN\PUBLIC\Bunker\Script\Mittags-ein-Schuss.exe
-Updated the Source Version to:1.0.0.1
+>17:37:46 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 27.8

--> the resulting file has no ressource updates, no version number (filegetversion() ...

 

It *DOES* compile the script successfully, when I use only *ONE* of both options:

  1. Save Source Code in Programm Ressources, *OR*
  2. run stripper (no params) before compilation

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
5 hours ago, AutoBert said:

Rudi: au3check, au3stripper and tidy also can't work with UTF8 without BOM encoded Files, so you have to switch to UTF8 with BOM.  Just open Filemenu => Encoding => UTF8 with Bom and save the file.  

Don't think this is valid information. They all will work perfectly since a while with UTF8 files with or without a BOM!

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

Share this post


Link to post
Share on other sites
47 minutes ago, rudi said:

It *DOES* compile the script successfully, when I use only *ONE* of both options:

  1. Save Source Code in Programm Ressources, *OR*
  2. run stripper (no params) before compilation

I will have a look at this as that sounds as a AutoIt3Wrapper bug to me.

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

Share this post


Link to post
Share on other sites

So this could have been summarized to something simpel like this... which also failed:   :)

#AutoIt3Wrapper_Run_Au3Stripper=y
#AutoIt3Wrapper_Res_SaveSource=Y
Msgbox(0,"Test","Test")

Just uploaded a beta for AutoIt3Wrapper v15.920.938.6 that should fix this. 

Thanks for reporting,
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.
  :)

Share this post


Link to post
Share on other sites

Hi Jos.

Perfect! Thanks for fixing that bug this instantly!!

 

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Skysnake
      >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "C:\AutoIt\pegasus\wings.au3" +>08:02:43 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0 Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\x\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\x\AppData\Local\AutoIt v3\SciTE -> No changes made.. >Running Au3Stripper (19.102.1901.0) from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline: -### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _1p2 c:\program files (x86)\autoit3\include\ie.au3(2572,1): Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) -### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _1te c:\program files (x86)\autoit3\include\sqlite.au3(609,1): Warning for line:$iCbRval = Call($sCallBack, $aDataRow) -### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _1te c:\program files (x86)\autoit3\include\sqlite.au3(625,1): Warning for line:$iCbRval = Call($sCallBack, $aDataRow) My issue is specifically with the Call($sCallBack, xyz) part.  I declared a Global with that name and thought I had it sorted.  Previous releases appear content with that solution... Current I get this.
      Question are these:
      Should there be a default $sCallBack define in the provided include? What exactly should the "user defined" Callback function look like? And where is it defined? Sorry I am lost.
       
       
    • By Jos
      1/02/2018: Uploaded a new SciTe4AutoIt3.exe v19.102.1901.0 installer.
      This version contains the bugfix release for SciTE 4.1.2.
      There has been a major update for Tidy allowing now inline comments without them being shifted to the left by default.
      See this thread for the total story about the new behavior and the added options
      ==> SciTE4AutoIt3 v19.102.1901.0
      Enjoy,
      Jos

      Addition/Changes/Fixes in the current installer:

      -------------------------------------------------------------------------------------------------- 2-1-2019 *** Merged the SciTE v 4.1.2 by Neil Hodgson with our own version of SciTE. (Jos)     - Fixed regex issue for Alt+F in AutoItTools.lua     - Fixed another regex issue for several functions in AutoItTools.lua     - Fixed Header parameters now showing None when none are     - Fixed jump to function to also jump to the right Column again.     - Restored AutoItTools:Copy_BookMarks() functionality *** Updated AutoIt3Wrapper v19.102.1901.0 (Jos)     - 18.703.1808.1 renamed "#AutoIt3Wrapper_Au3Stripper_Stop_OnError" to "#AutoIt3Wrapper_Au3Stripper_OnError" with now as options S,C,F,Stop,Continue,ForceUse     - 18.708.1148.1 Added #include <WinAPIFiles.au3> back in the included file list to ensure backward compatibility.     - 18.708.1148.2 Added "Tidy_Stop_OnError" support to the AutoIt3Wrapper.INI file.                     Changed HiDPI settings for Win 10 compatibility.     - 18.708.1148.4 Added logic to be able to display Console Output of script that have #RequireAdmin while SciTE runs at normal level.     - 18.708.1148.5 Added support to allow to Stop Execution or Restart for scripts with #RequireAdmin while SciTE runs at normal level.                     It won't hang anymore when you reply No on the UAC and detect the elevated process didn;t start.     - 18.708.1148.6 Reverted HiDPI changes made in 18.708.1148.2 as problems are reported. needs investigation.     - 18.708.1148.7 Changed check for RequireAdmin AutoIt3Wrapper startup.     - 18.708.1148.8 Added #include <APIResConstants.au3> for backwards compatibility with AutoIt3 v3.3.14.x. *** Updated Au3Stripper v19.102.1901.0 (Jos)     - 18.708.1148.1 Fixed issue finding variable names on multiline statements     - 18.708.1148.2 Added check for ending \ in the AutoIt3Dir, and remove it when there, to avoid duplication of includes.     - recompiled with PellesC 6 to make it compatible with WinXP again. *** Updated SciTEConfig v19.102.1901.0 (Jos)     - 18.708.1148.1 Update to allow comments in *.SciTEConfig file lines. (JPM)                     This update includes the updated shemes to allow changing between them. *** Updated Tidy v19.102.1901.0 (Jos)     - 18.708.1148.1: Fix bug handling Directivelines ending with continuation character     - 18.708.1148.2: Fixed indentation when a "None breaking space"(C2A0) character is used in a UTF file.     - 18.708.1148.3: Fix bug when a continuation line starts with +x, where is would add a space between +- and number.     - 18.708.9999.x: Rewrite of some internal code to allow inlinecomments to remain at their current position.                       Details can be found in this post: https://www.autoitscript.com/forum/topic/196221-tidy-major-update-27-10-requesting-help-with-testing/     - 18.708.9999.22: Released to Beta.     - 18.708.9999.23: Added option to totally skip commentblocks so now the options are:                         #Tidy_Parameters=/tcb=0         =>only indent the whole commentblock  (default)                                          /tcb or /tcb=1 =>Tidy inside commentblock                                          /tcb=-1        =>leave whole commentbock alone                        Tidy.INI:#--> Tidy commentblock 0=only indent the whole commentblock  (default=0)                                 #                      1=Tidy inside commentblock                                 #                     -1=leave whole commentbock alone                                 Tidy_commentblock=0     - 18.708.9999.24: Added check for ending \ in the AutoIt3Dir and remove it when there.     - recompiled with PellesC 6 to make it compatible with WinXP again. --------------------------------------------------------------------------------------------------
      ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check the online documentation for an overview of all extra's you get with this installer.
    • By BigDaddyO
      I've recently been getting hammered by Symantec SEP deleting all of my compiled scripts so I'm trying to figure out how I could run my scripts uncompiled.
      Problem is, these scripts are typically launched from inside Citrix sessions that I don't have control of so I can't install AutoIT in there to get all the #Include files that my scripts are using.
      I tried to use AU3Stripper and while, yes that did create a single file and I could run it. it put it in a state that I couldn't easily maintain going forward.
       
      Is there any existing way to pull all the functions and drop them at the end of the main script?  Not sure about the Globals and Constants though, I guess they would have to go to the top which shoves everything else down.  I also need to maintain the current script spacing and comments as I often have to update older scripts and need the comments to help with that.
    • By Jos
      7/8/2018: Uploaded a new SciTe4AutoIt3.exe v18.708.1148.0 installer.
      It has been over a year since the last update of the full SciTE4AutoIt3 installer whch mainly had to do with the fact that Neil was moving toward v4 of SciTE and I wanted to wait for a stable version.
      Any help with testing this version before general release is appreciated.
      Also any feedback is welcome in caseI missed something or suggestions for improvement before releasing.
      ==> SciTE4AutoIt3 v18.708.1148.0
      Enjoy,
      Jos

      Addition/Changes/Fixes in the current installer:
      -------------------------------------------------------------------------------------------------- 8-7-2018 *** Merged the SciTE v 4.1.0 by Neil Hodgson with our own version of SciTE. (Jos)     This is a major change from the previous version so ensure you update all files including LUA or else you will get errors!     - SciLexer au3: Fixed issues with nested CommentBlocks not always showing the correct color.     - SciLexer au3: Change any line starting with # and no recognised keyword to be shown with the Pre-Processor in stead of default.     - Changed Shortcut for AU3INFO to Ctrl+Shift+F6.     - Moved the session restore logic for (save.session.advanced=1)into SciTE in stead of LoadSession.lua as that was clearing the recent files list of the last session       when opening a file by double cliking it. This is fixed with this change.       Default remains 0 so when a file is double clicked the last session isn't restored unless you add this to SciTEuser.properties:       "save.session.advanced=1"     - updated Tools.lua replacing [s%] with [ /t] to avoid empty lines being stripped by those functions. (Thanks Enyby) *** Updated AutoIt3Wrapper v18.708.1148.0 (Jos)     - 17.224.935.1 Added /autoit3dir to au3stripper commandline, when provided to AutoIt3Wrapper., to ensure the included files are for the correct AutoIt3 directory     - 17.224.935.2 Added directives:          #AutoIt3Wrapper_Res_CompanyName=          ;Company field          #AutoIt3Wrapper_Res_LegalTrademarks=      ;Trademark field     - 17.224.935.5 Fixed Versioning when files contain backets ->  ()     - 17.224.935.6 Added support for :          #AutoIt3Wrapper_Au3stripper_Stop_OnError=        ;(Y/N) Continue/Stop on Warnings.(Default=N)     - 17.224.935.7 added INI support for:           [Other]            Au3Stripper_Stop_OnError=n     - 17.224.935.10 Minor changes in console messages     - 17.224.935.11 Modifications from JPM:         - add #AutpIt3Wrapper_Res_Cursor_Add         - "clean" a little bit AutoIt3Wrapper.au3 *** Updated Au3Stripper v18.708.1148.0 (Jos)     - 17.224.935.1 Fixed crash when an include file contains longer record than 4096 characters.     - 17.224.935.2 Changed /rsln to replace @ScriptLineNumber in the Master script with "XXX/YYY". XXX is the master script linenumber, YYY is the Merged script linenumber.     - 17.224.935.3 Fixed issue detecting #cs #ce when a space was missing after the directive.     - 17.224.935.4 Changed Close/Open logic for Tracelog to (hopefully) avoid the hardcrash.     - 17.224.935.5 improved speed avoiding rereading include files to determine the max rec len.     - 17.224.935.6 improved speed by re-coding the check for long records.     - 17.224.935.7 Made sure the returncode is the highest from all iterations in stead of the last iteration.     - 17.224.935.8 fix for reported bug: https://www.autoitscript.com/trac/autoit/ticket/3623#comment:4     - 17.224.935.9 added support for #autoit3wrapper_autoit3dir     - 17.224.935.10 Fixed support for #autoit3wrapper_autoit3dir when followed by linecomment                     Stop processing when include file isn't found.     - 18.624.1847.1 strip the leading and trailing double quotes from the autoit3dir directive to avoid an error when they are specified.     - 18.624.1847.2 Fixed Hardcrash in the Include logic     - 18.624.1847.3 Fixed Hardcrash in Func stripping logic by enlarging the base table size     - 18.702.1556.1 Fixed regression bug with the Translate option.     - 18.703.1808.2 Fixed regression bug with the Stripping FUNC logic for the first found FUNC. *** Updated SciTEConfig v18.708.1148.0 (Jos)     - 17.224.935.1 No updates *** Updated Tidy v18.708.1148.0 (Jos)     - 17.224.935.1 Added option  to copy comments from #CS to #CE. Default is to copy the comments.                    Added Tidy Parameters:  /Skip_CE_Comment or /scec will skip this copy action                    Added INI option:                      * * *  Add comment to #CE/#CommentEnd and make it the same as the #CS/CommentStart Comments.                      ce_comment=1     - 17.224.935.2 Fix issue with Copy comments on comment start - end     - 17.224.935.4 Fix another issue with Copy comments on comment start - end -------------------------------------------------------------------------------------------------- ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check the online documentation for an overview of all extra's you get with this installer.
    • By kara2004
      Hi there,
      I have a problem using the latest two betas of au3stripper.exe.
      Compiling my script using V17.224.935.6 works fine, the next two releases (18.624.1847.0 and 18.624.1847.1) show an error:
      !==> *** ERROR: stopping process because include file not found :#include <INCLUDE_FILE.au3> !==> *** Checked these directories : !==> C:\Program Files (x86)\AutoIt3\include\INCLUDE_FILE.au3 !==> SCRIPT_DIR\INCLUDE_FILE.au3 !==> SCRIPT_DIR\INCLUDE_FILE.au3 !>18:42:00 --------------------------------------------------------------- !>18:42:00 Au3Stripper ended with errors, using original scriptfile.rc:999 !>18:42:00 --------------------------------------------------------------- Changing the include line according to the helpfile (using "..." for includes in script dir and <..> for includes in the au3-include-dir won't help!?
      Greetings
      kara66
       
×
×
  • Create New...