| View previous topic :: View next topic |
| Author |
Message |
Dragon665
Joined: 19 Dec 2006 Posts: 26
|
Posted: Wed Jan 17, 2007 3:19 pm Post subject: Class Under Mouse Question? |
|
|
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  |
|
| Back to top |
|
 |
.AHK
Joined: 26 Apr 2006 Posts: 662 Location: USA
|
Posted: Wed Jan 17, 2007 3:49 pm Post subject: |
|
|
ControlClick  |
|
| Back to top |
|
 |
Dragon665
Joined: 19 Dec 2006 Posts: 26
|
Posted: Wed Jan 17, 2007 3:55 pm Post subject: ControlClick |
|
|
| 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 |
|
 |
.AHK
Joined: 26 Apr 2006 Posts: 662 Location: USA
|
Posted: Wed Jan 17, 2007 4:10 pm Post subject: |
|
|
| Code: | | F1::ControlClick, ClassNN |
|
|
| Back to top |
|
 |
Dragon665
Joined: 19 Dec 2006 Posts: 26
|
Posted: Wed Jan 17, 2007 4:13 pm Post subject: Hmmm |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Jan 17, 2007 4:50 pm Post subject: |
|
|
| 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 |
|
 |
Dragon665
Joined: 19 Dec 2006 Posts: 26
|
Posted: Wed Jan 17, 2007 4:52 pm Post subject: Problem |
|
|
| 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 |
|
 |
.AHK
Joined: 26 Apr 2006 Posts: 662 Location: USA
|
Posted: Thu Jan 18, 2007 11:35 pm Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Jan 19, 2007 9:54 am Post subject: Re: Problem |
|
|
| 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 |
|
 |
|