WinTyler

From BB4Win Wiki

Jump to: navigation, search
WinTyler
Developer(s) TiCL
Platforms BbLean
Category Window Management
Stable Version NONE
Development Version 0.2

Contents

Core Features

WinTyler is a window placement manager. You can make new windows appear using one of the following schemes:

  • Manual placement: Saves and restores window position, size, state (maximized, minimized, sticky) and workspace data
  • Column Placement: Divides the working area into columns, and places the window so that they occupy entire column and minimize overlaps.


Using WinTyler

Supported and tested BB
BB Version OS Status
BbLean 1.16 Windows XP SP2 Working
BbLean 1.16 mod Not tested Not tested

Compilation

Installation

  • No special installation procedure needed, just drop it in plugins folder

Configuration and Usage

bbKeys.rc

!You can set up a hotkey by inserting a line like the following in bbkeys.rc
KeyToGrab(F8),  WithModifier(Win), WithAction(ExecCommand), DoThis(@WinTyler.SavePosition)

WinTyler.rc

!Show a message after window position has been saved
ShowSaveMessage:    false
LaunchEditor:       true

!    DEFAULT_PLACEMENT = 0
!    N_COLUMNS = 1
!    SAVED_POS = 2


PlacementMethod:    2
NumberOfColumns:    2

!SAVED_POS method checks whether WindowTitle is a substring
! of a newly created window, and apply defined position values

!!!
!!!WARNING: You must specify all the fields, there is no error checking in the
!!!settings loader function, in other words, I suck!
!!!
!Special values:
!Width = -1 -> set maximum possible width
!height = -1 -> set maximum possible height
!Width = -1 and Height = -1 -> Maximize window
!Width = -2 and Height = -2 -> Minimize window
!Width != -2 and Height = -2 -> undefined (weird small window ;) )
!Width = -2 and Height != -2 -> undefined (weird small window ;) )
!Workspace = 0 -> active workspace <----------Different from version 0.1
!Workspace = -1 -> sticky          <----------Different from version 0.1

WindowTitle:        - SciTE
XPos:               0
YPos:               0
Width:              650
Height:             -1
Workspace:          0
WindowTitle:        - Notepad
XPos:               100
YPos:               100
Width:              500
Height:             -1
Workspace:          -1

Requested Features

Please add requested feature here and sign your name using four tildes ~:

  • Don't allow BBlean to change the window to different workspace if it is assigned to one(in .rc). ~iElectric

Better interaction with the Workspacestyle plugin

When launching a monitored window to a workspace other than the current workspace, the style for the workspace that the monitored window is launched to is not updated until a manual workspace change is preformed. I don't really think you could call this a bug, but it is an irratation. If this proves difficult to address, a possible workaround for Workspacestyle users would be to allow them a setting where the launched program is not followed to the workspace but instead launches 'silently'. crowmag 03:59, 20 September 2006 (PDT)

  • The workspace switching is done via SetTaskLocation() method, I am not sure sure whether it triggers BB_TASKSUPDATE|TASKITEM_MODIFIED. If you have the link to the source code of WorkspaceStyles, please put it in the wiki. TiCL 12:56, 20 September 2006 (PDT)


Features Under Development

  • Specify window state (e.g. Maximized) instead of explicit size information
  • Launch editor after position has been saved for further editing.
  • Place new window under mouse (I think it is already a Windows built-in feature)
  • Stay-on-top option (need help)

Changelog

Ver. 0.2 (2006-09-20)

Bugs fixed
  • ShowSaveMessage is not read from .rc
  • Workspace value in .rc is now 1-based
Features added
  • Launch editor with .rc, controlled by LaunchEditor in .rc
  • Launch new windows in Maximized, Minimized, and Sticky states

Ver. 0.1 (2006-09-18)

  • Initial release

Bugs

In order to monitor bugs, you may want to Watch this page

  • Some windows refuse to get Maximized e.g. Total Commander


Wrong Workspace Bug

Status: Fixed in ver. 0.2

  • Previously I was launching a multi-window (3) application to workspace 4 and all went as expected (except for the interaction with Worspacestyle). I then changed the workspace that the program windows would be launched to - to workspace 2. The windows get launched to workspace 3. crowmag 09:23, 20 September 2006 (PDT)
    • It should be noted that the Workspace value in .rc is zero based in version 0.1, it is now corrected in version #Downloads 0.2.

Non bugs

  • Windows has a built-in feature that stores most recent window position which is restored when you launch the app after a short period of time. So after you disable manual placement of a certain window in WinTyler.rc the window would still appear in the same position unless you manually resize/reposition it.

Some windows do not respond to settings

  • Title of some application window is reported incorrectly when read using BBApi internal function, for example gVim. In order to get the real title you need to use DebugView. You should see an entry in DebugView with the string Title: when a new window appears. You need to put that string in the corresponding WindowTitle: entry in WinTyler.rc.

Downloads

Version 0.2

Version 0.1 (Do not use)

NOTE: Older version may be removed when a new version is released.

Related Discussions

External Links

Personal tools