The script was made as an analogue to >Organize Includes and has the following important differences:
More correct results.
For example:
$t = DllStructCreate($tagBUTTON_SPLITINFO)
;result Includes Helper :#Include <guibutton.au3>
;result Organize Includes:
Func _test()
Local $hBrush, $iARGB
DllCall($ghGDIPDll, "int", "GdipSetSolidFillColor", "hwnd", $hBrush, "int", $iARGB)
EndFunc
;result Includes Helper :#Include <gdiplus.au3>
;result Organize Includes:
;Only under installed library "WinAPIEx"
$var = BitOR($PROCESS_VM_OPERATION, $PROCESS_VM_READ)
;result Includes Helper :#Include <processconstants.au3>
;result Organize Includes:#Include <apiconstants.au3>
Includes Helper selects the minimum number needed include files.
For example:
Func _test()
_GDIPlus_BitmapCreateFromFile('FileName')
_WinAPI_CreateFile('FileName', 2)
$var = $GDIP_DASHCAPFLAT
$var = $tagNMIPADDRESS
$var = $FT_ACCESSED
_Security__OpenProcessToken($var, $var)
_WinAPI_GetLastError(@error, @extended)
_SendMessage($var, $var)
EndFunc
;result Includes Helper :#Include <gdiplus.au3>
;result Organize Includes:#Include <fileconstants.au3>
; #Include <gdiplus.au3>
; #Include <gdiplusconstants.au3>
; #Include <security.au3>
; #Include <sendmessage.au3>
; #Include <structureconstants.au3>
; #Include <winapi.au3>
; #Include <winapierror.au3>
Is absent the graphic interface - the results are displayed in the console of SciTE.
At insertion the results into the source code is stored history undo-redo (in the editor), as well as bookmarks and folding.
Hot keys:
Ctrl+Enter - start
Esc - exit Example of connection to SciTE (file "au3.properties")
command.37.*.au3="$(autoit3dir)\autoit3.exe" "$(SciteDefaultHome)\IncludesHelper\IncludesHelper.au3" "$(FilePath)"
# for IncludesHelper.a3x :
# command.37.*.au3="$(autoit3dir)\autoit3.exe" "$(SciteDefaultHome)\IncludesHelper\IncludesHelper.a3x" "$(FilePath)"
# for IncludesHelper.exe :
# command.37.*.au3="$(SciteDefaultHome)\IncludesHelper\IncludesHelper.exe" "$(FilePath)"
command.name.37.*.au3=Includes Helper
command.save.before.37.*.au3=1
command.shortcut.37.*.au3=Ctrl+Enter*particular connection to SciTE4AutoIt3 : >LINK Configuration file ("IncludesHelper.ini"):
ShowOptimInfo = 1
: Show the minimum number required include files (1 by default)
ShowDetals = 0
: show all the values and the corresponding external file (0 by default)
ResultToSource = 1
: insert the result in the source code (1 by default) Note:
The values specified as a string in functions GUIRegisterMsg, AdlibRegister, etc. - are processed only for explicit defined values, without the use of variables and expressions.
Otherwise, a warning to the console. New in version 1.5:
- Added support for AutoIt 3.3.10.xx (in this version is ignored syntax element as assignment a function to variable).
- Faster processing for 64-bit operating systems (only when the script is run as a 32-bit application).
New in version 1.4:
- Significantly increased performance for 32-bit operating systems. New in version 1.3:
- The magnified speed of the data processing. New in version 1.2.3:
- Added processing of the values specified as a string in functions GUIRegisterMsg, AdlibRegister, etc. (only for explicit defined values, without the use of variables and expressions)
- Posted compression of the database (only for NTFS)
- Minor changes New in version 1.2.1:
- Fix: Do not search for some data (thanks wakillon). New in version 1.2:
- Fixed update the database if there is a folder "Include" files without the functions, constants and global variables (thanks madmasles).
- Are added hot keys.
- Fixed errors inserting data into a file. New in version 1.1:
- Added ability to insert the result in the source code.
- Settings are placed in the ini-file.
- Minor fixes
IncludesHelper_v1.3.zip IncludesHelper_v1.4.zip IncludesHelper_v1.5.rar