| View previous topic :: View next topic |
| Author |
Message |
ruespe
Joined: 17 Jun 2008 Posts: 243
|
Posted: Thu Oct 01, 2009 7:25 pm Post subject: Retrieving ClassNN |
|
|
The ControlGet-Command knows of many commands, but one is missing: ClassNN for retrieving the ClassNN of a control.
I missed it several times but never had the idea to put it into wishlist until now and http://www.autohotkey.com/forum/viewtopic.php?p=300076#300076
Thanks ahklerner _________________ Greetings
Rog |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Oct 02, 2009 8:11 am Post subject: |
|
|
you have to know something else about the control to get it's ClassNN. In that case, you can just use the other information to access the control instead of the Class.
can you give an example where you have enough info to access the control, but still need the ClassNN for some reason? _________________
(Common Answers) |
|
| Back to top |
|
 |
Raccoon
Joined: 02 Jan 2008 Posts: 150 Location: Freenode IRC
|
Posted: Tue Dec 01, 2009 3:55 pm Post subject: |
|
|
Actually, I can think of many.
In the case where you have the current hWnd of a control, but want to reference the ClassNN over long-term for when the application is closed and restarted.
There really isn't any conversion, and you're pretty stuck if you can't figure out a way to obtain the ClassNN at the point of discovery. If you're lucky, your script can use MouseGetPos to obtain the ClassNN, otherwise most other functions only return the hWnd; which is useless after the app closes. _________________
Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
|