Simpel

AU3Stripper - SendTo

13 posts in this topic

Hi,

while debugging sometimes I need the au3 stripped script with /mo parameter, so that error lines in the error message match the script. Things I use often I put inside sendto folder (shell:sendto) so I can push my file to this with right click fast. A long time I had problems with some of my scripts stripping this way because the some paths to my script included spaces (you should not do that). But here’s my solution fixing that problem:

Local $sPathToAU3Stripper = "" ; fill in the path here
Local $sPath
If $CmdLineRaw = "" Then ; you didn't do it with sendto
    $sPath = FileOpenDialog("Which file you want to AU3-strip?", "","AU3 (*.au3)", 3)
    If @error Then
        MsgBox(0, 'Error FileOpenDialog:', @error)
        Exit
    EndIf
Else
    $sPath = $CMDLINE[1]
EndIf
Local $sPath_quoted = '"' & $sPath & '"'
ShellExecuteWait($sPathToAU3Stripper, $sPath_quoted & ' /mo', "", "", @SW_HIDE)

I hope someone will find it useful.

Regards, Conrad


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites



Hey Conrad,

Why not simply use the following line in your script source and simply run au3stripper?:

#Au3Stripper_Parameters=/MO

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        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 

I did it that way for a long time. But then I decided to “include” the script as a resource that I always can extract via $cmdline. And suddenly I always got an error message that “including” failed. Did I comment the parameter /mo out it worked.

I hope I can post an exampe for my current workflow tomorrow evening.

Conrad


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

Hi @Jos,

as written above I have some code I always put via an #include into my scripts. Inside this #include I use this code to have source code always embedded:

#include<ResourcesEx.au3> ; nötig zum Extrahieren der Source
_ExtractSource() ; extrahiert die Source wenn @compiled und $cmdlineraw stimmt

Func _ExtractSource()
    If @Compiled Then
        If StringRegExp($cmdlineraw, "(?i)(extract|extrakt|source|quelle|code|au3)") Then
            Local $sInputExe = @ScriptFullPath
            Local $sResNameOrID = 999
            Local $sFilePathAu3 = StringLeft(@ScriptFullPath, StringInStr(@ScriptFullPath, ".", 0, - 1) - 1) & "_extracted_source.au3"
            Local $bReturn = _Resource_SaveToFile($sFilePathAu3, $sResNameOrID, Default, Default, Default, $sInputExe)
            Local $sErrorAddon
            If @error = 6 Then $sErrorAddon = " - Kein Quellcode gefunden."
            MsgBox(0, 'Sourcecode', 'Extrahiert: ' & $bReturn & @CRLF & @CRLF & 'Error: ' & @error & $sErrorAddon & @CRLF & 'Extended: ' & @extended & @CRLF & @CRLF & "Pfad: " & $sFilePathAu3)
            Exit
        EndIf
    EndIf
EndFunc

Having this inside I get an error message while compiling with these parameters:

#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/mo

So I have to comment them out. Do you see another possibility to do both?

Regards, Conrad


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

What is the error and how does that extract source look when you run it compiled?
When you want me to have a look you need to give me an working example to simulate your issue.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        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 wasn't clear. Both together are a working example. Please try this:

#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/mo
#include<ResourcesEx.au3>
_ExtractSource()

MsgBox(0, 'Test', "This shows that the script is normally working.")
Exit

Func _ExtractSource()
    If @Compiled Then
        If StringRegExp($cmdlineraw, "(?i)(extract|extrakt|source|quelle|code|au3)") Then
            Local $sInputExe = @ScriptFullPath
            Local $sResNameOrID = 999
            Local $sFilePathAu3 = StringLeft(@ScriptFullPath, StringInStr(@ScriptFullPath, ".", 0, - 1) - 1) & "_extracted_source.au3"
            Local $bReturn = _Resource_SaveToFile($sFilePathAu3, $sResNameOrID, Default, Default, Default, $sInputExe)
            Local $sErrorAddon
            If @error = 6 Then $sErrorAddon = " - No source found."
            MsgBox(0, 'Sourcecode', 'Extracted: ' & $bReturn & @CRLF & @CRLF & 'Error: ' & @error & $sErrorAddon & @CRLF & 'Extended: ' & @extended & @CRLF & @CRLF & "Path: " & $sFilePathAu3)
            Exit
        EndIf
    EndIf
EndFunc

SciTE console out:

>"H:\_Conrad lokal\Downloads\AutoIt3\SciTE\..\AutoIt3.exe" "H:\_Conrad lokal\Downloads\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "H:\_Conrad lokal\Downloads\AutoIt3\_COX\Tests\test.au3"
+>16:01:04 Starting AutoIt3Wrapper v.16.306.1237.0 SciTE v.3.6.2.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64  Environment(Language:0407)  CodePage:0  utf8.auto.check:4    # detect ascii high characters and if none found set default encoding to UTF8 and do not add BOM
+>         SciTEDir => H:\_Conrad lokal\Downloads\AutoIt3\SciTE   UserDir => H:\_Conrad lokal\Downloads\AutoIt3\SciTE\AutoIt3Wrapper
>Running AU3Check (3.3.14.2)  params:-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7  from:H:\_Conrad lokal\Downloads\AutoIt3  input:H:\_Conrad lokal\Downloads\AutoIt3\_COX\Tests\test.au3
+>16:01:05 AU3Check ended.rc:0
>Running Au3Stripper (16.306.1237.0)  from:H:\_Conrad lokal\Downloads\AutoIt3\SciTE\Au3Stripper cmdline:
+> 0 Au3Stripper v16.306.1237.0 finished merging 22963 lines of code, stripped 10091 comment lines and Merged 451 Continuation lines.
+>        Created:H:\_Conrad lokal\Downloads\AutoIt3\_COX\Tests\test_stripped.au3 with 12421 lines.
+>16:01:06 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  params:-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7  from:H:\_Conrad lokal\Downloads\AutoIt3  input:H:\_Conrad lokal\Downloads\AutoIt3\_COX\Tests\test_stripped.au3
+>16:01:06 AU3Check ended.rc:0
>Running:(3.3.14.2):H:\_Conrad lokal\Downloads\AutoIt3\aut2exe\aut2exe.exe  /in "H:\_Conrad lokal\Downloads\AutoIt3\_COX\Tests\test_stripped.au3" /out "C:\Users\zelckc\AppData\Local\AutoIt v3\Aut2exe\~AU9D8A.tmp.exe" /nopack /comp 2
+>16:01:08 Aut2exe.exe ended.C:\Users\zelckc\AppData\Local\AutoIt v3\Aut2exe\~AU9D8A.tmp.exe. rc:0
>16:01:08 Performing the Program Resource Update steps:
...>Updating Program Version information.
!>16:01:08 Skipping SourceSave because this is an stripped script.rc:2
>16:01:08 Program Resource updating finished successfully.
+>16:01:08 Created program:H:\_Conrad lokal\Downloads\AutoIt3\_COX\Tests\test.exe
+>16:01:08 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 4.826

I think this message is the one: !>16:01:08 Skipping SourceSave because this is an stripped script.rc:2

But I don't know why it can't save that stripped file. That would be ok too. My goal at the end would be to include original unstripped and stripped version both could be excluded with to different parameters. (Why include the stripped version if I can strip the excluded original when needed manually? I found out, that a lot of error messages in faulty scripts point to a wee another line then found in the later stripped version (original scripts were definitely unchanged).)

Conrad


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

I think I understand that issue now. this piece of code was introduced in Obfuscator and coded in a way that the source would only be included when /StripOnly was specified when Obfuscator was ran. Obfuscator is renamed to Au3Stripper but this logic isn't adapted to the updated parameter structure.

I need to think about this one a little longer what is correct now so please add an feature request in our "Bug Tracker" so I won't forget to have that closer look.

Jos 


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Ok, thank you for your information. I use ResourcesEx.au3 only because it works with marcos and variables .In FileInstall() it must be a literal string. It cannot use a variable and because of that I can't use it as a standard function inside an include I include in all of my scripts. Is there another possibility to include my script?

Conrad


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

Quick hack to make it always include the master source?
Changed the lines 2545-2562 in AutoIt3Wrapper.au3: 

; Add original source to Resources
            If $INP_Res_SaveSource = "y" Then
                Local $tempfilein
                If $INP_Run_Au3Stripper = "y" Then
                    If StringInStr($INP_Au3Stripper_Parameters, "/so") Or StringInStr($INP_Au3Stripper_Parameters, "/striponly") Then
                        FileCopy(StringTrimRight($ScriptFile_In, StringLen($ScriptFile_In_Ext)) & '_stripped' & $ScriptFile_In_Ext, $TempDir & "\scriptin.tmp", 1)
                        Write_RC_Console_Msg("Adding stripped Script source to RT_RCDATA,999 in the Output executable.", "", "...", 0)
                    Else
                        Write_RC_Console_Msg("Skipping SourceSave because this is an stripped script.", 2)
                    EndIf
                Else
                    $tempfilein = _TempFile($TempDir)
                    FileCopy($ScriptFile_In, $tempfilein, 1)
                    Write_RC_Console_Msg("Adding original Script source to RT_RCDATA,999 in the Output executable.", "", "...", 0)
                    _Res_Update($rh, $tempfilein, 10, 999, $INP_Res_Language)
                    __DelTempFile($tempfilein)
                EndIf
            EndIf

to:

; Add original source to Resources
            If $INP_Res_SaveSource = "y" Then
                Local $tempfilein = _TempFile($TempDir)
                FileCopy($ScriptFile_In, $tempfilein, 1)
                Write_RC_Console_Msg("Adding original Script source to RT_RCDATA,999 in the Output executable.", "", "...", 0)
                _Res_Update($rh, $tempfilein, 10, 999, $INP_Res_Language)
                __DelTempFile($tempfilein)
            EndIf

Jos :)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Ok. That led to a stripped master source included. I did this instead to have both.

Line 995 from:

$ScriptFile_In = $ScriptFile_In_stripped

To:

Local $ScriptFile_In_Unstripped_For_Res_Update = $ScriptFile_In ; variable including unstripped script - mod by cox
$ScriptFile_In = $ScriptFile_In_stripped

And line 2490ff instead your original posted to:

; Add original source to Resources ; mod by cox
            If $INP_Res_SaveSource = "y" Then
                Local $tempfilein
                If $INP_Run_Au3Stripper = "y" Then
                    $tempfilein = _TempFile($TempDir)
                    FileCopy($ScriptFile_In_Unstripped_For_Res_Update, $tempfilein, 1)
                    Write_RC_Console_Msg("Adding original Script source to RT_RCDATA,999 in the Output executable.", "", "...", 0)
                    _Res_Update($rh, $tempfilein, 10, 999, $INP_Res_Language)
                    __DelTempFile($tempfilein)
                    $tempfilein = _TempFile($TempDir)
                    FileCopy($ScriptFile_In, $tempfilein, 1)
                    Write_RC_Console_Msg("Adding stripped Script source to RT_RCDATA,998 in the Output executable.", "", "...", 0)
                    _Res_Update($rh, $tempfilein, 10, 998, $INP_Res_Language)
                    __DelTempFile($tempfilein)
                Else
                    $tempfilein = _TempFile($TempDir)
                    FileCopy($ScriptFile_In, $tempfilein, 1)
                    Write_RC_Console_Msg("Adding original Script source to RT_RCDATA,999 in the Output executable.", "", "...", 0)
                    _Res_Update($rh, $tempfilein, 10, 999, $INP_Res_Language)
                    __DelTempFile($tempfilein)
                EndIf
            EndIf

Thanks @Jos. Exe has some more kb but always includes the originals this compiled script is made from.

Conrad

P.S. I don't know why line numbers differ but wrapper says Global Const $VERSION = "16.306.1237.0". I thought using the latest updates.


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

I regularly make updates and post them in the Beta directory so line numbers could indeed differ. 
I knew I shouldn't have given that quick hack as I knew there was more to it that would need testing. :)

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I do like it. But understand you completely. I would feel that way too. But here I just needed a short hint.

Conrad


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites
On 16-1-2018 at 8:36 PM, Simpel said:

Thanks @Jos. Exe has some more kb but always includes the originals this compiled script is made from.

I am not going to add the option to save both the original master script and the script source generated by au3stripper  in the original AutoIt3Wrapper as that feels like an overkill. To always add the original master file we could simply use $ScriptFile_In_Org which contains just that, but I quite like the fact that the au3stripper output is just a selfcontained script source that will run all by itself without the need for the right version of any include. 

So am considering to make it optional which source to include, being either Master or Au3Stripper output.

Thoughts?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

  • Similar Content

    • Jos
      By Jos
      Merged the SciTE 3.7.3 source into our version and several other changes and fixes to the supporting utilities.
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      -------------------------------------------------------------------------------------------------- 24-2-2017 *** Merged the SciTE v 3.7.3 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v17.224.935.0 (Jos)     - 16.612.1119.1 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not  specified.     - 16.612.1119.2 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not  specified.     - 16.612.1119.3 Added warning for #AutoIt3Wrapper_UseX64 in case #pragma(out,..)  is used. *** Updated Au3Stripper v17.224.935.0 (Jos)     - 16.612.1119.1 Fixed issue which sometimes was stripping a global const incorrectly     - 16.612.1119.2 Fixed /maxiterations parameter not recognised     - 16.612.1119.3 Fixed increased the max #Au3Stripper_Ignore_Variables to 500 and for #Au3Stripper_Ignore_Funcs to 200     - 16.612.1119.4 Fixed regression introduced in 16.612.1119.1 *** Updated SciTEConfig v17.224.935.0 (Jos)     - 16.306.1119.1 ... *** Updated Tidy v17.224.935.0 (Jos)     - 16.612.1119.1: Fixed Sort_Func function bug when the source contains a BOM. *** Updated CodewiZard v1.5.4.0 (Cyberyeye)     - Fix Icon Ressource Number for Messagebox Tab & ToolTip Tab     - Check/Fix missing includes using AutoIt3Wrapper_Add_Constants=y     - Added Opt("MustDeclareVars", 1) to fix undeclared variables     - Replaced msgbox() magic number by constant name     - Added GUISetIcon var (au3.ico)     - Removed unusefull old AutoIt3Wrapper directive *** Updated Abbreviations (mLipok)     - Updated au3abbrev.properties and helpfile page. --------------------------------------------------------------------------------------------------
      ==> 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.
       
    • Daeth
      By Daeth
      When I try to compile the following code:
      #NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Run_Au3Stripper=y #Au3Stripper_Parameters=/rm #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** OnAutoItExitRegister("_exit") Func _exit() ConsoleWrite("kek") EndFunc The stripped version has the _exit() function stripped. The stripped code:
      #NoTrayIcon OnAutoItExitRegister("_exit") When I check the Au3Stripper log it shows:
      0.00 AutoIt3 Source Au3Stripper v16.612.1119.0 Copyright © Jos van der Zande June 12,2016 0.00 CommandLine Params$: 0.00 ============================== Reading Source For Directive ====================================================== 0.00 Ignore Function: onautoitstart 0.00 Ignore Function: onautoitexit 0.00 Directive Params$:/rm 0.00 lCMD$:/rm 0.00 /RenameMinimum Is this a bug? I know I can fix this with '#Au3Stripper_Ignore_Funcs=_exit'.
      This error also occurs with HotKeySet. The function that HotKeySet points to is stripped.
    • Jos
      By Jos
      11-3-2016: Uploaded a new SciTE4AutoIt3.exe.
      Merged the SciTE 3.6.2 source into our version and several other changes and fixes to the supporting utilities.
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      -------------------------------------------------------------------------------------------------- 6-3-2016 *** Merged the SciTE v 3.6.2 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v16.306.1237.0 (Jos) - 15.920.938.2 removed the check for utf8 for au3check as that is supported - 15.920.938.3 Reverted __ConsoleWrite() to ConsoleWrite for ShowStdOutErr() - 15.920.938.4 added info for codepage and utf8 check to header. - 15.920.938.5 Only warn about #RequireAdmin for Run option. - 15.920.938.6 fixed issue when these were used together: #AutoIt3Wrapper_Run_Au3Stripper=y #AutoIt3Wrapper_Res_SaveSource=Y - 15.920.938.8 Modifications from DickG for the GUI Control locations and sizes to fit other screen sizes. *** Updated Au3Stripper v16.306.1237.0 (Jos) - 15.920.938.2 Fixed error line number for statements using unresolved func name Added logic to remove the () behind the Func in case of this type of lines: Call(Example3(), 'fff') NewFoundWord$ is then="Example3()" - 15.920.938.3 Added minus sign support to preexpand variables. - 15.920.938.4 Fixed crash in the get firstword logic to limit the returned length to 500. - 15.920.938.5 Fixed /PE replacing the variable in a For $x= statement. *** Updated SciTEConfig v16.306.1237.0 (Jos) - 15.920.938.1 hide/unhide when opening Tidy.ini to avoid a hidden msgbox hanging SciTEConfig.au3 - 15.920.938.2 Added the creation of includes.txt for AutoComplete Standard UDFs when "#include" is typed. - 15.920.938.3 Fixed for CallTip not always updating correctly. *** Updated Tidy v16.306.1237.0 (Jos) - 15.920.938.1 Fixed issue with space removal between [ and Then - 15.920.938.2 #forceref and #forcedef now also tidied. - 15.920.938.3 Enfoces a single space between end-of-line and inline comment - 15.920.938.4 Fixed regression extra space between EndFunc and #EndRegion and the added comments. --------------------------------------------------------------------------------------------------   ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check the newly formatted the online documentation for an overview of all extra's you get with this installer.
    • rudi
      By rudi
      Hi.
      Problem was using two compilation options at the same time:
       
      "Save a copy of the Scriptsource in the output program resources." on Tab "Resource Update", and ... "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?
       
       
       
      any suggestions?

      Regards, Rudi.
       
    • TouchOdeath
      By TouchOdeath
      #include <IE.au3> #AutoIt3Wrapper_Run_Au3Stripper=y Local $oIE = _IECreate("https://" & "somesite.com", 0, 1, 1) I recently updated to 3.3.14.2
      If I build this script I consistently get:
      -### 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: __ieinternalerrorhandlerderegister
      E:\apps\AutoIt3\include\IE.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) 
      I reinstalled autoit to make sure that wasn't the issue, but didn't fix the problem.  Any ideas??  For now I'll downgrade til a solution is found.