etc...
just sending keyboard commands has its obvious disadvantages, so I want to start sending directly to the controls. But I don't know what their names are. I've tried using Window spy, but I can never get it to work.
I wrote this basic script that gets a list of the control names... but I don't know what they relate to in the program. I need to have my script also output what's IN the field at the time... then I can figure out "Oh, that's the city field!" etc...
WinGet, ActiveControlList, ControlList, A Loop, Parse, ActiveControlList, `n { FileAppend, ( Control #%a_index% is "%A_LoopField%". ), C:\Controls.txt }
Output looks like:
Control #1 is "MDIClient1". Control #2 is "Afx:400000:b:0:6:4042f1". Control #3 is "#327701". Control #4 is "Edit1". Control #5 is "Button1". Control #6 is "Button2". Control #7 is "Button3". Control #8 is "Button4". Control #9 is "Button5". Control #10 is "Button6". Control #11 is "Button7". Control #12 is "Button8". Control #13 is "Button9". Control #14 is "Button10". Control #15 is "Button11". Control #16 is "Button12". Control #17 is "Button13". Control #18 is "Button14". Control #19 is "Button15". Control #20 is "Button16". Control #21 is "Button17". Control #22 is "Button18". Control #23 is "Button19". Control #24 is "Static1". Control #25 is "AfxControlBar421". Control #26 is "AfxControlBar422". Control #27 is "AfxControlBar423". Control #28 is "AfxControlBar424". Control #29 is "#327702". Control #30 is "Static2". Control #31 is "Edit2". Control #32 is "AfxMDIFrame421". Control #33 is "#327703". Control #34 is "SysListView321". Control #35 is "SysHeader321". Control #36 is "AfxFrameOrView421". Control #37 is "RichEdit20A1". Control #38 is "Afx:400000:b:0:6:4042f2". Control #39 is "#327704". Control #40 is "Edit3". Control #41 is "Button20". Control #42 is "Button21". Control #43 is "Button22". Control #44 is "Button23". Control #45 is "Button24". Control #46 is "Button25". Control #47 is "Button26". Control #48 is "Button27". Control #49 is "Button28". Control #50 is "Button29". Control #51 is "Button30". Control #52 is "Button31". Control #53 is "Button32". Control #54 is "Button33". Control #55 is "Button34". Control #56 is "Button35". Control #57 is "Button36". Control #58 is "Button37". Control #59 is "Button38". Control #60 is "Static3". Control #61 is "AfxControlBar425". Control #62 is "AfxControlBar426". Control #63 is "AfxControlBar427". Control #64 is "AfxControlBar428". Control #65 is "#327705". Control #66 is "Static4". Control #67 is "Edit4". Control #68 is "AfxMDIFrame422". Control #69 is "#327706". Control #70 is "SysListView322". Control #71 is "SysHeader322". Control #72 is "AfxFrameOrView422". Control #73 is "Afx:400000:b:10011:6:4042f1". Control #74 is "#327707". Control #75 is "Edit5". Control #76 is "Button39". Control #77 is "Button40". Control #78 is "Button41". Control #79 is "Button42". Control #80 is "Button43". Control #81 is "Button44". Control #82 is "Button45". Control #83 is "Button46". Control #84 is "Button47". Control #85 is "Button48". Control #86 is "Button49". Control #87 is "Button50". Control #88 is "Button51". Control #89 is "Button52". Control #90 is "Button53". Control #91 is "Button54". Control #92 is "Button55". Control #93 is "Button56". Control #94 is "Button57". Control #95 is "Static5". Control #96 is "AfxControlBar429". Control #97 is "AfxControlBar4210". Control #98 is "AfxControlBar4211". Control #99 is "AfxControlBar4212". Control #100 is "#327708". Control #101 is "Static6". Control #102 is "Edit6". Control #103 is "AfxMDIFrame423". Control #104 is "#327709". Control #105 is "SysListView323". Control #106 is "SysHeader323". Control #107 is "AfxFrameOrView423". Control #108 is "AfxFrameOrView424". Control #109 is "Shell Embedding1". Control #110 is "Shell DocObject View1". Control #111 is "Internet Explorer_Server1". Control #112 is "Afx:400000:b:0:6:4042f3". Control #113 is "#3277010". Control #114 is "Edit7". Control #115 is "Button58". Control #116 is "Button59". Control #117 is "Button60". Control #118 is "Button61". Control #119 is "Button62". Control #120 is "Button63". Control #121 is "Button64". Control #122 is "Button65". Control #123 is "Button66". Control #124 is "Button67". Control #125 is "Button68". Control #126 is "Button69". Control #127 is "Button70". Control #128 is "Button71". Control #129 is "Button72". Control #130 is "Button73". Control #131 is "Button74". Control #132 is "Button75". Control #133 is "Button76". Control #134 is "Static7". Control #135 is "AfxControlBar4213". Control #136 is "AfxControlBar4214". Control #137 is "AfxControlBar4215". Control #138 is "AfxControlBar4216". Control #139 is "#3277011". Control #140 is "Static8". Control #141 is "Edit8". Control #142 is "AfxMDIFrame424". Control #143 is "#3277012". Control #144 is "SysListView324". Control #145 is "SysHeader324". Control #146 is "AfxFrameOrView425". Control #147 is "msctls_statusbar321". Control #148 is "AfxControlBar4217". Control #149 is "ToolbarWindow321". Control #150 is "ToolbarWindow322". Control #151 is "ToolbarWindow323". Control #152 is "ToolbarWindow324". Control #153 is "ToolbarWindow325". Control #154 is "ComboBox1". Control #155 is "ToolbarWindow326". Control #156 is "AfxControlBar4218". Control #157 is "AfxControlBar4219". Control #158 is "AfxControlBar4220".