Thanks DaveC, that solved it. laugh
Reason i'm using a sendkey alias, is because i made my own treeview switchbar, and using a key combo like alt + z, it refreshes it once, and not using 2 commands (1 to close the window and 1 to refresh the switchbar)