Jump to content

Recommended Posts

Posted (edited)

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">
<!--
//<![CDATA[     
blah.addLoadEvent(function(){
    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();});
});  
   //]]>  
-->
</script>

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.

Cheers

Edited by acidbat

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...