Hi,
I know that it has been discussed a few times in the past. but my search shows that there was no good answer.
I want to prevent players from alt-tabbing when in fullscreen (my game is multiplayer and crash the client if it happens).
I tried the function GetActiveWindow() from user32 but it works only for windowed mode.
I tried to catch the alt and tab key with KeyDown() but there are impossible to catch (windows catch them first).
So what to do, what to do? Is there some tricks using another function in user32 (or some other userlibs)??
I know that it has been discussed a few times in the past. but my search shows that there was no good answer.
I want to prevent players from alt-tabbing when in fullscreen (my game is multiplayer and crash the client if it happens).
I tried the function GetActiveWindow() from user32 but it works only for windowed mode.
I tried to catch the alt and tab key with KeyDown() but there are impossible to catch (windows catch them first).
So what to do, what to do? Is there some tricks using another function in user32 (or some other userlibs)??