Chimaera Posted October 5, 2011 Share Posted October 5, 2011 Aah so cant be done like that then i wonder why Scite is fine using the _, yet Obfuscator is not If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
guinness Posted October 5, 2011 Share Posted October 5, 2011 Because SciTE is different to Obfuscator as it tries to optimise the script, plus it's taking into consideration the certain limitations, search AutoIt3 Limits/defaults in the Help file. 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Chimaera Posted October 5, 2011 Share Posted October 5, 2011 But its precisely that 4096 limitation that melba told me to use the underscore to stop the script kicking off. I guess at worst i shall have to make one array into 20 arrays and concatenate them together or something of that nature unless Jos has a way round this. Thanks for the suggestions If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
guinness Posted October 5, 2011 Share Posted October 5, 2011 But was that about strings or arrays? Why not use my idea of StringSplit()? $sString = "Utorrent|Opera|FireFox|" $sString &= "Explorer|Dropbox|Spotify" $aArray = StringSplit($sString, "|") 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Developers Jos Posted October 5, 2011 Author Developers Share Posted October 5, 2011 ;Obfuscator Error: A line exceeds max lenght of 4096. This needs to be changed to allow string encryption yes i have a very long line but after conversation with melba, it was suggested i use _ to split the line which i did and it stopped all the errors in scite and works fine. Why does Obfuscator not register the _ and allow the script to carry on like Scite does? Hopefully there is a solution ?Nothing needs to be changed and I can assure you it won't anytime soon. 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 More sharing options...
archrival Posted October 6, 2011 Share Posted October 6, 2011 I'll try to ask my question a different way. Is there a way to tell the obfuscator that I've added the appropriate functions and variables that are used in a DllCallbackRegister to the Ignore_Funcs and Ignore_Variables directives? For example: #Obfuscator_Ignore_Funcs=_TestFunction _Test("_TestFunction", 1) Func _Test($testfunction, $dwFlags) $handle = DllCallbackRegister($testfunction, "BOOLEAN", "wstr;LONG_PTR") DllCall("test.dll", "BOOLEAN", "CallbackTest", "ptr", DllCallbackGetPtr($handle), "DWORD", $dwFlags) EndFunc Func _TestFunction($value1, $value2) ConsoleWrite($value1 & @TAB & $value2) EndFunc The obfuscator will complain that I'm using DllCallbackRegister, even though I've told it not to do anything with the function being called by DllCallbackRegister. Is there any way around this? Link to comment Share on other sites More sharing options...
wraithdu Posted October 6, 2011 Share Posted October 6, 2011 No. Just ignore the warning. Link to comment Share on other sites More sharing options...
archrival Posted October 6, 2011 Share Posted October 6, 2011 No. Just ignore the warning. Is there any possibility of something like this being added? In an automated build environment I'd hate to have to watch for the Window and click the button. Link to comment Share on other sites More sharing options...
rchockxm Posted October 6, 2011 Share Posted October 6, 2011 nice jobs!! thanks. rchockxm Link to comment Share on other sites More sharing options...
guinness Posted October 6, 2011 Share Posted October 6, 2011 Chimaera, Here is an example from my PasteBin application, I place the array in a function and then turn off/on Obfuscator, when I need the array I just use $aArray = _Format(), hope this helps? #Obfuscator_Off Func _Format() Local $aFormat[201][2] = [[200, 2],["6502acme", "6502 ACME Cross Assembler"],["6502kickass", "6502 Kick Assembler"],["6502tasm", "6502 TASM/64TASS"],["68000devpac", "Motorola 68000 HiSoft Dev"],["abap", "ABAP"],["actionscript", "ActionScript"],["actionscript3", "ActionScript 3"], _ ["ada", "Ada"],["algol68", "ALGOL 68"],["apache", "Apache Log"],["applescript", "AppleScript"],["apt_sources", "APT Sources"],["asm", "ASM (NASM)"],["asp", "ASP"],["autoconf", "autoconf"],["autohotkey", "Autohotkey"],["autoit", "AutoIt"],["avisynth", "Avisynth"],["awk", "Awk"],["bascomavr", "BASCOM AVR"], _ ["bash", "Bash"],["basic4gl", "Basic4GL"],["bf", "BrainFuck"],["bibtex", "BibTeX"],["blitzbasic", "Blitz Basic"],["bnf", "BNF"],["boo", "BOO"],["c", "C"],["c_loadrunner", "C: Loadrunner"],["c_mac", "C for Macs"],["caddcl", "CAD DCL"],["cadlisp", "CAD Lisp"],["cfdg", "CFDG"],["cfm", "ColdFusion"],["chaiscript", "ChaiScript"], _ ["cil", "C Intermediate Language"],["clojure", "Clojure"],["cmake", "CMake"],["cobol", "COBOL"],["coffeescript", "CoffeeScript"],["cpp", "C++"],["cpp-qt", "C++ (with QT extensions)"],["csharp", "C#"],["css", "CSS"],["cuesheet", "Cuesheet"],["d", "D"],["dcs", "DCS"],["delphi", "Delphi"],["diff", "Diff"], _ ["div", "DIV"],["dos", "DOS"],["dot", "DOT"],["e", "E"],["ecmascript", "ECMAScript"],["eiffel", "Eiffel"],["email", "Email"],["epc", "EPC"],["erlang", "Erlang"],["f1", "Formula One"],["falcon", "Falcon"],["fo", "FO Language"],["fortran", "Fortran"],["freebasic", "FreeBasic"],["fsharp", "F#"],["gambas", "GAMBAS"], _ ["gdb", "GDB"],["genero", "Genero"],["genie", "Genie"],["gettext", "GetText"],["glsl", "OpenGL Shading"],["gml", "Game Maker"],["gnuplot", "Ruby Gnuplot"],["go", "Go"],["groovy", "Groovy"],["gwbasic", "GwBasic"],["haskell", "Haskell"],["hicest", "HicEst"],["hq9plus", "HQ9 Plus"],["html4strict", "HTML"], _ ["html5", "HTML 5"],["icon", "Icon"],["idl", "IDL"],["ini", "INI file"],["inno", "Inno Script"],["intercal", "INTERCAL"],["io", "IO"],["j", "J"],["java", "Java"],["java5", "Java 5"],["javascript", "JavaScript"],["jquery", "jQuery"],["kixtart", "KiXtart"],["klonec", "Clone C"],["klonecpp", "Clone C++"], _ ["latex", "Latex"],["lb", "Liberty BASIC"],["lisp", "Lisp"],["llvm", "LLVM"],["locobasic", "Loco Basic"],["logtalk", "Logtalk"],["lolcode", "LOL Code"],["lotusformulas", "Lotus Formulas"],["lotusscript", "Lotus Script"],["lscript", "LScript"],["lsl2", "Linden Scripting"],["lua", "Lua"],["m68k", "M68000 Assembler"], _ ["magiksf", "MagikSF"],["make", "Make"],["mapbasic", "MapBasic"],["matlab", "MatLab"],["mirc", "mIRC"],["mmix", "MIX Assembler"],["modula2", "Modula 2"],["modula3", "Modula 3"],["mpasm", "MPASM"],["mxml", "MXML"],["mysql", "MySQL"],["newlisp", "newLISP"],["nsis", "NullSoft Installer"],["oberon2", "Oberon 2"], _ ["objc", "Objective C"],["objeck", "Objeck Programming Langua"],["ocaml", "OCaml"],["ocaml-brief", "OCalm Brief"],["oobas", "Openoffice BASIC"],["oracle11", "Oracle 11"],["oracle8", "Oracle 8"],["oxygene", "Delphi Prism (Oxygene)"],["oz", "Oz"],["pascal", "Pascal"],["pawn", "PAWN"],["pcre", "PCRE"],["per", "Per"], _ ["perl", "Perl"],["perl6", "Perl 6"],["pf", "OpenBSD PACKET FILTER"],["php", "PHP"],["php-brief", "PHP Brief"],["pic16", "Pic 16"],["pike", "Pike"],["pixelbender", "Pixel Bender"],["plsql", "PL/SQL"],["postgresql", "PostgreSQL"],["povray", "POV-Ray"],["powerbuilder", "PowerBuilder"],["powershell", "Power Shell"], _ ["proftpd", "ProFTPd"],["progress", "Progress"],["prolog", "Prolog"],["properties", "Properties"],["providex", "ProvideX"],["purebasic", "PureBasic"],["pycon", "PyCon"],["python", "Python"],["q", "q/kdb+"],["qbasic", "QBasic"],["rails", "Rails"],["rebol", "REBOL"],["reg", "REG"],["robots", "Robots"], _ ["rpmspec", "RPM Spec"],["rsplus", "R"],["ruby", "Ruby"],["sas", "SAS"],["scala", "Scala"],["scheme", "Scheme"],["scilab", "Scilab"],["sdlbasic", "SdlBasic"],["smalltalk", "Smalltalk"],["smarty", "Smarty"],["sql", "SQL"],["systemverilog", "SystemVerilog"],["tcl", "TCL"],["teraterm", "Tera Term"],["text", "None"], _ ["thinbasic", "thinBasic"],["tsql", "T-SQL"],["typoscript", "TypoScript"],["unicon", "Unicon"],["uscript", "UnrealScript"],["vala", "Vala"],["vb", "VisualBasic"],["vbnet", "VB.NET"],["verilog", "VeriLog"],["vhdl", "VHDL"],["vim", "VIM"],["visualfoxpro", "VisualFoxPro"],["visualprolog", "Visual Pro Log"], _ ["whitespace", "WhiteSpace"],["whois", "WHOIS"],["winbatch", "Win Batch"],["xbasic", "XBasic"],["xml", "XML"],["xorg_conf", "Xorg Config"],["xpp", "XPP"],["yaml", "YAML"],["z80", "Z80 Assembler"],["zxbasic", "ZXBasic"],["4cs", "4CS"]] Return $aFormat EndFunc ;==>_Format #Obfuscator_On 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Developers Jos Posted October 6, 2011 Author Developers Share Posted October 6, 2011 (edited) Is there any possibility of something like this being added? In an automated build environment I'd hate to have to watch for the Window and click the button. How do you see this working? The call statements is calling an, to Obfuscator, unknown function and you want Obfuscator not to report it assuming you did your job correctly with your "#Obfuscator_Ignore_Funcs=" ? This is what I can check with Obfuscator so won't generate a warning/error: Func _Test($testfunction, $dwFlags) $handle = DllCallbackRegister("_TestFunction" , "BOOLEAN", "wstr;LONG_PTR") DllCall("test.dll", "BOOLEAN", "CallbackTest", "ptr", DllCallbackGetPtr($handle), "DWORD", $dwFlags) EndFunc This will as I do not have any possibility to verify it is correct: Func _Test($testfunction, $dwFlags) $handle = DllCallbackRegister($testfunction, "BOOLEAN", "wstr;LONG_PTR") DllCall("test.dll", "BOOLEAN", "CallbackTest", "ptr", DllCallbackGetPtr($handle), "DWORD", $dwFlags) EndFunc Jos Edited October 6, 2011 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 More sharing options...
archrival Posted October 6, 2011 Share Posted October 6, 2011 How do you see this working? The call statements is calling an, to Obfuscator, unknown function and you want Obfuscator not to report it assuming you did your job correctly with your "#Obfuscator_Ignore_Funcs=" ? This is what I can check with Obfuscator so won't generate a warning/error: Func _Test($testfunction, $dwFlags) $handle = DllCallbackRegister("_TestFunction" , "BOOLEAN", "wstr;LONG_PTR") DllCall("test.dll", "BOOLEAN", "CallbackTest", "ptr", DllCallbackGetPtr($handle), "DWORD", $dwFlags) EndFunc This will as I do not have any possibility to verify it is correct: Func _Test($testfunction, $dwFlags) $handle = DllCallbackRegister($testfunction, "BOOLEAN", "wstr;LONG_PTR") DllCall("test.dll", "BOOLEAN", "CallbackTest", "ptr", DllCallbackGetPtr($handle), "DWORD", $dwFlags) EndFunc Jos Actually I totally understand the issue, I'm just hoping for a directive like #Obfuscator_Ignore_Warnings or something that if set correctly will just continue with the obfuscation/compile. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 6, 2011 Author Developers Share Posted October 6, 2011 Actually I totally understand the issue, I'm just hoping for a directive like #Obfuscator_Ignore_Warnings or something that if set correctly will just continue with the obfuscation/compile.Is not going to happen knowing the average audience using the tool.I am sure you are not within this catagory, but there will be many that assume by suppressing the warning the problem will go away. 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 More sharing options...
archrival Posted October 6, 2011 Share Posted October 6, 2011 Is not going to happen knowing the average audience using the tool.I am sure you are not within this catagory, but there will be many that assume by suppressing the warning the problem will go away. Ok, thank you. Link to comment Share on other sites More sharing options...
Chimaera Posted October 9, 2011 Share Posted October 9, 2011 getting an error i dont understand -###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script. >### current Func: _WinAPI_SetLayeredWindowAttributes C:\Program Files (x86)\AutoIt3\include\WinAPI.au3(5364,1) Warning for line:$i_transcolor = Execute('0x00' & StringMid($i_transcolor, 5, 2) & StringMid($i_transcolor, 3, 2) & StringMid($i_transcolor, 1, 2)) -############################################################################################# -#### Obfuscator Found 1 Error(s)!!!! This means your script could have problems running properly. #### -############################################################################################# +> Obfuscator v1.0.29.0 finished obfuscating 6661 lines, stripped 10685 comment lines. created:I:\## Projects ## etc etc Now since the last time i obfuscated ive added this If FileExists (@HomeDrive & "\RegBackup\HKCU_Run.reg") Then $time = FileGetTime(@HomeDrive & "\RegBackup\HKCU_Run.reg", 1) $yyyymd = $time[0] & "/" & $time[1] & "/" & $time[2] $iDateCalc = _DateDiff( 'D', $yyyymd, _NowCalc()) Else $iDateCalc = 60 EndIf If $iDateCalc < 7 Then GUICtrlSetState($RestoreButton, $GUI_ENABLE) Else GUICtrlSetState($RestoreButton, $GUI_DISABLE) EndIf Now through a process of elimination it throws the same error until you hide the #include <Date.au3> hiding the code still gets the error as long as #include <Date.au3> is there Then you get this >"C:\Program Files (x86)\AutoIt3\SciTE\Obfuscator\Obfuscator.exe" "I:\## Projects ##\etc etc.au3" +> Obfuscator v1.0.29.0 finished obfuscating 2175 lines, stripped 1447 comment lines. created:I:\## Projects ##\etc etc.au3 >Exit code: 0 Time: 2.118 Hope this helps If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Developers Jos Posted October 9, 2011 Author Developers Share Posted October 9, 2011 (edited) Winapi.au3 is included these days when including date.au3. The developers of the UDF's don't really make things Obfuscator proof so this is the result. Adding this line should make it work fine as long as the Func with the Execute isn't required for your script: #Obfuscator_Parameters=/sf Jos Edit: Just checked and saw it is fixed in the current Beta. Edited October 9, 2011 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 More sharing options...
Chimaera Posted October 9, 2011 Share Posted October 9, 2011 Ok thanks for the prompt replyI get this now so all seems well >"C:\Program Files (x86)\AutoIt3\SciTE\Obfuscator\Obfuscator.exe" "I:\## Projects ##\etc etc.au3"- Iteration 1 Strip Functions result: Output 1644 lines and stripped 3582 lines- Iteration 2 Strip Variables result: Output 1644 lines and stripped 0 lines- Iteration 3 Start the actual Obfuscation.+> Source 15926 lines 911827 Characters.+> Stripped 3582 Func/Var lines and 10688 comment lines, Total 837173 Characters.+> Saved 89% lines 91% Characters.+> Obfuscator v1.0.29.0 finished obfuscating 1743 lines, created:I:\## Projects ##\etc etc_Obfuscated.au3>Exit code: 0 Time: 4.626 If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Developers Jos Posted October 9, 2011 Author Developers Share Posted October 9, 2011 See my EDIT in my previous post 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 More sharing options...
Chimaera Posted October 9, 2011 Share Posted October 9, 2011 Ok is that beta of scite or obfuscator? I probably wont change version as i dont run betas but would be worth knowing for later If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Developers Jos Posted October 9, 2011 Author Developers Share Posted October 9, 2011 Ok is that beta of scite or obfuscator?AutoIt3 Beta, Obfuscator will never be able to cope with this, 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 More sharing options...
Recommended Posts