with some changes to suit my needs (eg my app won't be fullscreen so need to know if the mouse is over my window or not) the code works fine, thanks :) edit: only problem is the mouse hook doesn't give indication of an actual mouse click, i can do single clicks fine by remembering mouse down status ...