C++ Constants Scanner/Database - 2020/08/13 - a121

Share the finished AutoHotkey v2 Scripts and libraries you made here. Please put the current version of AutoHotkey v2 you used in Square Brackets at the start of the topic title.
User avatar
TheArkive
Posts: 330
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

C++ Constants Scanner/Database - 2020/08/13 - a121

Post by TheArkive » 07 Aug 2020, 13:51

Win32-api-scanner.png
Win32-api-scanner.png (34.39 KiB) Viewed 73 times
Fixed the calculations issues. It's more accurate now, but very slow when scanning. As always please do your own double checking. There are still duplicate integer values that may affect other constants.

=============================================================================
Updates
=============================================================================

Features:
  • select C++ source code folder and scan it for constants
  • substitutions and calculations are automatically made (basic math and bitwise operators / shifts)
  • math is done via command line with powershell
  • save/load data files from scanned source files
  • optionally Auto-Load last data file on script start
  • filters for constant name, value, expression, and file
  • easily double check duplicate declarations with file/line catalogged
  • Win32 constants included - over 70,000 integers resolved
Planned updates:
  • adding a GUI for specifying user-defined values for detected duplicates.
Download on :arrow: GitHub

Currently trying to get const values directly from a C++ compiler...

======================================================================
RE: Win32 API:
Last edited by TheArkive on 14 Aug 2020, 02:24, edited 14 times in total.

robodesign
Posts: 675
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: Win32 Constants List - lots of them

Post by robodesign » 08 Aug 2020, 04:58

Commendable work! Thank you . It will come in handy for sure when covering new APIs.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.

User avatar
TheArkive
Posts: 330
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: C++ Constants Scanner/Database - 2020/08/11 - a121

Post by TheArkive » 11 Aug 2020, 14:58

2020/08/11
  • added more GUI indicators when the GUI is busy
  • fixed file list filter when using "Load" button

User avatar
TheArkive
Posts: 330
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: C++ Constants Scanner/Database - 2020/08/11 - a121

Post by TheArkive » 12 Aug 2020, 06:45

Found some incorrect constants. As always please do your own double checking. I'll modify this post when I have reason to believe the full list is accurate.
This script will be temporarily broken until I can work something out to either get less values but higher accuracy, or get more values AND higher accuracy.
Many more constant values will now be unresolved until i find a better way to resolve them.

User avatar
TheArkive
Posts: 330
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: C++ Constants Scanner/Database - 2020/08/13 - a121

Post by TheArkive » 13 Aug 2020, 12:12

2020/08/13
  • added a confirmation dialog for scanning
  • fixed calculations to only use powershell now
    - it's accurate but slow to scan, search functions are still pretty snappy
  • re-saved windows constants (only scanned main folder - should still contain most of the relevant constants)

Post Reply

Return to “AutoHotkey v2 Scripts and Functions”