[IDE Tool] PB constants list and search (Windows only)

Working on new editor enhancements?
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

[IDE Tool] PB constants list and search (Windows only)

Post by boddhi »

Image
 
 
A small IDE tool that lists the PB constants.
Searches can be performed via filters on variable name, type and/or value.

It can also be used as a standalone tool.

It is largely inspired by an old tool whose author, source and executable I have been unable to find.
If he recognizes himself, please let us know, and thanks in any case.

And unlike his, my old very first version only allowed me to copy the name or value to the clipboard.
I recently decided to improve it (without going into details, partly because of #PB_ListIcon_Alignment :mrgreen: ) and include the possibility of inserting these fields in any Scintilla gadget (see 'How it works' below).
Sorry, but this is a Windows-only version, because I use several APIs whose equivalents I don't know on MMacOS and Linux.

How it works:
As PB IDE tool:
  • It uses environment variables 'PB_TOOL_Compiler" to identify which version of PB it was launched from and 'PB_TOOL_Scintilla' to retrieve the gadget handle to use.
  Note: This means that if you run it from a certain version, constants added to PB afterwards will not be listed in the tool.
 
As standalone tool:
  • For compiler path:
    • If config file exists, it tries to retrieve the path of the PB compiler
    • If config file not exists or if the compiler path is invalid:
      • It tries to read the 'HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open\command' key in the registry
      • If it fails, to finish, it tries to read the 'HKEY_CLASSES_ROOT\PureBasic.exe\shell\open\command' key in the registry
      • If it fails or compiler not exists, the app ends.
  • For Scintilla gadget:
    • It enumerates all windows with a Scintilla gadget and uses the topmost (the most forward) window and gadget (if several) to insert name or value. This scan is performed each time the appropriate buttons are pressed. It allows the user to change the target window and/or Scintilla gadget.

If inserting or copy are succesfull, a message is displayed in the status bar. If not, no message.

This tool have 5 localizations : French (of course! 8) ), English, Deutsch, Spanish and Italian. In advance, sorry if there are some approximative translations.
It can be renamed as you want and the config file name structure is ToolName (without extension) + ".ini".

Don't hesitate to feedback if bugs (Certainly, there are! :mrgreen: ) or suggestions (if I can :wink: ).

[Download link temporarily unavailable]
Last edited by boddhi on Wed Aug 07, 2024 10:27 pm, edited 2 times in total.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

[IDE Tool] PB constants list and search (Windows only)

Post by boddhi »

Two minor bugs fixed: Deutsch shortcuts assignment and French language selection (in particular case).
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

[IDE Tool] PB constants list and search (Windows only)

Post by boddhi »

I'm sorry, but I have to temporarily disable the download link for my tool. In fact, I've noticed this afternoon that sometimes, under conditions that I haven't yet determined precisely, the insertion functions don't work properly, despite all my previous tests.

I will correct this bug as soon as possible, but not immediately, due to an event that has occurred in the meantime.

With my apologies.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Post Reply