Disable all 'Ctrl' key shortcuts in AutoHotkey?

168

For the standard shortcuts, refer to this list and setup a hotkey instance to override it. For example, I made an ALT & F4 hotkey, which would normally close the active window, and made it enter some text instead. It works:

ALT & F4::
Send foobar ; This line sends keystrokes to the active (foremost) window.
return

That only fixes each instance. To disable a key (ALT) by itself use:

ALT::Return

For more on that see this.

Watch out for other key combinations made possible by installed software/reg edits such as this video card instance.

Share:
168

Related videos on Youtube

the bosxcz
Author by

the bosxcz

Updated on September 17, 2022

Comments

  • the bosxcz
    the bosxcz over 1 year

    does many iframe affects the loading time of a website?and about the ajax, assuming that i have 2 jsp page.the first one have ajax that is calling the second jsp page. both of the pages have java script functions for example they have the same function called funcA(); and i call the second jsp page using ajax. which function will be executed?the function in first page or in the second page? and do i have to import the css in the second page?or it access the css in the first page?i am just confused in using ajax.

    • Jamie Schembri
      Jamie Schembri over 13 years
      How about Ctrl::return?
    • pelms
      pelms over 13 years
      @Jamie. Tried that
    • William
      William over 5 years
      SharpKeys is your best bet
  • pelms
    pelms over 13 years
    'CTRL::Return' doesn't work unfortunately.
  • Irwan Mulyawan
    Irwan Mulyawan over 13 years
    It does actually disable the key when pressed by itself. For key combinations such as copy or paste (ctrl+c, ctrl+v) you have to have separate hotkey instances for each (ex ctrl & c::return) See here: autohotkey.com/forum/topic65275.html
  • the bosxcz
    the bosxcz over 10 years
    thanks for a clear explanation.
  • the bosxcz
    the bosxcz over 10 years
    another question sorry, then when should/can i use iframe?
  • TwilightSun
    TwilightSun over 10 years
    @KerPPag iFrame is always deprecated, use it when you're dealing with those legacy browsers where AJAX is impossible. iFrame is hard to control with JavaScript because there will be multiple DOM documents and different browsers have different ways to access them.
  • the bosxcz
    the bosxcz over 10 years
    based on what i have read for me portlet it is more complicated than servlet right?
  • Anastasios Vlasopoulos
    Anastasios Vlasopoulos over 10 years
    Yes. In every portlet you can have one or more servlets. If you work with portlets then it is far more complicated than working just with servlets.
  • the bosxcz
    the bosxcz over 10 years
    another question pops out of my mind. assuming that i have a ajax that send data to the servlet and the servlet responds with i.e (out.println("<input type="text"/>") would they still share the CSS and javascript?