acidbat 0 Posted September 2, 2011 (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 September 2, 2011 by acidbat Share this post Link to post Share on other sites
acidbat 0 Posted September 5, 2011 Solved this using MouseClick("primary", 299, 47, 1) Not really ideal but it works. Share this post Link to post Share on other sites