在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#语言基础 → IE下获取XPATH小工具源码(支持32/64位)

IE下获取XPATH小工具源码(支持32/64位)

C#语言基础

下载此实例
  • 开发语言:C#
  • 实例大小:0.21M
  • 下载次数:22
  • 浏览次数:300
  • 发布时间:2019-11-06
  • 实例类别:C#语言基础
  • 发 布 人:zhongjeizhe123
  • 文件格式:.zip
  • 所需积分:2
 相关标签: IEXPath

实例介绍

【实例简介】

【实例截图】

from clipboard


from clipboard

【核心代码】


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
using commonlib.winapi;
using IEXPath.Properties;
using Microsoft.CSharp.RuntimeBinder;
using mshtml;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
 
namespace IEXPath
{
    public class frmIEXPath : Form
    {
        [CompilerGenerated]
        private static class <calculate>o__SiteContainer0
        {
            public static CallSite<Func<CallSite, object, IHTMLElementCollection>> <>p__Site1;
 
            public static CallSite<Func<CallSite, object, IHTMLElement>> <>p__Site2;
        }
 
        [CompilerGenerated]
        private static class <getElementAttribute>o__SiteContainer3
        {
            public static CallSite<Func<CallSite, object, string>> <>p__Site4;
 
            public static CallSite<Func<CallSite, object, string, object>> <>p__Site5;
        }
 
        private const string _VERSION = "1.0";
 
        public int hotkeyId;
 
        private Cursor moveCursor;
 
        private IHTMLElement lastEle;
 
        private char SPLIT = '"';
 
        private IContainer components;
 
        private GroupBox groupBox1;
 
        private TextBox txtOuterHtml;
 
        private Label label7;
 
        private TextBox txtText;
 
        private Label label6;
 
        private TextBox txtHTML;
 
        private Label label5;
 
        private TextBox txtClass;
 
        private Label label4;
 
        private TextBox txtName;
 
        private Label label3;
 
        private TextBox txtID;
 
        private Label label2;
 
        private Label label1;
 
        private ListBox lstXPath;
 
        private PictureBox pictureBox1;
 
        private LinkLabel linkLabel1;
 
        private Timer timer1;
 
        private TextBox txtTag;
 
        private Label labletag;
 
        private CheckBox chkCopy;
 
        private CheckBox chkSplit;
 
        public frmIEXPath()
        {
            this.InitializeComponent();
        }
 
        protected override void WndProc(ref Message m)
        {
            if (m.Msg == 786 && m.WParam.ToInt32() == this.hotkeyId)
            {
                this.captureIE();
            }
            base.WndProc(ref m);
        }
 
        private void frmIEXPath_Load(object sender, EventArgs e)
        {
            this.Text = "IEXPath - 1.0";
            this.moveCursor = new Cursor(new MemoryStream(Resources.pen_r));
            Win32API.SetWindowPos(base.Handle, -1, 0, 0, 0, 0, 3);
            if (!Win32API.RegisterHotKey(base.Handle, this.hotkeyId, Win32API.KeyModifiers.None, Keys.F8))
            {
                MessageBox.Show("热键注册失败");
            }
        }
 
        private void frmIEXPath_FormClosed(object sender, FormClosedEventArgs e)
        {
            Win32API.UnregisterHotKey(base.Handle, this.hotkeyId);
        }
 
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start("https://github.com/xwjie/IEXPath");
        }
 
        public static object GetComObjectByHandle(int Msg, Guid riid, IntPtr hWnd)
        {
            int lResult = 0;
            if (!Win32API.SendMessageTimeout(hWnd, Msg, 0, 0, 2, 1000, ref lResult))
            {
                return null;
            }
            object result;
            if (Win32API.ObjectFromLresult(lResult, ref riid, 0, out result))
            {
                return null;
            }
            return result;
        }
 
        public object GetHtmlDocumentByHandle(IntPtr hWnd)
        {
            string a = new string('\0', 24);
            Win32API.GetClassName(hWnd, ref a, 25);
            if (a != "Internet Explorer_Server")
            {
                return null;
            }
            return frmIEXPath.GetComObjectByHandle(Win32API.WM_HTML_GETOBJECT, Win32API.IID_IHTMLDocument, hWnd);
        }
 
        private void timer1_Tick(object sender, EventArgs e)
        {
            this.captureIE();
        }
 
        private void captureIE()
        {
            try
            {
                IntPtr hWnd = Win32API.WindowFromPoint(Control.MousePosition);
                IHTMLDocument2 iHTMLDocument = (IHTMLDocument2)this.GetHtmlDocumentByHandle(hWnd);
                if (iHTMLDocument != null)
                {
                    Point mousePosition = Control.MousePosition;
                    Win32API.ScreenToClient(hWnd, ref mousePosition);
                    IHTMLElement e = iHTMLDocument.elementFromPoint(mousePosition.X, mousePosition.Y);
                    this.readIEElement(e);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("发生了一些错误:"   ex.Message);
            }
        }
 
        private void readIEElement(IHTMLElement e)
        {
            if (this.lastEle == e)
            {
                return;
            }
            this.clearBorderHint();
            this.lastEle = e;
            if (e == null)
            {
                return;
            }
            e.style.setAttribute("outline", "2px solid red", 1);
            this.txtID.Text = e.id;
            this.txtName.Text = this.getElementAttribute(e, "NAME");
            this.txtTag.Text = e.tagName;
            this.txtText.Text = this.getElementAttribute(e, "VALUE");
            this.txtClass.Text = e.className;
            this.txtHTML.Text = e.innerHTML;
            this.txtOuterHtml.Text = e.outerHTML;
            this.extractXPath(e);
        }
 
        private void extractXPath(IHTMLElement e)
        {
            this.lstXPath.Items.Clear();
            if (e.id != null)
            {
                this.addXPath(string.Concat(new object[]
                {
                    "//*[@id=",
                    this.SPLIT,
                    e.id,
                    this.SPLIT,
                    "]"
                }));
                return;
            }
            this.addXPath(this.getXPathEx(e));
            string elementAttribute = this.getElementAttribute(e, "NAME");
            if (elementAttribute != "")
            {
                this.addXPath(string.Concat(new object[]
                {
                    "//",
                    e.tagName,
                    "[@name=",
                    this.SPLIT,
                    elementAttribute,
                    this.SPLIT,
                    "]"
                }));
            }
            if (e.className != null)
            {
                this.addXPath(string.Concat(new object[]
                {
                    "//",
                    e.tagName,
                    "[@class=",
                    this.SPLIT,
                    e.className,
                    this.SPLIT,
                    "]"
                }));
            }
            if (this.chkCopy.Checked)
            {
                Clipboard.SetText(this.lstXPath.Items[0].ToString());
            }
        }
 
        private string getXPathEx(IHTMLElement e)
        {
            IHTMLElement iHTMLElement = e;
            string text = "";
            while (iHTMLElement != null)
            {
                if (iHTMLElement.id != null)
                {
                    text = string.Concat(new object[]
                    {
                        "//*[@id=",
                        this.SPLIT,
                        iHTMLElement.id,
                        this.SPLIT,
                        "]",
                        text
                    });
                    break;
                }
                string str = this.extractCurrentXpath(iHTMLElement);
                text = str   text;
                iHTMLElement = iHTMLElement.parentElement;
            }
            return text;
        }
 
        private string extractCurrentXpath(IHTMLElement current)
        {
            string text = "/"   current.tagName;
            int num = this.calculate(current);
            if (num >= 1)
            {
                object obj = text;
                text = string.Concat(new object[]
                {
                    obj,
                    "[",
                    num,
                    "]"
                });
            }
            return text;
        }
 
        private int calculate(IHTMLElement current)
        {
            if (current.parentElement == null)
            {
                return 0;
            }
            if (frmIEXPath.<calculate>o__SiteContainer0.<>p__Site1 == null)
            {
                frmIEXPath.<calculate>o__SiteContainer0.<>p__Site1 = CallSite<Func<CallSite, object, IHTMLElementCollection>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(IHTMLElementCollection), typeof(frmIEXPath)));
            }
            IHTMLElementCollection iHTMLElementCollection = frmIEXPath.<calculate>o__SiteContainer0.<>p__Site1.Target(frmIEXPath.<calculate>o__SiteContainer0.<>p__Site1, current.parentElement.children);
            int length = iHTMLElementCollection.length;
            int result = 0;
            int num = 0;
            for (int i = 0; i < length; i  )
            {
                if (frmIEXPath.<calculate>o__SiteContainer0.<>p__Site2 == null)
                {
                    frmIEXPath.<calculate>o__SiteContainer0.<>p__Site2 = CallSite<Func<CallSite, object, IHTMLElement>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(IHTMLElement), typeof(frmIEXPath)));
                }
                IHTMLElement iHTMLElement = frmIEXPath.<calculate>o__SiteContainer0.<>p__Site2.Target(frmIEXPath.<calculate>o__SiteContainer0.<>p__Site2, iHTMLElementCollection.item(i, Missing.Value));
                if (iHTMLElement == null)
                {
                    break;
                }
                if (iHTMLElement.tagName == current.tagName)
                {
                    num  ;
                    if (iHTMLElement == current)
                    {
                        result = num;
                    }
                }
            }
            if (num == 1)
            {
                return 0;
            }
            return result;
        }
 
        private void addXPath(string str)
        {
            this.lstXPath.Items.Add(str);
        }
 
        private string getElementAttribute(IHTMLElement e, string name)
        {
            object attribute = e.getAttribute(name, 0);
            if (frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site4 == null)
            {
                frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site4 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(frmIEXPath)));
            }
            Func<CallSite, object, string> arg_AA_0 = frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site4.Target;
            CallSite arg_AA_1 = frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site4;
            object arg_AA_2;
            if (!(attribute is DBNull))
            {
                if (frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site5 == null)
                {
                    frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site5 = CallSite<Func<CallSite, object, string, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Add, typeof(frmIEXPath), new CSharpArgumentInfo[]
                    {
                        CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
                        CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null)
                    }));
                }
                arg_AA_2 = frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site5.Target(frmIEXPath.<getElementAttribute>o__SiteContainer3.<>p__Site5, attribute, "");
            }
            else
            {
                arg_AA_2 = "";
            }
            return arg_AA_0(arg_AA_1, arg_AA_2);
        }
 
        private void chkSplit_CheckedChanged(object sender, EventArgs e)
        {
            this.SPLIT = (this.chkSplit.Checked ? '\'' : '"');
        }
 
        private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
        {
            this.timer1.Enabled = true;
            this.Cursor = this.moveCursor;
        }
 
        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            this.timer1.Enabled = false;
            this.Cursor = Cursors.Default;
            this.clearBorderHint();
        }
 
        private void clearBorderHint()
        {
            if (this.lastEle != null)
            {
                try
                {
                    this.lastEle.style.setAttribute("outline", "", 1);
                }
                catch
                {
                }
            }
        }
 
        private void txtID_DoubleClick(object sender, EventArgs e)
        {
            TextBox textBox = (TextBox)sender;
            Clipboard.SetText(textBox.Text);
        }
 
        private void lstXPath_DoubleClick(object sender, EventArgs e)
        {
            if (this.lstXPath.SelectedIndex == -1)
            {
                return;
            }
            Clipboard.SetText(this.lstXPath.SelectedItem.ToString());
        }
 
        protected override void Dispose(bool disposing)
        {
            if (disposing && this.components != null)
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmIEXPath));
            this.groupBox1 = new GroupBox();
            this.txtTag = new TextBox();
            this.labletag = new Label();
            this.txtOuterHtml = new TextBox();
            this.label7 = new Label();
            this.txtText = new TextBox();
            this.label6 = new Label();
            this.txtHTML = new TextBox();
            this.label5 = new Label();
            this.txtClass = new TextBox();
            this.label4 = new Label();
            this.txtName = new TextBox();
            this.label3 = new Label();
            this.txtID = new TextBox();
            this.label2 = new Label();
            this.label1 = new Label();
            this.lstXPath = new ListBox();
            this.linkLabel1 = new LinkLabel();
            this.timer1 = new Timer(this.components);
            this.chkCopy = new CheckBox();
            this.chkSplit = new CheckBox();
            this.pictureBox1 = new PictureBox();
            this.groupBox1.SuspendLayout();
            ((ISupportInitialize)this.pictureBox1).BeginInit();
            base.SuspendLayout();
            this.groupBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.groupBox1.Controls.Add(this.txtTag);
            this.groupBox1.Controls.Add(this.labletag);
            this.groupBox1.Controls.Add(this.txtOuterHtml);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.txtText);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.txtHTML);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.txtClass);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.txtName);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.txtID);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Location = new Point(12, 10);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new Size(325, 206);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.txtTag.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtTag.Location = new Point(68, 71);
            this.txtTag.Name = "txtTag";
            this.txtTag.Size = new Size(251, 21);
            this.txtTag.TabIndex = 5;
            this.txtTag.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.labletag.AutoSize = true;
            this.labletag.Location = new Point(39, 80);
            this.labletag.Name = "labletag";
            this.labletag.Size = new Size(23, 12);
            this.labletag.TabIndex = 12;
            this.labletag.Text = "Tag";
            this.txtOuterHtml.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtOuterHtml.Location = new Point(68, 179);
            this.txtOuterHtml.Name = "txtOuterHtml";
            this.txtOuterHtml.Size = new Size(251, 21);
            this.txtOuterHtml.TabIndex = 11;
            this.txtOuterHtml.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.label7.AutoSize = true;
            this.label7.Location = new Point(6, 188);
            this.label7.Name = "label7";
            this.label7.Size = new Size(59, 12);
            this.label7.TabIndex = 10;
            this.label7.Text = "OuterHTML";
            this.txtText.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtText.Location = new Point(68, 152);
            this.txtText.Name = "txtText";
            this.txtText.Size = new Size(251, 21);
            this.txtText.TabIndex = 9;
            this.txtText.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.label6.AutoSize = true;
            this.label6.Location = new Point(27, 161);
            this.label6.Name = "label6";
            this.label6.Size = new Size(35, 12);
            this.label6.TabIndex = 8;
            this.label6.Text = "Value";
            this.txtHTML.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtHTML.Location = new Point(68, 125);
            this.txtHTML.Name = "txtHTML";
            this.txtHTML.Size = new Size(251, 21);
            this.txtHTML.TabIndex = 7;
            this.txtHTML.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.label5.AutoSize = true;
            this.label5.Location = new Point(33, 134);
            this.label5.Name = "label5";
            this.label5.Size = new Size(29, 12);
            this.label5.TabIndex = 6;
            this.label5.Text = "HTML";
            this.txtClass.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtClass.Location = new Point(68, 98);
            this.txtClass.Name = "txtClass";
            this.txtClass.Size = new Size(251, 21);
            this.txtClass.TabIndex = 6;
            this.txtClass.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.label4.AutoSize = true;
            this.label4.Location = new Point(27, 107);
            this.label4.Name = "label4";
            this.label4.Size = new Size(35, 12);
            this.label4.TabIndex = 4;
            this.label4.Text = "Class";
            this.txtName.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtName.Location = new Point(68, 44);
            this.txtName.Name = "txtName";
            this.txtName.Size = new Size(251, 21);
            this.txtName.TabIndex = 3;
            this.txtName.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.label3.AutoSize = true;
            this.label3.Location = new Point(33, 53);
            this.label3.Name = "label3";
            this.label3.Size = new Size(29, 12);
            this.label3.TabIndex = 2;
            this.label3.Text = "Name";
            this.txtID.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this.txtID.Location = new Point(68, 17);
            this.txtID.Name = "txtID";
            this.txtID.Size = new Size(251, 21);
            this.txtID.TabIndex = 1;
            this.txtID.Text = "双击文本框复制";
            this.txtID.DoubleClick  = new EventHandler(this.txtID_DoubleClick);
            this.label2.AutoSize = true;
            this.label2.Location = new Point(45, 26);
            this.label2.Name = "label2";
            this.label2.Size = new Size(17, 12);
            this.label2.TabIndex = 0;
            this.label2.Text = "ID";
            this.label2.TextAlign = ContentAlignment.MiddleRight;
            this.label1.AutoSize = true;
            this.label1.Location = new Point(12, 228);
            this.label1.Name = "label1";
            this.label1.Size = new Size(143, 12);
            this.label1.TabIndex = 1;
            this.label1.Text = "XPath(选择后双击复制)";
            this.lstXPath.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            this.lstXPath.FormattingEnabled = true;
            this.lstXPath.ItemHeight = 12;
            this.lstXPath.Items.AddRange(new object[]
            {
                "拖动左下角的图标到IE查看即可",
                "也可以按F8获取光标当前位置元素信息",
                "",
                "双击文本框即可复制内容",
                "XPATH选中后双击即可复制。采集时默认自动复制第一个",
                "",
                "Bug、建议或者检查新版本请点击右下角链接"
            });
            this.lstXPath.Location = new Point(12, 243);
            this.lstXPath.Margin = new Padding(5);
            this.lstXPath.Name = "lstXPath";
            this.lstXPath.Size = new Size(326, 100);
            this.lstXPath.TabIndex = 2;
            this.lstXPath.DoubleClick  = new EventHandler(this.lstXPath_DoubleClick);
            this.linkLabel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
            this.linkLabel1.AutoSize = true;
            this.linkLabel1.Location = new Point(279, 372);
            this.linkLabel1.Name = "linkLabel1";
            this.linkLabel1.Size = new Size(59, 12);
            this.linkLabel1.TabIndex = 5;
            this.linkLabel1.TabStop = true;
            this.linkLabel1.Text = "by 晓风轻";
            this.linkLabel1.LinkClicked  = new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
            this.timer1.Interval = 250;
            this.timer1.Tick  = new EventHandler(this.timer1_Tick);
            this.chkCopy.AutoSize = true;
            this.chkCopy.Checked = true;
            this.chkCopy.CheckState = CheckState.Checked;
            this.chkCopy.Location = new Point(53, 349);
            this.chkCopy.Name = "chkCopy";
            this.chkCopy.Size = new Size(138, 16);
            this.chkCopy.TabIndex = 6;
            this.chkCopy.Text = "自动复制第一个XPath";
            this.chkCopy.UseVisualStyleBackColor = true;
            this.chkSplit.AutoSize = true;
            this.chkSplit.Location = new Point(53, 371);
            this.chkSplit.Name = "chkSplit";
            this.chkSplit.Size = new Size(114, 16);
            this.chkSplit.TabIndex = 7;
            this.chkSplit.Text = "XPath使用单引号";
            this.chkSplit.UseVisualStyleBackColor = true;
            this.chkSplit.CheckedChanged  = new EventHandler(this.chkSplit_CheckedChanged);
            this.pictureBox1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
            this.pictureBox1.Image = (Image)componentResourceManager.GetObject("pictureBox1.Image");
            this.pictureBox1.Location = new Point(12, 349);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new Size(33, 33);
            this.pictureBox1.TabIndex = 3;
            this.pictureBox1.TabStop = false;
            this.pictureBox1.MouseDown  = new MouseEventHandler(this.pictureBox1_MouseDown);
            this.pictureBox1.MouseUp  = new MouseEventHandler(this.pictureBox1_MouseUp);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(349, 389);
            base.Controls.Add(this.chkSplit);
            base.Controls.Add(this.chkCopy);
            base.Controls.Add(this.linkLabel1);
            base.Controls.Add(this.pictureBox1);
            base.Controls.Add(this.lstXPath);
            base.Controls.Add(this.label1);
            base.Controls.Add(this.groupBox1);
            base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.Name = "frmIEXPath";
            this.Text = "IEXPath";
            base.FormClosed  = new FormClosedEventHandler(this.frmIEXPath_FormClosed);
            base.Load  = new EventHandler(this.frmIEXPath_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((ISupportInitialize)this.pictureBox1).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
    }
}


标签: IEXPath

实例下载地址

IE下获取XPATH小工具源码(支持32/64位)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警