Jump to content
Sign in to follow this  

Need help with clicking a button from a Java script.

Recommended Posts


Hello everyone,

Having an issue with getting AutoIT clicking a button on a page.

The page is HTML with a bar at the bottom which is created by a JAVA code.

The Java code looks like this:

<script type="text/javascript">
    var hotKeys = new Corp.Event.hotKeyManager();
    hotKeys.add(KEY_V, false, function() {$('save').down('button').click();});
    hotKeys.add(KEY_R, false, function() {$('reset').up('form').reset();});  
    hotKeys.add(KEY_D, false, function() {$('delete').down('button').click();});
    hotKeys.add(KEY_K, false, function() {$('reactivate').down('button').click();});
    hotKeys.add(KEY_H, false, function() {$('repeatSearch').down('button').click();});

The button I am wanting to click is:

hotKeys.add(KEY_K, false, function() {$('reactivate').down('button').click();});

Optionally I can do a shortcut key combo (ctrl+alt+k) but I'm having little issue getting that correct as well.

Any help would be greatly appriciated.


Edited by acidbat

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.