Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-2009, 06:37 PM
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default Blocking start menu

I have created an app that requires the user to only be able to press certain keys on the keyboard, is there a way to block keys like the start meny key?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 12-22-2009, 09:49 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Yes, it's possible. Please send us an email to support@swfkit.com, we'll send you a sample.
Reply With Quote
  #3 (permalink)  
Old 12-28-2009, 08:18 PM
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default

I did and no response.
Reply With Quote
  #4 (permalink)  
Old 12-29-2009, 11:46 PM
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default

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
Reply With Quote
  #5 (permalink)  
Old 12-30-2009, 06:19 PM
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default

Can Anyone help?
Reply With Quote
  #6 (permalink)  
Old 01-02-2010, 09:12 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:03 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.