Window Position Event Reactive Script Example

Getting Started

This script will notify you when an XSection Window scrollbar is move or when the view position has changed.

Put this script in the folder On_XSection_Window_Scrolled in your Python scripts directory.

Go to Tools->Options->Environment->Python Scripts and click "Refresh from Disk". Your script should be listed automatically.

Now, whenever you move the scrollbar for an XSection window, the window position will be displayed in the Python terminal.

This simple script is useful for determining when a certain window scroll bars have moved and what the new window position is.