![]() ![]() # The currently used tab.size, which is replaced by spaces Or add a property to your "SciTEUser.properties" to have more flexibility: In this script (last line), "TabReplace_FileInSciTE(2)" or "TabReplace_FileInSciTE(8)". In the opened document, all TAB will be replaced by the number of spaces corresponding to the TAB position in the line.Then change the last line in this script to: TabReplace_FileInSciTE(props) # Without this property or with empty value "4" is used. In.: _line A line of text whose TAB are to be replaced by spaces. : _tabsize TAB size in number of characters. SRep = s:rep(iLen) - create replacement string SumLen = sumLen iLen -1 - total length of the replacements ILen = (_tabsize - ((posTab sumLen -1) % _tabsize)) calculation replacement string, taking into account characters to be inserted Local tTab, s, sRep, iLen, sumLen =, ' ', '', 0, 0 _tabsize = _tabsize or 4 - default TAB width If posTab = nil then return _line, 0 end - no TAB included If _line = '' then return _line, 0 end - only a empty string If _line:find('^ $') then return _line, 0 end - only a line break TabReplace_Line = function(_line, _tabsize) Out.: The line, with TAB replaced if necessary, and the number of replacements. _line = _line:gsub('\t', function() idx = idx 1 return tTab end) PosTab = _line:find('\t', posTab 1) - find next TAB TabReplace_FileInSciTE(4) - If required: Change the TAB size here TabReplace_FileInSciTE = function(_tabsize) Replaces all TAB in the file currently open in SciTE I went looking around for dark themes for SciTE and didn't have much luck. No wish to necro-post, but I found this post -> A dark theme for SciTE but it seems as if things were ended at a single change for AutoIt where I was hoping for a comprehensive dark theme. I currently have a dark desktop in Mint where xed, the terminal emulator, vim, and etcetera do an acceptable job of showing the dark theme. I saw that some scripts after extraction has some function with random name before the "#NoTrayIcon", you need to comment it or delete, if the script does not work after compilation.īy the way, I added that now it saves All Resources of *.exe to a *.res file - use the "Resource Hacker" after re-compilation, to import all resources from extracted *.res file (with overwrite) for the newly compiled file.To resolve this, I'm currently working on creating a set of lang.properties files that use the Solarized themes (both light and dark). If you want to remove the the auto-execution after OS restarting, just execute it again and close - it will delete the run entry. So, also because of that you should use the VM, instead of real OS.īefore restarting the OS, script adds itself to the run section for current user, so, it will be automatically executed after the OS starting again with current file to extract. Q: Is the restarting the OS is really needed?Ī: Yes, for firmly protected programs restarting the OS is really needed because of the missing device, the device will be available after restarting the OS. Universal AutoIT Extractor and De-obfuscator Before use this tool I must warn you, that this tool should be used in VM (Virtual Machine), you can use it on a real OS, but I won't be responsible for any damage! You take responsibility for using this tool.Īlso, some of the tools used are detected and blocked by some AV, so, please consider use the VM (eventually with AV disabled), or disable the AV for your own risk, if it won't work with any AutoIT compiled programs.
0 Comments
Leave a Reply. |