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
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