try my Layout Manager

Page 1 of 1 (16 items)
This post has 15 Replies | 2 Followers

Posts 442
Tim Engwer | Forum Activity | Posted: Tue, Mar 15 2011 5:52 PM

I wrote a basic Layout Manager using autoit scrtping language in conjunction with the COM API for L4.  I wrote it quickly and there are some bugs ( most notably that when you click outside the dialogues created some of the functions are triggered inadvertently - this I will fix when I get a chance)

In the zip file you will find a .au3 file (the script itself to modify as you wish), a .exe file (a compiled version of the script ready to run on double click (or you can make it a shortcut in your ribbon), and an example .ini file.

You can Double click the exe file and the program will run and create the ini file as you go.

Click on the Add button to add a layout to the ini file so it can be viewed and so build a list of existing layouts that can be seen.  You will be prompted to enter the exact name of the existing layout as seen in the layout manager

If you want to del one of the layouts from the viewer then click on it and press the DEL key (though it will not be deleted from L4 itself -couldn't find a way to do this with the COM API)

If you have a new layout and want to save it press the save button and you will be prompted to give it a name.

If you want to load a layout double click on the layout and it will

1205.Layout Manager.zipAs long as you don't click on other windows not a part of the program it will work pretty well.  I will continue to refine it so let me know how it works for you.  I built this in reponse to those who are frustrated that they don't know what their current layout is in a very claer way.  With this script you will see the current layout at the top of the screen.

Posts 10178
Denise | Forum Activity | Replied: Tue, Mar 15 2011 6:43 PM

Hi TIm ... I tried your program. I guess I didn't get too far. I couldn't find an 'Add' button or a 'Save' button. I'm on W7-latest and W4-latest. There is a message at the top which shows partial.  This does look promising though!


Posts 24952
Forum MVP
Dave Hooton | Forum Activity | Replied: Tue, Mar 15 2011 6:45 PM

Tim

Do we need to download Autoit (for the .au3 file) or can everything be done with the .exe and .ini files?

Dave
===

Windows & Android

Posts 442
Tim Engwer | Forum Activity | Replied: Tue, Mar 15 2011 11:34 PM

here is the correct file with some improvements.  I have fixed a few issues and it seems to work well enough for now- will continue to improve it.  Open zip and click on exe to run

use Add button to add your layouts (or build the ini file by hand)
use Save button to save current layout
Double click a layout to load it
select a layout and press DEL key to remove it (This does not remove it from L4 - you must do this by hand.

The only issue I see so far is that in certain situations when multiple items are removed and added the ini file is not rebuilt properly sometimes.

Please let me know how this works for you.  You do not need to install Autoit to run the exe file but you do need to install it if you want to work with/modify the .au3 file.  follow the link below to get the file.  If you click on the exe file after extracting from the zip and nothing happens then something went wrong with the upload -let me know if this is the case.

http://community.logos.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/76/3326.Layout-Manager.zip

On Wed, Mar 16, 2011 at 12:01 AM, Tim Engwer <tengwer2@gmail.com> wrote:
I'm sorry.  I sent you the wrong compiled version and have found a few more bugs since so I'm going to get it a little more sound and then resend it but I won't be able to do so soon.  You can install the autoit program and run the .au3 program and see what it does.  It worked fairly well considering the short amount of time I gave it.  Let me know.



On Tue, Mar 15, 2011 at 8:48 PM, Logos Bible Software Forums - Automated Email <forums@logos.com> wrote:

Re: try my Layout Manager

By Dave Hooton in Logos 4

 

Tim

Do we need to download Autoit (for the .au3 file) or can everything be done with the .exe and .ini files?

Posts 4508
Robert Pavich | Forum Activity | Replied: Wed, Mar 16 2011 9:46 AM

Tim,

Can I ask a question? I don't mean this in an insulting way ok?

What issue is this software trying to solve?

I tried it...it worked just fine but it didn't seem to solve any issue that I had.

 

Do you get what I'm saying? It very well could be that I do need it but I just don't see it....help me out.

Robert Pavich

For help go to the Wiki: http://wiki.logos.com/Table_of_Contents__

Posts 5613
Todd Phillips | Forum Activity | Replied: Wed, Mar 16 2011 10:15 AM

Robert Pavich:
What issue is this software trying to solve?

He said at the end of his first post that he "built this in reponse to those who are frustrated that they don't know what their current layout is in a very claer way.  With this script you will see the current layout at the top of the screen."

Wiki Links: Enabling Logging / Detailed Search Help - MacBook Pro (2014), ThinkPad E570

Posts 442
Tim Engwer | Forum Activity | Replied: Wed, Mar 16 2011 1:12 PM

Yes.  There are a lot of people who have wanted a way to be able to see what layout they currently have active and this is the only way I could see to do that in a limited way.  Of course, you have to open each layout using this script to get that benefit but perhaps for some of those who had this frustration it is worth it.  for others it won't be.

Also I am hoping that the COM API will be developed in an even greater way than it was with L3.  With L3 you could create scripts that did all sorts of useful things that were not built into the program.  I was able to create a script, for instance, that allowed me to surf the web within the L3 program and have a way to open the bible passages in the web sites to my preferred bible within L3 all this without having to have a separate internet explorer window open. 

The Layout Manager uses part of the COM API (which at present is very limited) to load and save a layout.  I am hoping we will be able to do a lot more than that in the future.

Posts 442
Tim Engwer | Forum Activity | Replied: Wed, Mar 16 2011 1:19 PM

Just to answer your question further - for myself there are many times I have forgotten which layout I have activated and I want to update that layout to make it current.  To do this I have to look at the thumbnails for each of my layouts and since some of them are very similar I sometimes had to guess which one was the active one and then hit the update button and hope I updated the correct layout.  This script lets me know which layout is currently active so I don't have to spend time hunting and guessing.  This is an issue which others have mentioned and hope will be solved in the near future as the layout feature is improved.

Posts 4508
Robert Pavich | Forum Activity | Replied: Thu, Mar 17 2011 3:11 AM

Tim

that sounds useful....where does the layout name appear? On the logos tool bar?

Robert Pavich

For help go to the Wiki: http://wiki.logos.com/Table_of_Contents__

Posts 442
Tim Engwer | Forum Activity | Replied: Thu, Mar 17 2011 4:34 PM

No.  After you add your layouts using the Add button and then Double click on one of them to load it you will see at the top of the layout manager below the title bar "Current Active Layout:  "-------layout Name------".  That's assuming it's working correctly on your computer as it is on mine.  I will also be adding the ability to press a hotkey on the keyboard to automatically update the current layout (there will also be an update button in the layout manager).  I am also going to try to include enlarged snapshots (like in the native L4 Layout panel but bigger so you can see the details) that you can view as you single click on each layout in your list.  I should have this done soon as I already have created the update feature and it works well on my computer.

Posts 67
Jim L. West | Forum Activity | Replied: Fri, Sep 30 2011 3:01 PM

Where are my layouts? I have been using this for a while, successfully, and suddenly there are no layouts showing up in my "Layout Title" list. It shows the layout I was last open to in the "Current Layout" window. I can't think of anything new that has been done.

Thanks.

Posts 24952
Forum MVP
Dave Hooton | Forum Activity | Replied: Fri, Sep 30 2011 3:23 PM

Jim

I'm not certain what could be happening. Are you saying you have no "Named Layouts" in the Layout menu? It's easy enough to create new ones and they will be saved for use later on. See this wiki article for more information  http://wiki.logos.com/Layouts__

EDIT: Sorry Jim,   I didn't read your Q properly.

Dave
===

Windows & Android

Posts 442
Tim Engwer | Forum Activity | Replied: Fri, Sep 30 2011 3:28 PM

The layout information is stored in the file layout.ini which is in layout manager folder.  Check to see if that file is there.  If it is not there then for some reason it got deleted and unfortunately if you do not have a backup then you will need to recreate the layouts again in the layout manager.  IF the file is there then the fie may be corrupted.  If so you might be able to fix it.  It is just a text file so you can edit it as needed (you could even rebuild your layouts by creating this file if it was deleted).  It think the format is easy enough to follow.   Bear in mind that your layouts should still be available in the L4 layout menu as they are not deleted by the program. 

 

Posts 67
Jim L. West | Forum Activity | Replied: Fri, Sep 30 2011 4:29 PM

Here is what is in the .ini file.

[Options]
Instructions=NoShow
[Layout]
Layout Total=0
Current Layout=Romans
2=Reading
3=Inductive Study
4=Church Council
5=Church Fathers
6=Colossians
7=Ruth
8=Learning Hebrew
9=Learning Greek
10=Catholic Doctrine
What is missing?

Posts 442
Tim Engwer | Forum Activity | Replied: Fri, Sep 30 2011 4:43 PM

Try this:

[Options]
Instructions=NoShow
[Layout]
Layout Total=9
Current Layout=Romans
1=Reading
2=Inductive Study
3=Church Council
4=Church Fathers
5=Colossians
6=Ruth
7=Learning Hebrew
8=Learning Greek
9=Catholic Doctrine

The layouts need to be numbered starting with 1 and proceeding from there.  The total # of layouts is 9 rather than 0.  Replace your layout with the above and it should work correctly again.

Posts 67
Jim L. West | Forum Activity | Replied: Fri, Sep 30 2011 5:15 PM

Thanks Tim, That did it.

Page 1 of 1 (16 items) | RSS