|
|||
|
Yes, it's possible. Please send us an email to support@swfkit.com, we'll send you a sample.
|
|
|||
|
I found this;
dllimport "user32.dll" stdcall Boolean RegisterHotKey(long, int, unsigned int, unsigned int); dllimport "user32.dll" stdcall Boolean UnregisterHotKey(long, int); var IDHOT_SNAPDESKTOP = -2; var IDHOT_SNAPWINDOW = -1; var MOD_ALT = 0x0001; var VK_SNAPSHOT = 0x2c; var wnd = getMainWnd(); // disable the print screen key RegisterHotKey(wnd.handle, IDHOT_SNAPDESKTOP, 0, VK_SNAPSHOT); // disable the alt + printscrn key combine RegisterHotKey(wnd.handle, IDHOT_SNAPWINDOW, MOD_ALT, VK_SNAPSHOT); wnd.onClose = function () { UnregisterHotKey(wnd.handle, IDHOT_SNAPDESKTOP); UnregisterHotKey(wnd.handle, IDHOT_SNAPWINDOW); } How can I modify this for the start button VK_LWIN (0x5B) to be blocked? Thank you |
|
|||
|
You can download the following sample:
http://www.swfkit.com/download/swfkit/kiosk.zip which shows how to use the TrapKeys.dll. The TrapKeys.dll is able to block keys "CTRL+ESC", "ALT+TAB", "ALT+ESC" and "Start Menu", as well as disable the taskbar and the task manager. The three functions exported by the TrapKeys.dll are DisableTaskKeys(bDisable): disable "CTRL+ESC", "ALT+TAB", "ALT+ESC" and "Start Menu" DisableTaskBar(bDisable): disable the task bar DisableTaskMgr(bDisable): disable the task manager All of them take one boolean parameter "bDisable". If it is set to be true, they will disable the targets; otherwise, they will enable the targets. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|