Eambo Posted March 7, 2011 Share Posted March 7, 2011 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 :-) Link to comment Share on other sites More sharing options...
jvanegmond Posted March 7, 2011 Share Posted March 7, 2011 (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 EndFuncThe ;0/0 comment is a special way to tell AutoIt that nothing in the function should be executed. Edited March 7, 2011 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Eambo Posted March 7, 2011 Author Share Posted March 7, 2011 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? Link to comment Share on other sites More sharing options...
jvanegmond Posted March 7, 2011 Share Posted March 7, 2011 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?Yes, the ^ means what is described here: http://www.autoitscript.com/autoit3/docs/functions/Send.htm . Look for ^. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Eambo Posted March 7, 2011 Author Share Posted March 7, 2011 Brilliant, this functions exactly as I wanted. Thanks again for your time, and sorry for not digging deep enough :-( Link to comment Share on other sites More sharing options...
Eambo Posted March 7, 2011 Author Share Posted March 7, 2011 (edited) <Double post, sorry> Edited March 7, 2011 by Eambo Link to comment Share on other sites More sharing options...
jvanegmond Posted March 7, 2011 Share Posted March 7, 2011 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. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now