I took a look at the window objects (for the Open window) and here is what I see. <item number><Handle> <windows name>
1 6357788 :
2 8062306 :
3 6881998 :
4 3212930 : Internet Explorer
5 3343924 :
6 2951438 :
7 3081696 :
8 2492690 :
9 2754668 : Internet Explorer
10 6882162 :
11 3606804 :
12 5637090 :
13 6620090 :
14 3278970 :
15 3999950 :
16 2033758 :
17 7079180 :
18 13764670 :
19 1968228 :
20 5767794 :
21 2885840 : Open
22 4719718 :
23 8192720 :
24 1902878 :
25 5244332 : Namespace Tree Control
26 6226596 : Namespace Tree Control
27 7864550 : Tree View
28 5440020 :
29 7734198 : Shell Preview Extension Host
30 4392372 :
31 2950830 : ShellView
32 5112886 :
33 4065408 :
34 3279338 :
35 5440050 :
36 8193092 :
37 6882484 : File &name:
38 5834380 :
39 8454748 :
40 2034182 :
41 5702532 : Files of &type:
42 4458050 :
43 15468482 : &Open
44 6882310 : Cancel
45 4720798 :
46 7012468 :
47 9765480 :
48 5440140 :
49 6293260 :
50 5310374 :
51 6292276 : &Help
52 3933598 :
53 3999960 :
54 2950534 :
55 5440458 : Navigation buttons
56 4982042 :
57 7340556 : Up band toolbar
58 1706380 :
59 2951070 :
60 3015968 :
61 6619948 : Address: \<destination folder>
62 2623292 : Address band toolbar
63 3016214 :
64 6161212 :
65 6358002 :
66 7210186 :
67 5440262 :
68 10748856 :
69 10158738 :
70 2295434 :
71 3016768 :
72 6423708 : BAR.ROG (F/LIVE.MIS/30)
73 5310224 :
74 3671870 :
75 7078424 :
76 4392996 : MSCTFIME UI
77 8521274 : Default IME
There are two "Open" handles that are showing up in the Windows Inprocess (Direct.M.W.hWnd). One is "Open" and the other is "&Open". There is only one Cancel.
Using SmartDialog I am trying to push the "Open" button after filling in the filename.
My wHandle is coming from FindWindow(0&, "Open")
SmartDialog(wName,"Open<PushButton>",wHandlel).Click. The focused default keywords at the end of <PushButton> did not work.
I tried using "&Open" in SmartDialog and that does not work either.
Is this a focus issue? Is it a Windows handle issue?