Add ctypes call for window tracking
more ctypes for popup menus (not working yet)