Sign in to follow this  
Followers 0
Eambo

Disabling Ctrl Key?

7 posts in this topic

Hi Everyone! :-)

A little background on my project:

- I'm writing a fairly simple program to autoopen Internet Explorer in Kiosk mode, and sticking them into this window. So far I've disabled just about anything that can get you out of this. The last hurdle I'm facing is CTRL+N and CTRL+T (new window, new tab).

Is there a way to use Autoit to stop these functions from occuring? I was thinking some way of capturing ctrl and either:

- Disabling it

- Capturing and stopping it

- Capturing it and disabling N and T for a few seconds

Any advice would be very much appreciated :-)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I feel we've Anyway,

HotKeySet("^n", "_HawkingHole")
HotKeySet("^t", "_HawkingHole")
HotKeySet("!{F4}", "_HawkingHole") ; Alt F4, good idea? Y/N

While 1
    Sleep(500)
WEnd

Func _HawkingHole()
    ;0/0
EndFunc

The ;0/0 comment is a special way to tell AutoIt that nothing in the function should be executed.

Edited by Manadar

Share this post


Link to post
Share on other sites

Thank you very much for the response. Just so I'm clear, does the ^ mean anything preceding this? Eg: ^n means "if *something* plus n are pressed, do nothing?

Share this post


Link to post
Share on other sites

Brilliant, this functions exactly as I wanted. Thanks again for your time, and sorry for not digging deep enough :-(

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

<Double post, sorry>

Edited by Eambo

Share this post


Link to post
Share on other sites

No problem. I rather tell you where to find the appropriate information instead of telling you how it works directly.

And by the way, the remark about ;0/0 was a joke.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0