getWinAct function

Retrieve the Last Window Action