| View previous topic :: View next topic |
| Author |
Message |
helpme
Joined: 22 Apr 2007 Posts: 33
|
Posted: Thu May 10, 2007 11:27 am Post subject: Program has no short-cut keys. How to control? |
|
|
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? |
|
| Back to top |
|
 |
Grumpy Guest
|
Posted: Thu May 10, 2007 11:38 am Post subject: |
|
|
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? |
|
| Back to top |
|
 |
gtmattz
Joined: 29 Mar 2007 Posts: 37
|
Posted: Thu May 10, 2007 11:01 pm Post subject: |
|
|
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
}
|
|
|
| Back to top |
|
 |
helpme
Joined: 22 Apr 2007 Posts: 33
|
Posted: Fri May 11, 2007 2:36 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Fri May 11, 2007 2:44 pm Post subject: |
|
|
| Quote: | | How do I ensure that MouseCLick is really click at the right X,Y position? | Identify the buttons position? |
|
| Back to top |
|
 |
John W
Joined: 09 Apr 2007 Posts: 172
|
Posted: Fri May 11, 2007 4:00 pm Post subject: |
|
|
Use ButtonClick! _________________ COMPLETELY INACTIVE - I do not use AHK anymore. |
|
| Back to top |
|
 |
Grumpy Guest
|
Posted: Fri May 11, 2007 4:04 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
gtmattz
Joined: 29 Mar 2007 Posts: 37
|
Posted: Fri May 11, 2007 8:29 pm Post subject: |
|
|
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
}
|
|
|
| Back to top |
|
 |
|