We propose the use of a dynamical window to investigate the real-time evolution of quantum many-body systems in a one-dimensional lattice. In a recent paper [Phien et al., Phys. Rev. B 86, 245107 (2012)], we introduced infinite boundary conditions in order to investigate real-time evolution of an infinite system under a local perturbation. This was accomplished by restricting the update of the tensors in the matrix product state to a finite region known as a window, with left and right boundaries held at fixed positions. Here we consider instead the use of a dynamical window, where the positions of left and right boundaries are allowed to change in time. In this way, all computational efforts can be devoted to the space-time region of interest, which leads to a remarkable reduction in simulation costs. For illustrative purposes, we consider two applications in the context of the spin-1 antiferromagnetic Heisenberg model in an infinite spin chain: one is an expanding window, with boundaries that are adjusted to capture the expansion in time of a local perturbation of the system; the other is a moving window of fixed size, where the position of the window follows the front of a propagating wave.