AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Program has no short-cut keys. How to control?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
helpme



Joined: 22 Apr 2007
Posts: 33

PostPosted: Thu May 10, 2007 11:27 am    Post subject: Program has no short-cut keys. How to control? Reply with quote

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
View user's profile Send private message
Grumpy
Guest





PostPosted: Thu May 10, 2007 11:38 am    Post subject: Reply with quote

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

PostPosted: Thu May 10, 2007 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
helpme



Joined: 22 Apr 2007
Posts: 33

PostPosted: Fri May 11, 2007 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Fri May 11, 2007 2:44 pm    Post subject: Reply with quote

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

PostPosted: Fri May 11, 2007 4:00 pm    Post subject: Reply with quote

Use ButtonClick!
_________________
COMPLETELY INACTIVE - I do not use AHK anymore.
Back to top
View user's profile Send private message Send e-mail
Grumpy
Guest





PostPosted: Fri May 11, 2007 4:04 pm    Post subject: Reply with quote

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

PostPosted: Fri May 11, 2007 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group