AutoHotkey Community

It is currently May 27th, 2012, 11:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: May 15th, 2010, 7:20 pm 
Offline

Joined: February 20th, 2009, 11:08 pm
Posts: 207
Hi.
Newbie here who didn't think it was possible to identify and press buttons within a Java app, but now I think I may have been wrong.

When I used WindowSpy, I suddenly saw that one the buttons which I was using xy coordinates to click gave a reading of

ClassNN: Button7

!!!

I looked up ClassNN

So what's the quick way to press this button?

Code:
ControlClick, Button7


isn't cutting it for me

and I have no computer degree

Help?

Thx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 7:35 pm 
I doubt that you will trigger it successfully. Have a try if ControlGetPos will detect its position to use ControlClick, x y.

Another attempt would be to send the {ENTER} key :arrow: ControlSend (btw, the control might have an assigned key as well)

Within a Win32 MCI window I've used ControlSetText, {Enter} for the reason that a click + to send a key didn't work.

Unfortuantely never ever one of the AHK geeks was interested to write a Win-AHK-Java-wrapper :cry:

Java Access Bridge


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 7:46 pm 
Offline

Joined: February 20th, 2009, 11:08 pm
Posts: 207
Thx. Will research those commands you mentioned.

But meanwhile I finally succeeded in getting the button to blink in the Java app, indicating that AHK found it!

Does that sound hopeful?

Maybe I need to have ControlClick hold down on the button for 500 ms.

I can't find a Hold, or Delay command to do so...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 7:49 pm 
SetControlDelay


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 8:38 pm 
Offline

Joined: February 20th, 2009, 11:08 pm
Posts: 207
Thx

back to xy coordinates, it seems...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 9:48 pm 
Offline

Joined: April 22nd, 2009, 6:04 am
Posts: 29
dwilbank wrote:
Thx. Will research those commands you mentioned.

But meanwhile I finally succeeded in getting the button to blink in the Java app, indicating that AHK found it!

Does that sound hopeful?

Maybe I need to have ControlClick hold down on the button for 500 ms.

I can't find a Hold, or Delay command to do so...
Try this
Code:
Control, Check, , Button7, WinTitle


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], MSN [Bot], Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group