Purpose
This is a Generic Button (Custom Tool).
It associates Any Layout with Any Panel of your choice.
One button can therefore have different Actions depending on the Active Layout.
With this Button and Duplicates thereof you can generate a Layout Specific ShortCutsBar in Logos.
The icon in MessageBox Titles can be extracted from the executable you use, Logos or Verbum. (Change the Value of SetIcon in line 3 to 1 and recompile the script)
Executable or Script
You can use any version, Script or Executable.
The executable is standalone.
To run the script you'll need a copy of AutoHotkey
If you don't trust the executable version you can delete it (Inteli Button._) and compile your own version.
Rename "Inteli Button._" to "Inteli Button.exe" to use the executable version.
Setup
- You can substitute ".exe" with ".ahk" in the steps below depending on the version you want to use.
- Save the "Inteli Button.exe" anywhere.
- You can duplicate this button as many times as you like.
- You can rename this button to anything as long as it has the ".exe" extension.
- Drag and drop the executable file to the ShortCuts Bar in Logos.
- Each Copy of the Executable is one Generic Button.
Association (Programming)
- Open A Resource and set the Copy location as L4
- Close All Panels
- Press the Button
- It will ask to open a Panel, so close the Message and Open a Panel
- With an Active Panel, click the Button
- It will show a message indicating that it associated the current Layout with the Active Panel
- Close the Message and All Panels
- Click the Button again
- It will open the registered Panel (The button is now programmed to open this panel for this layout when it's clicked)
Association Removal
- To remove the Layout Panel Association, hold down Alt when clicking the Button
- You will be informed about the removal
- You can associate any layout with any Panel (The Button can be programmed to have different meanings in different Layouts)
- To make another Button with the same power, just goto Setup above and follow the steps (from step 3) to make a duplicate.
Initialization of Buttons
Associations are stored inside the Button.ini file in the Button's Directory.
Each button registers as a Section (Button's Name) with the Layout's Name as Key and the Panel's L4 Link as Value
Format:
[Section]
Key=Value
Sample:
[Inteli Button]
Logos Bible Software - Next Devotional=logosres:leb;ref=BibleLEB2.1Pe5.1
Comments:
Please inform me about any bugs encountered. This code is not tested for verbum, but I hope I guessed the correct code to make it work for verbum.
This code will not work for the WebApp.
This code will only run on Windows or a Windows VM. You are free to use the source code logic as reference for a Mac version if possible.
Any ideas to improve are welcome.
Download: 4186.Inteli_Button.zip