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 

Operating upon a control's ItemID

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





PostPosted: Sun Nov 15, 2009 11:04 pm    Post subject: Operating upon a control's ItemID Reply with quote

How do I operate upon a control's ItemID when using ControlGet? The ItemID of a control can be found by using WinExplorer from http://www.nirsoft.net/utils/winexp.html
Back to top
TLM



Joined: 21 Aug 2006
Posts: 767
Location: The Shell

PostPosted: Sun Nov 15, 2009 11:27 pm    Post subject: Reply with quote

What is the controls ID/text name found in Au3_spy.exe that comes with AHK?
For instance

_________________

Off diving into dll functions..
Back to top
View user's profile Send private message
txquestor



Joined: 22 Aug 2009
Posts: 294

PostPosted: Sun Nov 15, 2009 11:28 pm    Post subject: Reply with quote

Use PostMessage

You can also get the ID using
Winspector
_________________

"Man's quest for knowledge is an expanding series whose limit is infinity"
Back to top
View user's profile Send private message
TLM



Joined: 21 Aug 2006
Posts: 767
Location: The Shell

PostPosted: Sun Nov 15, 2009 11:45 pm    Post subject: Reply with quote

I could be wrong but I think that WinExplorer's ItemID isn't a standard ID number.

I noticed that Winspector's ID is different.

WInSpector: 2163091
WinExplorer: 3161407064

Again I'm not 100% sure but its kind of strange.
_________________

Off diving into dll functions..
Back to top
View user's profile Send private message
txquestor



Joined: 22 Aug 2009
Posts: 294

PostPosted: Mon Nov 16, 2009 1:13 am    Post subject: Reply with quote

The ID is the value used by Postmessage to activate controls in an app.

i tested it on a number of apps I used regularly; Agent Ransack & Cleanup.
The postmessage command worked on both apps using the item ID value

To verify what i said, Download a free copy of Ranorex Spy
http://www.ranorex.com/fileadmin/downloads/RanorexSpy.exe
It displays the same ID value.
_________________

"Man's quest for knowledge is an expanding series whose limit is infinity"
Back to top
View user's profile Send private message
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