I need help to disable "windows"
BlitzPlus Forums/BlitzPlus Beginners Area/I need help to disable "windows"
| ||
how can i disable the "Windows" button when my game is on? while my game is on exccept my gaming buttons(say arrow buttons) all other buttons (Windows, Windows+E,Ctrl+Alt+Del) shold not function at all how can i achieve this ? ;============================= some one gave me the below code: HWND hTrayWnd = FindWindow("Shell_TrayWnd","") HWND hStartWnd = GetTopWindow(hTrayWnd) //Disable start button EnableWindow(hStartWnd, FALSE) //Remember to enable it when done:- EnableWindow(hStartWnd, TRUE) P.S. If you havent realised, you can use userlibs with the above WinAPI commands in Blitz to acheive the same! ;==================== can anyone pliz tell me how to use this in my game? (for i never used userlibs and i dont know how to use) (is there any other simple way?) (PLIZ HELP ME) ;;;;a part of my game graphics 800,600 setbuffer backbuffer() startGame() function startGame() a = false DisableWindows() while not a ;;;;;gaming codes ;;;;;;;text 10,10,"Help Me, Pliz" if keyhit(1) a = true EnableWindows() end endif flip cls wend end function |
| ||
Here, use this link. Dabz has answered this. http://www.syntaxbomb.com/forum/index.php/topic,641.msg4863/topicseen.html#new |
| ||
Right, look in your "%BLITZPLUS_ROOT%/userlibs" folder for a file called userlibs.txt Read it! :) Then, look here for an example of using them:- http://www.blitzbasic.com/Community/posts.php?topic=51871#581122 Jobs a good'un! :) Dabz |