JohnOne Posted October 18, 2012 Posted October 18, 2012 If that works without doubling the lines in the script to be compiled, it is amazing and I want your babies. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
FireFox Posted October 18, 2012 Posted October 18, 2012 (edited) If that works without doubling the lines in the script to be compiledIt doubles the lines... But it's only a line number assigned to a variable. If I improve it, I can reduce the doubling to 1/3. (strip statements/comments/includes) Edited October 18, 2012 by FireFox
Developers Jos Posted October 18, 2012 Developers Posted October 18, 2012 This can be improved, It's only an idea.You are getting close, but forgetting the commentlines.Try stripping a source file with Obfuscator using /SO or /MO and compare them.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.
FireFox Posted October 18, 2012 Posted October 18, 2012 (edited) You are getting close, but forgetting the commentlines.Try stripping a source file with Obfuscator using /SO or /MO and compare them.JosYes, but I think it will be more simple to code if I skip the lines with the script itself instead of comparing the files. (which requires to run the obfuscator)And It will be more nice to use if it automatically compile after adding the script line numbers. Edited October 18, 2012 by FireFox
JScript Posted October 18, 2012 Author Posted October 18, 2012 @FireFoxThank you, I really liked this concept!!!This is wonderful, imagine if it could be added to AutoIt3Wrapper... :ILA2: http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JohnOne Posted October 18, 2012 Posted October 18, 2012 I once done a similar thing with Mr Creators _OnAutoItErrorRegister But the lines were only added at start of function and contained the function name I just thought the cost of updating a var for every line would be too much. Has anyone tested the overhead? (if even it is possible) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
JScript Posted October 18, 2012 Author Posted October 18, 2012 In the tests that I am doing so far all are normal... JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted October 19, 2012 Author Posted October 19, 2012 (edited) Fixes:0.10.1912.2600b19/10/2012 -> The UDF was almost completely rewritten, now no longer need to include _AdlibEnhance.au3. The detection of error is instant and does not consume more CPU. Interface compatibility with Windows XPRegards,João Carlos. Edited October 19, 2012 by JScript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
FireFox Posted October 19, 2012 Posted October 19, 2012 But the lines were only added at start of function and contained the function nameI did not know that, not bad.@JScript,Great Br, FireFox.
ricky Posted October 19, 2012 Posted October 19, 2012 Thanks for this new version. Why the script takes more than 10 sec to write (2 lines) in the file? Why don't create a msgbox to inform about the end of the process (write in the file)?
JScript Posted October 19, 2012 Author Posted October 19, 2012 (edited) Thanks for this new version. Why the script takes more than 10 sec to write (2 lines) in the file?Which OS do you use? Here on my Win 7 x86 works normally...Why don't create a msgbox to inform about the end of the process (write in the file)?Done, thanks!@FireFoxYou're welcome!JS Edited October 19, 2012 by JScript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted October 19, 2012 Author Posted October 19, 2012 I tested it in a VM with Win XP worked perfectly and fast! JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
guinness Posted October 19, 2012 Posted October 19, 2012 This UDF has been greatly improved. Well done. 5* from me. 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
JScript Posted October 19, 2012 Author Posted October 19, 2012 @guinnessThank you my friend, I am quite glad of it! JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JohnOne Posted October 19, 2012 Posted October 19, 2012 Agreed, it's superb. For even more improvement I'd suggest adding the function name, should only be 1 extra line per function. A little more tricky would be support for project includes. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
JScript Posted October 19, 2012 Author Posted October 19, 2012 Thank you @JohnOne!Several improvements will be made in the UDF including line numbering!JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
ricky Posted October 19, 2012 Posted October 19, 2012 5* for me. More one improvement, if the exception is so big, there is no scroll bar! JScript 1
JScript Posted October 19, 2012 Author Posted October 19, 2012 I loved the hint, will be done this way, thanks! JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted October 19, 2012 Author Posted October 19, 2012 (edited) More one improvement, if the exception is so big, there is no scroll bar!Done, thanks!The version remains the sameJS Edited October 19, 2012 by JScript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now