AutoHotkey Community

It is currently May 27th, 2012, 12:24 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Retrieving ClassNN
PostPosted: October 1st, 2009, 8:25 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
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/viewtop ... 076#300076
Thanks ahklerner

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 9:11 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
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?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2009, 4:55 pm 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
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.

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 7th, 2009, 2:35 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
How about that: Function - Control_GetClassNN() - Get a control ClassNN

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group