AutoHotkey Community

It is currently May 25th, 2012, 4:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: May 10th, 2007, 12:27 pm 
Offline

Joined: April 22nd, 2007, 11:52 am
Posts: 33
Dear AutoHotkey Gurus,

I wish to automate some programs but their GUI do not have short-cut keys. Seems like only mouse-clicks can be used to control them.

Can someone advise how to automate programs which can only be controlled through mouseclicks?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2007, 12:38 pm 
Generic request, generic answer...
helpme wrote:
Can someone advise how to automate programs which can only be controlled through mouseclicks?
Use MouseClick... Or Click, Send {Click}, and so on.
Are you sure that even {Tab} isn't available here? What is this crap?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 12:01 am 
Offline

Joined: March 29th, 2007, 5:31 pm
Posts: 37
I have run into some games which have no keyboard shortcuts for quite a few commands. The only recourse is 'clickity click click' all the time... Hell on the RSI ;P

_________________
Code:
If (IQ < ShoeSize)
{
    Sympathy := 0
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 3:36 pm 
Offline

Joined: April 22nd, 2007, 11:52 am
Posts: 33
THanks for your suggestions.

The problem with MouseClick is that the GUI buttons' positions are not consistent. How do I ensure that MouseCLick is really click at the right X,Y position?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 3:44 pm 
Quote:
How do I ensure that MouseCLick is really click at the right X,Y position?
Identify the buttons position?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 5:00 pm 
Offline

Joined: April 9th, 2007, 4:43 pm
Posts: 172
Use ButtonClick!

_________________
COMPLETELY INACTIVE - I do not use AHK anymore.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 5:04 pm 
What is ButtonClick? Perhaps you mean ControlClick?
It makes sense, if buttons are standard, but won't work if they are drawn (skin, game...).
Now, you can use ImageSearch to locate a button.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 9:29 pm 
Offline

Joined: March 29th, 2007, 5:31 pm
Posts: 37
As this is a game, chances are there are no windows API "control" labels for the buttons, the best way to find the different buttons is to use the ImageSearch command. If the UI of the game has transparency this could cause problems however.

_________________
Code:
If (IQ < ShoeSize)
{
    Sympathy := 0
}


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: lblb, Leef_me, poserpro and 9 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