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 

Retrieving ClassNN

 
Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
ruespe



Joined: 17 Jun 2008
Posts: 243

PostPosted: Thu Oct 01, 2009 7:25 pm    Post subject: Retrieving ClassNN Reply with quote

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



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Oct 02, 2009 8:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Raccoon



Joined: 02 Jan 2008
Posts: 150
Location: Freenode IRC

PostPosted: Tue Dec 01, 2009 3:55 pm    Post subject: Reply with quote

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



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Mon Dec 07, 2009 1:35 pm    Post subject: Reply with quote

How about that: Function - Control_GetClassNN() - Get a control ClassNN
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Wish List 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