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 

Class Under Mouse Question?

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



Joined: 19 Dec 2006
Posts: 26

PostPosted: Wed Jan 17, 2007 3:19 pm    Post subject: Class Under Mouse Question? Reply with quote

How do I activate the ClassNN that you see in windows spy, but without using the clickmouse or anything like it. So that when I press say AppsKey it presses a particular control class button, instead of using the mouse movements. Is this possible Question
Back to top
View user's profile Send private message
.AHK



Joined: 26 Apr 2006
Posts: 662
Location: USA

PostPosted: Wed Jan 17, 2007 3:49 pm    Post subject: Reply with quote

ControlClick Question
Back to top
View user's profile Send private message Visit poster's website AIM Address
Dragon665



Joined: 19 Dec 2006
Posts: 26

PostPosted: Wed Jan 17, 2007 3:55 pm    Post subject: ControlClick Reply with quote

Yes, I've just found that, but am finding it difficult to find out how to bind it to the F1 key? Anybody know?
Back to top
View user's profile Send private message
.AHK



Joined: 26 Apr 2006
Posts: 662
Location: USA

PostPosted: Wed Jan 17, 2007 4:10 pm    Post subject: Reply with quote

Code:
F1::ControlClick, ClassNN
Back to top
View user's profile Send private message Visit poster's website AIM Address
Dragon665



Joined: 19 Dec 2006
Posts: 26

PostPosted: Wed Jan 17, 2007 4:13 pm    Post subject: Hmmm Reply with quote

I've tried that and it isn't working? Help!

I've tried it with a cancel button and it works, but I try it with class NN name of: ThunderRT6UserControlDC7 and it doesn't work. Any ideas?

Actually, I've just worked out that the control has several different buttons under the same ClassNN name, is there any way around this?
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Wed Jan 17, 2007 4:50 pm    Post subject: Reply with quote

Code:
F1::ControlClick Button1, Target App Title

I see you edited your last message.
Dragon665 wrote:
Actually, I've just worked out that the control has several different buttons under the same ClassNN name, is there any way around this?
It shouldn't be possible, since the NN is created (incremented) by AutoHotkey (or Window Spy).
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Last edited by PhiLho on Wed Jan 17, 2007 4:52 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Dragon665



Joined: 19 Dec 2006
Posts: 26

PostPosted: Wed Jan 17, 2007 4:52 pm    Post subject: Problem Reply with quote

Problem is there is about 7 or so buttons on this user control and they are all under the same ClassNN name? So how do I know which button number each one would be?
Back to top
View user's profile Send private message
.AHK



Joined: 26 Apr 2006
Posts: 662
Location: USA

PostPosted: Thu Jan 18, 2007 11:35 pm    Post subject: Reply with quote

Dragon, you might want to look in the help file under "ControlClick". There are several methods to controlclick, and one that might work for you.
.AHK
Back to top
View user's profile Send private message Visit poster's website AIM Address
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Jan 19, 2007 9:54 am    Post subject: Re: Problem Reply with quote

Dragon665 wrote:
Problem is there is about 7 or so buttons on this user control and they are all under the same ClassNN name? So how do I know which button number each one would be?
If that's the case, then what you see as several buttons might be actually a unique custom control (or just a picture!). A good example of similar stuff is HTML's image map: you take an image, split it in regions, and browser will report which region was clicked.
In this case, I fear that you can use only mouse clicks. (Or PostMessage or similar underway to tell the program what to do.)
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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