OK, I found out you can minimise a window when a key is pressed like this:
1) Make sure you have a handle to your window using the FindWindow code above.
2) declare this const
3) By now you must have a user32.decls file in BlitzPlus\UserLibs so add this line to it
4) In your app call
Hope you find it useful. My game now has a boss key! Even in full-screen mode it can be done by reseting the graphics mode to use flag 2 on the end for windowed mode and then calling the minimise code from above.
1) Make sure you have a handle to your window using the FindWindow code above.
2) declare this const
Const SW_MINIMIZE = 6 ;used with ShowWindow
3) By now you must have a user32.decls file in BlitzPlus\UserLibs so add this line to it
User32_ShowWindow% (hwnd%, nCmdShow%): "ShowWindow"
4) In your app call
User32_ShowWindow(TheWindow, SW_MINIMIZE)where TheWindow is the handle to your window. Tada
Hope you find it useful. My game now has a boss key! Even in full-screen mode it can be done by reseting the graphics mode to use flag 2 on the end for windowed mode and then calling the minimise code from above.