?
Solved

Disable ALT + F4 in VBScript

Posted on 2008-11-06
5
Medium Priority
?
1,886 Views
Last Modified: 2010-04-21
Hi Experts,

I am currently working on a project to update all of the public access machines for a local authority.  At the moment there is a mixture of configurations, lockdowns and applications all stuck together in a massive workgroup.  The plan is to provide a consistent environment throughout the city on all machines.  

To prevent the public being given passwords the staff member in charge will log the users onto a workstation via a central machine.

As part of the login process users have to agree to our terms and conditions, if they do not agree the session will end and the user logged off.  If they press agree they are able to access the desktop.

As it currently stands I have developed an HTA page that runs in full screen blocking the desktop from view.

The only problem is that users are able to close the window using ALT F4 or get past it using the Windows Key.

Is there a way in Visual Basic to prevent these actions just for the HTA page?

Many thanks

John
0
Comment
Question by:PCC_DTS
  • 3
  • 2
5 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 22894918
You can try this...http://vbscript-disable-keyboard.qarchive.org/
I don't know of a native way to accomplish it...
0
 

Author Comment

by:PCC_DTS
ID: 22895048
Hi Sirbounty,

Thanks for your assistance, it's a shame that VB won't do this but as this is a web page can this be done using some JScript?

Many thanks

John
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 22895087
VB can do it - vbscript, I don't think so.
My JScript's a bit rusty - but I found this PAQ: http://www.experts-exchange.com/Q_20863954.html - maybe it'll help?  
Good luck!
0
 

Author Closing Comment

by:PCC_DTS
ID: 31513888
Hi Sirbounty,
Thank you for your assistance and for pointing me in the right direction, I have found some suitable JScript code, it's thrown up a further problem but I will ask that in a new question in the JScript area.
Kindest regards

John
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 22895520
Great - best of luck.
Thanx for the grade! :^)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question