Sign in to follow this  
Followers 0
KostjaStern

AutoIt Window Information Tool

4 posts in this topic

Good day!

I was wondering how the Window Information Tool works, and I wrote my version it (https://github.com/KostjaStern/WinInfo)
but I could not understand how found the value
  Instance (http://screencast.com/t/95wosDmml4)

 

I just noticed that if I change the edit fields of advertisement in a resource file that will change accordingly and  values Instance

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_MAIN DIALOG 0, 0, 280, 300
STYLE DS_CENTER | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_GROUP | WS_THICKFRAME | WS_SYSMENU
EXSTYLE WS_EX_TOPMOST
CAPTION "WinInfo"
MENU IDR_MENU1
FONT 8, "Ms Shell Dlg"
{
    GROUPBOX        "Basic Window Info", IDC_STATIC1, 5, 5, 270, 43
    LTEXT           "Title:", IDC_STATIC, 14, 17, 16, 8, SS_LEFT
    EDITTEXT        IDC_EDIT3, 57, 59, 158, 12, ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_EDIT1, 57, 14, 212, 12, ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_EDIT4, 57, 74, 158, 12, ES_AUTOHSCROLL | ES_READONLY
    LTEXT           "Class:", IDC_STATIC, 15, 32, 20, 8, SS_LEFT
    EDITTEXT        IDC_EDIT2, 57, 30, 212, 12, ES_AUTOHSCROLL | ES_READONLY
    GROUPBOX        "Finder Tool", IDC_STATIC2, 227, 50, 48, 43, BS_NOTIFY
    GROUPBOX        "Basic Control Info", IDC_STATIC, 5, 50, 215, 43
    LTEXT           "Class:", IDC_STATIC, 16, 60, 20, 8, SS_LEFT
    LTEXT           "ID:", IDC_STATIC, 15, 74, 10, 8, SS_LEFT
    CONTROL         "", IDC_STATIC3, WC_STATIC, SS_BITMAP | SS_NOTIFY, 233, 61, 32, 25
    CONTROL         "", IDC_TAB1, WC_TABCONTROL, 0, 5, 100, 270, 195
}

IDC_EDIT3 => Instance = 1 , IDC_EDIT1 => Instance = 2 , IDC_EDIT4 => Instance = 3 , IDC_EDIT2 => Instance = 4

 

P.S. Sorry for my english :)

Share this post


Link to post
Share on other sites



The instance number is most likely based on the order Windows enumerates the controls.

Share this post


Link to post
Share on other sites

thanks, very interesting :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0