Jump to content

New SciTE4AutoIt3 available with SciTE v3.4.1


Jos
 Share

Recommended Posts

Jos, I found this variables not stripped (I guess you already knew that):

Global Const $r = 0x400
Global Const $s = $r + 8
Global Const $t = $r + 7

Couldn't they be evaluated and then stripped?

Probably not considering the equations could get pretty complex and require being able to potentially execute the entire script to be sure whether it could cancel it out like that.

Link to comment
Share on other sites

Au3Check issues should be reported to Trac.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

Using the latest AU3Stripper (1.2.0.4) there is inconsistent behavior removing unused variables using /so switch. Sometimes unused vars are not removed and other times, used vars are removed. If the first var in a line equates to a string, but is unused, all the vars on that line are stripped, unless the second var also equates to string, then all vars are kept, even the unused first var.  See below...

_test()
Func _test()
    Local $a=1, $b, $c
    ConsoleWrite($b & @CRLF)
    ConsoleWrite($c & @CRLF)
EndFunc

$a is NOT stripped.
_test()
Func _test()
    Local $a="1", $b, $c
    ConsoleWrite($b & @CRLF)
    ConsoleWrite($c & @CRLF)
EndFunc

$a, $b & $c are ALL stripped
_test()
Func _test()
    Local $a="1", $b="2", $c
    ConsoleWrite($b & @CRLF)
    ConsoleWrite($c & @CRLF)
EndFunc

$a is NOT stripped
.... GOTOs? We don't need no stinkin' GOTOs! ....
Link to comment
Share on other sites

  • Developers

SciteConfig.exe has problems with some antivirus: http://www.virustotal.com/it/file/1793f84b48d88408516bac8323432ebb5da3df1d8b7f2ebd617b571cece8e9b1/analysis/1398526998/   :ermm:

Edit: can't install latest Scite4Autoit, where can i recover previous version, please?

SciTEconfig is an AutoIt3 script so please contact your AV company.

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

  • Developers

 

Using the latest AU3Stripper (1.2.0.4) there is inconsistent behavior removing unused variables using /so switch. Sometimes unused vars are not removed and other times, used vars are removed. If the first var in a line equates to a string, but is unused, all the vars on that line are stripped, unless the second var also equates to string, then all vars are kept, even the unused first var.  See below...

_test()
Func _test()
    Local $a=1, $b, $c
    ConsoleWrite($b & @CRLF)
    ConsoleWrite($c & @CRLF)
EndFunc

$a is NOT stripped.
_test()
Func _test()
    Local $a="1", $b, $c
    ConsoleWrite($b & @CRLF)
    ConsoleWrite($c & @CRLF)
EndFunc

$a, $b & $c are ALL stripped
_test()
Func _test()
    Local $a="1", $b="2", $c
    ConsoleWrite($b & @CRLF)
    ConsoleWrite($c & @CRLF)
EndFunc

$a is NOT stripped

 

I have uploaded a new beta v1.2.0.5 that should fix this issue.

Thanks for your report.

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

Thanks, all tests working fine now.

Thanks for testing.

I have made one other modification to fix an other issue and uploaded v1.2.0.6 to the Beta directory.

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

 

An intend bug:

Func Test()
    Return "0123456789" & _
            "0123456789"
EndFunc

Press Enter after EndFunc and it turns to this:

Func Test()
    Return "0123456789" & _
            "0123456789"
        EndFunc

This how the original code works. It goes one indent back on an EndIf;Wend;EndFunc  etc.

Not sure how easy it is to fix this as the LUA code is not able to keep the Indent levels.

Suggestions are welcome.

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

SciTE
Version 3.4.1
 
compiled fine in previous version and even this one, with 

 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****

#AutoIt3Wrapper_Icon=imagesCalendar2TV.ico
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Fileversion=0.0.0.9
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y3
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Run_Tidy=y
#AutoIt3Wrapper_Run_Obfuscator=y
#Obfuscator_Parameters=/om /striponly
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

 

though of course, some 'complaints'

 

+>11:39:40 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.4.1.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)

+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersTechCoderAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersTechCoderAppDataLocalAutoIt v3SciTE 
! Obfuscator support has been discontinued and is replaced by Au3Stripper using "#Au3Stripper_" directives.
! The directive to run Au3Stripper is: #AutoIt3Wrapper_Run_Au3Stripper=y  ; Default is n
! #Au3Stripper_Parameters options are: 
!    /so or /striponly         : This is the default when no parameters are provided. same as /sf=1 /sv=1
!    /sf or /StripFunctions    : 1=Strip all unused Func's (1=default)
!    /sv or /StripVariables    : 1=Strip all unused Global var records (1=default)
!    /mo or /mergeonly         : Just merges the Include files into the source and strips the Comments, just like aut2exe would do.
!    /soi or /striponlyincludes: same as /striponly but will leave master script untouched.
!    /mi or /MaxIterations     : Sets the maximum Iterations Au3Stripper will perform. Default is 5.
!    /Beta                     : Use Beta Includes. Dont use AutoIt3Wrapper_Run_Au3Stripper.
-> 4 Change(s) made.
+>11:42:15 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 155

 

changed to run the Au3Stripper instead

 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****

#AutoIt3Wrapper_Icon=imagesCalendar2TV.ico
#AutoIt3Wrapper_Res_Fileversion=0.0.0.9
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_LegalCopyright=Copyright CashFlowProducts.com All Rights Reserved
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=highestAvailable
#AutoIt3Wrapper_Run_Tidy=y
#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/mo /soi
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

 

get this........

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:UsersTechCoderAll ProgramsK2.0C2T.au3"

+>11:46:49 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.4.1.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersTechCoderAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersTechCoderAppDataLocalAutoIt v3SciTE 
-> No changes made..
>Running Tidy (2.4.0.1)  from:C:Program Files (x86)AutoIt3SciTEtidy
+>11:46:53 Tidy ended.rc:0
>Running AU3Check (3.3.10.2)  from:C:Program Files (x86)AutoIt3  input:C:UsersTechCoderAll ProgramsK2.0C2T.au3
+>11:46:53 AU3Check ended.rc:0
>Running Au3Stripper (1.2.0.0)  from:C:Program Files (x86)AutoIt3SciTEAu3Stripper cmdline:
- 1.41 Iteration 1 Strip Functions result: Output  4056 lines, stripped 13623 Func lines and 14021 Commentlines
- 1.81 Iteration 2 Strip Variables result: Output  169 lines and stripped 3887 lines
- 1.84 Iteration 3 Strip Variables result: Output  169 lines and stripped 0 lines
+> Source    31700 lines 1577757 Characters.
+> Stripped  17510 Func/Var lines and  14021 comment lines, Total 1566606 Characters.
+> Saved     99% lines 99% Characters.
+> 0 Au3Stripper v1.2.0.0 finished created:C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3
+>11:46:55 Au3Stripper ended.rc:0
>Running AU3Check (3.3.10.2)  from:C:Program Files (x86)AutoIt3  input:C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(14,43) : warning: $tagNMHDR: possibly used before declaration.
Global Const $tagNMCOMBOBOXEX = $tagNMHDR &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(28,103) : warning: $tagRECT: possibly used before declaration.
Global Const $tagNMLVCUSTOMDRAW = "struct;" & $tagNMHDR & ";dword dwDrawStage;handle hdc;" & $tagRECT &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(33,11) : warning: $tagPOINT: possibly used before declaration.
$tagPOINT &
~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(34,91) : warning: $tagSYSTEMTIME: possibly used before declaration.
Global Const $tagMCHITTESTINFO = "uint Size;" & $tagPOINT & ";uint Hit;" & $tagSYSTEMTIME &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(93,53) : warning: $KF_EXTENDED: possibly used before declaration.
Global Const $LLKHF_EXTENDED = BitShift($KF_EXTENDED,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(94,51) : warning: $KF_ALTDOWN: possibly used before declaration.
Global Const $LLKHF_ALTDOWN = BitShift($KF_ALTDOWN,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(95,41) : warning: $KF_UP: possibly used before declaration.
Global Const $LLKHF_UP = BitShift($KF_UP,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(99,59) : warning: $aArray: possibly used before declaration.
If @Compiled and _FileReadToArray("mp-config.txt", $aArray)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(100,15) : warning: $DemoMode: possibly used before declaration.
$INI[$DemoMode]
~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(100,70) : warning: $INI possibly not declared/created yet
$INI[$DemoMode] = IniRead("mp-config.txt", "Module1", "DemoMode", '')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(101,18) : warning: $ProgramPath: possibly used before declaration.
$INI[$ProgramPath]
~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(102,21) : warning: $ActivationTime: possibly used before declaration.
$INI[$ActivationTime]
~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(103,19) : warning: $SerialNumber: possibly used before declaration.
$INI[$SerialNumber]
~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(104,21) : warning: $RegisteredName: possibly used before declaration.
$INI[$RegisteredName]
~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(105,22) : warning: $RegisteredEmail: possibly used before declaration.
$INI[$RegisteredEmail]
~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(14,43) : error: $tagNMHDR: undeclared global variable.
Global Const $tagNMCOMBOBOXEX = $tagNMHDR &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(28,103) : error: $tagRECT: undeclared global variable.
Global Const $tagNMLVCUSTOMDRAW = "struct;" & $tagNMHDR & ";dword dwDrawStage;handle hdc;" & $tagRECT &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(33,11) : error: $tagPOINT: undeclared global variable.
$tagPOINT &
~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(34,91) : error: $tagSYSTEMTIME: undeclared global variable.
Global Const $tagMCHITTESTINFO = "uint Size;" & $tagPOINT & ";uint Hit;" & $tagSYSTEMTIME &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(93,53) : error: $KF_EXTENDED: undeclared global variable.
Global Const $LLKHF_EXTENDED = BitShift($KF_EXTENDED,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(94,51) : error: $KF_ALTDOWN: undeclared global variable.
Global Const $LLKHF_ALTDOWN = BitShift($KF_ALTDOWN,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(95,41) : error: $KF_UP: undeclared global variable.
Global Const $LLKHF_UP = BitShift($KF_UP,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(99,59) : error: $aArray: undeclared global variable.
If @Compiled and _FileReadToArray("mp-config.txt", $aArray)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(100,15) : error: $DemoMode: undeclared global variable.
$INI[$DemoMode]
~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(101,18) : error: $ProgramPath: undeclared global variable.
$INI[$ProgramPath]
~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(102,21) : error: $ActivationTime: undeclared global variable.
$INI[$ActivationTime]
~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(103,19) : error: $SerialNumber: undeclared global variable.
$INI[$SerialNumber]
~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(104,21) : error: $RegisteredName: undeclared global variable.
$INI[$RegisteredName]
~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(105,22) : error: $RegisteredEmail: undeclared global variable.
$INI[$RegisteredEmail]
~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(99,59) : error: _FileReadToArray(): undefined function.
If @Compiled and _FileReadToArray("mp-config.txt", $aArray)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(115,35) : error: __WINVER(): undefined function.
Global Const $__WINVER = __WINVER()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(162,28) : error: _hide_all(): undefined function.
HotKeySet("!k", "_hide_all")
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(163,33) : error: _FileCreate(): undefined function.
If _FileCreate("Calendar2TV.log")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(165,80) : error: _FileWriteLog(): undefined function.
_FileWriteLog($hFile, "******************  Program restart *******************")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3"(169,13) : error: Calendar2TV(): undefined function.
Calendar2TV()
~~~~~~~~~~~~^
C:UsersTechCoderAll ProgramsK2.0C2T_stripped.au3 - 20 error(s), 15 warning(s)
!>11:46:55 AU3Check ended. Press F4 to jump to next error.rc:2
+>11:46:55 AutoIt3Wrapper Finished.
>Exit code: 2    Time: 6.151
 

 

Link to comment
Share on other sites

  • Developers

First try the current available beta of Au3Strpper to see if that solved it or else I need a reproducer script to be able to investigate.

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

Well, I never touched LUA and I'm not able to help, but I'm able to press Ctrl+T each time ;) Fair enough.

Found a way to make it much simpler to "fix" indentations and will soon release an Beta update for AutoItIndentFix.lua.

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

First try the current available beta of Au3Strpper to see if that solved it or else I need a reproducer script to be able to investigate.

Jos

"solved"? = dunno - runs quickly and drops off the screen

I did a capture and see it says 

 

C:pathinfo.......apiau3.api Not found!

+> 0 Au3Stripper v1.2.0.6 finished merging 34765 lines of code, stripped 15431

comment lines and Merged 0 Continuation lines.

+>            Created: C:pathinfofilename_stripped.au3 with 19334 lines.

log says 

 

0.00 AutoIt3 Source Au3Stripper v1.2.0.6   Copyright © Jos van der Zande  April 27, 2014

0.00 CommandLine  Params$:
48.88 ============================== Reading Source For Directive ======================================================
48.88 Ignore Function: onautoitstart
48.88 Ignore Function: onautoitexit
48.88 Directive  Params$:/mo /soi 
48.88  lCMD$:/mo
48.88  /MergeOnly 
48.88  lCMD$:/soi
48.88  /striponlyincludes 
 

 

tried loading the stripped code and running in SciTE

 

+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersTechCoderAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersTechCoderAppDataLocalAutoIt v3SciTE 

! Invalid AutoIt3Wrapper directive Keyword:#Au3Stripper_Off with value:#Obfuscator_Off
! Invalid AutoIt3Wrapper directive Keyword:#Au3Stripper_On with value:#Obfuscator_On
! Obfuscator support has been discontinued and is replaced by Au3Stripper using "#Au3Stripper_" directives.
! The directive to run Au3Stripper is: #AutoIt3Wrapper_Run_Au3Stripper=y  ; Default is n
! #Au3Stripper_Parameters options are: 
!    /so or /striponly         : This is the default when no parameters are provided. same as /sf=1 /sv=1
!    /sf or /StripFunctions    : 1=Strip all unused Func's (1=default)
!    /sv or /StripVariables    : 1=Strip all unused Global var records (1=default)
!    /mo or /mergeonly         : Just merges the Include files into the source and strips the Comments, just like aut2exe would do.
!    /soi or /striponlyincludes: same as /striponly but will leave master script untouched.
!    /mi or /MaxIterations     : Sets the maximum Iterations Au3Stripper will perform. Default is 5.
!    /Beta                     : Use Beta Includes. Dont use AutoIt3Wrapper_Run_Au3Stripper.
>Running Tidy (2.4.0.1)  from:C:Program Files (x86)AutoIt3SciTEtidy
 
Link to comment
Share on other sites

stripped file using the download beta = 19338 lines

stripped file using SciTE compile = 188 lines

Interesting note (hope it helps)

- stops at 20 errors

- stops right after the call to the main function 

- the last error being 'undefined function'

program runs fine with 'Go' - no errors

uses mostly standard UDFs plus a couple from the forum and two I built.  I can zip them all up and send them to you if needed.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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