Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Система";
Текущий архив: 2003.05.19;
Скачать: [xml.tar.bz2];

Вниз

Подавление нажатия клавиши   Найти похожие ветки 

 
ККВ   (2003-03-19 06:11) [0]

Здравствуйте. Может кто-нибудь знает как подавить нажатие клавиши
"Windows". Заранее спасибо.


 
Ketmar   (2003-03-19 12:27) [1]

прибить explorer.exe, и некому будет на эти нажатия реагировать.

Satanas Nobiscum! 19-Mar-XXXVIII A.S.


 
les   (2003-03-19 14:09) [2]

Никогда не пробовал но может бить тебе подойдут ловушки? - ищи по теме Hooks, WindowHookEx, etc.


 
Babka-Tapka   (2003-03-19 15:45) [3]

Может кн. "Windows" это комбинация клавиш "Ctrl"+"Esc", но в одной кнопке. Попробуй перебить "Ctrl"+"Esc".


 
ККВ   (2003-03-19 15:55) [4]

Хорошо, попробую.


 
ККВ   (2003-03-19 16:03) [5]

Не помогло с Ctrl+Esc...


 
PGM   (2003-03-19 17:23) [6]

Используй ловушки как советовал les. Ловится без проблем.


 
TuZ   (2003-03-19 20:08) [7]

Заблокировать системные клавиши. Правда под NT, 2000, XP не сработает. Вот ссылка:
http://delphibase.endimus.com/?action=viewfunc&topic=syscontrol&id=10154


 
ККВ   (2003-03-20 09:11) [8]

спасибо


 
ККВ   (2003-03-20 09:13) [9]

а можно пример с ловушками...


 
Севостьянов Игорь   (2003-03-20 16:43) [10]

С ловушками по NT-платформенные системы не получиться, но в MSDN есть статья:

How To Disable the Keyboard Windows Key
ID: Q216893

--------------------------------------------------------------------------------
The information in this article applies to:

Microsoft Windows NT Workstation versions 4.0, 4.0 SP1, 4.0 SP2, 4.0 SP3, 4.0 SP4
Microsoft Windows NT Server versions 4.0, 4.0 SP1, 4.0 SP2, 4.0 SP3, 4.0 SP4
Microsoft Windows NT Server, Enterprise Edition versions 4.0, 4.0 SP4

--------------------------------------------------------------------------------

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.


SUMMARY
It is possible to disable the Windows key that is now available on many new computer keyboards. This key usually provides shortcut access to the Start button or other Windows NT functions.



MORE INFORMATION
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

To disable the Windows key, do the following steps:

Click Start, click Run, type regedt32, and then click OK.


On the Windows menu, click HKEY_LOCAL_ MACHINE on Local Machine.


Click the System\CurrentControlSet\Control folder, and then double-click the Keyboard Layout folder.


On the Edit menu, click Add Value, type in Scancode Map, click REG_BINARY as the Data Type, and then click OK.


Type 00000000000000000300000000005BE000005CE000000000 in the Data field, and then click OK.


Close the Registry Editor and restart the computer.



Additional query words:


Keywords : kbenv
Version : winnt:4.0,4.0 SP1,4.0 SP2,4.0 SP3,4.0 SP4
Platform : winnt
Issue type : kbinfo


Собственно достаточно написать файлы:

DisableWinKey.reg
--------------------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,\
00,00,00,00
--------------------

DisableWinKey.bat
--------------------
@echo off
start/wait regedit -s DiableWinKeys.reg
--------------------

и перестартовать компьютер

все это можно конечно реализовать и через программный код (работа с реестром и перезагрузка компа)


 
Drin   (2003-03-21 04:05) [11]

В Win NT используй WH_KEYBOARD_LL


 
ККВ   (2003-03-21 13:57) [12]

спасибо, буду разбираться


 
Intell   (2003-03-22 19:41) [13]

// Включение режима
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, 0, 0);
// Выключение режима
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, 0, 0);

Попробуй, не поможет, у меня ещё есть пару примерчиков.
sergein@nojabrsk.ru



Страницы: 1 вся ветка

Форум: "Система";
Текущий архив: 2003.05.19;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.47 MB
Время: 0.006 c
3-59635
Explorer
2003-04-29 07:45
2003.05.19
CheckBox в DbGridEh


14-59902
Alex134
2003-04-29 00:42
2003.05.19
Отладчик - Вопрос серьезный, для Мастеров


6-59831
s002156Shurik
2003-03-12 10:19
2003.05.19
PrintServer!


1-59677
NiBL'S
2003-05-07 15:06
2003.05.19
MDI ???


3-59543
Avreliy
2003-04-25 16:21
2003.05.19
Перехват сообщений об ошибках в БД.





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский