Jump to content

js e.preventDefault() functionality // prevent default action of _IsPressed key


Recommended Posts

Let's say I'm in a browser and the exta Left side button (_IsPressed "05") on my mouse is configured to move back to the previous web page...

But I would also like to use this button to modify the behavior of an AutoIt script I may be running with the browser active, but in that case I don't want the default behavior to happen; my page has to stay put.

I think I cannot temporarily use BlockInput here, cause I may have a dialog window opening in which I must allow user input.

In javascript (or jQuery) they use e.preventDefault(); (ore return false;) for this stuff.

Can AutoIt do it too? :)


Link to comment
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

  • Create New...