Get cursor or selection via 'changes'

hello, Get cursor or selection via ‘changes’,how to do it?