KostjaStern Posted February 6, 2014 Posted February 6, 2014 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
Richard Robertson Posted February 7, 2014 Posted February 7, 2014 The instance number is most likely based on the order Windows enumerates the controls.
Werty Posted February 7, 2014 Posted February 7, 2014 Be sure to check out Yashied's "Control Viewer", an extended version of AutoIt's Window Info Tool, it comes with source you can study... '?do=embed' frameborder='0' data-embedContent>> Some guy's script + some other guy's script = my script!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now