disable keys like "key WIN", ctrl-ESC, ALT-TAB 
Author Message
 disable keys like "key WIN", ctrl-ESC, ALT-TAB

Hello,

do you know how to do it <%subject%>

thanks for help

Jan
=============================================
jK's Visual Basic page,   http://www.*-*-*.com/
                                          http://www.*-*-*.com/
                                          http://www.*-*-*.com/
=============================================

=============================================



Mon, 11 Mar 2002 03:00:00 GMT  
 disable keys like "key WIN", ctrl-ESC, ALT-TAB
Try this:

Add this to the Declarations Section:

Const SPI_SCREENSAVERRUNNING = 97

Private Declare Function SystemParametersInfo Lib "user32" Alias
"SystemParametersInfoA" _
        (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any,
_
        ByVal fuWinIni As Long) As Long

Add a button with this code:

Private Sub cmdEnable_Click()
Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, "1", 0)
End Sub

Add a button with this code:

Private Sub cmdRelease_Click()
Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, "1", 0)
End Sub

Dave
TheScarms Visual Basic Code Library
http://www.TheScarms.com

Quote:

>Hello,

>do you know how to do it <%subject%>

>thanks for help

>Jan
>=============================================
>jK's Visual Basic page,  http://vbasic.zde.cz
>                                          http://visual.zde.cz
>                                          http://visualbasic.zde.cz
>=============================================

>=============================================



Mon, 11 Mar 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Block System Key like ALT+TAB, Ctrl+Alt+Del, Ctrl+Esc key

2. Disabling Keys: CTRL, ALT, ESC, Window key

3. Disable Alt+Tab, Ctrl+Esc, Ctrl+Shift+Esc...

4. Disable CTRL ALT DELETE, CTRL ESC, and ALT TAB with VB5/NT40

5. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

6. Disable ctrl+esc ctrl+alt+del alt+tab

7. Disable the CTRL ALT DELETE, CTRL ESC, ALT TAB

8. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

9. How to cancel Windows System keys (CTRL+ESC, ALT+TAB)

10. disable WIN Key and Ctrl+Esc

11. How to block ALT+TAB and CTRL+ALT+DEL key

12. HOW TO: Disable ALT-TAB, Ctrl-ESC etc

 

 
Powered by phpBB® Forum Software