Devices for moving and locking sliding windows