回答編集履歴
1
訂正と整理
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
2点問題があると思います。下記へ変更してやってみて下さい。
|
2
2
|
|
3
|
-
1.("img")訂正--->("IMG")
|
3
|
+
~~1.("img")訂正--->("IMG")~~
|
4
4
|
|
5
5
|
2.msgbox "ok"を追加して一旦画面を止める。
|
6
6
|
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
Debug.Print inputTags2.uniqueNumber & " - " & inputTags2.src
|
12
12
|
|
13
|
-
========================================================
|
13
|
+
'========================================================
|
14
14
|
|
15
|
-
|
15
|
+
'----------------------------
|
16
16
|
|
17
17
|
'「洪水」ボタンをクリック
|
18
18
|
|
@@ -22,98 +22,102 @@
|
|
22
22
|
|
23
23
|
set inputTags2 = ie.document.getElementsByTagName("IMG")
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
========================================================
|
25
|
+
'========================================================
|
28
26
|
|
29
27
|
<下記は参考です>
|
30
28
|
|
31
29
|
画面ボタンが選択されて動く状態が見えると思います。
|
32
30
|
|
31
|
+
```ここに言語を入力
|
32
|
+
|
33
|
+
'(Test_Sample_Miniature)
|
34
|
+
|
33
|
-
'------------------------------
|
35
|
+
'----------------------------------
|
34
36
|
|
35
37
|
'「洪水」ボタンをクリック部分を変更
|
36
38
|
|
37
|
-
'----------------------------------
|
39
|
+
'----------------------------------
|
38
40
|
|
39
|
-
|
41
|
+
Dim inputTag_Kozui As IHTMLElement
|
40
42
|
|
41
|
-
|
43
|
+
Dim inputTag_Dosha As IHTMLElement
|
42
44
|
|
43
|
-
|
45
|
+
Dim inputTag_Tsunami As IHTMLElement
|
44
46
|
|
45
|
-
|
47
|
+
Dim inputTag_Douro As IHTMLElement
|
46
48
|
|
47
|
-
|
48
49
|
|
49
|
-
Set inputTags = ie.document.getElementsByTagName("IMG")
|
50
50
|
|
51
|
-
|
51
|
+
Set inputTags = ie.document.getElementsByTagName("IMG")
|
52
52
|
|
53
|
-
|
53
|
+
For Each inputTag In inputTags
|
54
54
|
|
55
|
-
|
55
|
+
'
|
56
56
|
|
57
|
-
|
57
|
+
'(デバック用記述)
|
58
58
|
|
59
|
-
|
59
|
+
Debug.Print inputTag.uniqueNumber & " - " & inputTag.src
|
60
60
|
|
61
|
-
|
61
|
+
'
|
62
62
|
|
63
|
-
|
63
|
+
Select Case True
|
64
64
|
|
65
|
-
|
65
|
+
Case InStr(inputTag.src, "image/skin/kouzui.png") > 0
|
66
66
|
|
67
|
-
|
67
|
+
Set inputTag_Kozui = inputTag
|
68
68
|
|
69
|
-
|
69
|
+
Case InStr(inputTag.src, "image/skin/dosha.png") > 0
|
70
70
|
|
71
|
-
|
71
|
+
Set inputTag_Dosha = inputTag
|
72
72
|
|
73
|
-
|
73
|
+
Case InStr(inputTag.src, "image/skin/tsunami.png") > 0
|
74
74
|
|
75
|
-
|
75
|
+
Set inputTag_Tsunami = inputTag
|
76
76
|
|
77
|
-
|
77
|
+
Case InStr(inputTag.src, "image/skin/douro.png") > 0
|
78
78
|
|
79
|
-
|
79
|
+
Set inputTag_Douro = inputTag
|
80
80
|
|
81
|
-
|
81
|
+
End Select
|
82
82
|
|
83
|
-
|
83
|
+
Next
|
84
|
+
|
85
|
+
|
84
86
|
|
85
87
|
'画面選択
|
86
88
|
|
87
|
-
'----------------------------------
|
89
|
+
'----------------------------------
|
88
90
|
|
89
|
-
|
91
|
+
Dim strNo As String
|
90
92
|
|
91
|
-
|
93
|
+
Do
|
92
94
|
|
93
|
-
|
95
|
+
strNo = InputBox("No:1~4", "処理選択", 1)
|
94
96
|
|
95
|
-
|
97
|
+
Select Case strNo
|
96
98
|
|
97
|
-
|
99
|
+
Case "1"
|
98
100
|
|
99
|
-
|
101
|
+
inputTag_Kozui.Click
|
100
102
|
|
101
|
-
|
103
|
+
Case "2"
|
102
104
|
|
103
|
-
|
105
|
+
inputTag_Dosha.Click
|
104
106
|
|
105
|
-
|
107
|
+
Case "3"
|
106
108
|
|
107
|
-
|
109
|
+
inputTag_Tsunami.Click
|
108
110
|
|
109
|
-
|
111
|
+
Case "4"
|
110
112
|
|
111
|
-
|
113
|
+
inputTag_Douro.Click
|
112
114
|
|
113
|
-
|
115
|
+
Case Else
|
114
116
|
|
115
|
-
|
117
|
+
Exit Do
|
116
118
|
|
117
|
-
|
119
|
+
End Select
|
118
120
|
|
119
|
-
|
121
|
+
Loop
|
122
|
+
|
123
|
+
```
|