请资助汉化工作.
分页: 1/85 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]

C# 批量打开网址

不指定 月漩涡 , Jul 4 08:21 , C# , 评论(0) , 引用(0) , 阅读(108) , 本站原创
一个很没营养,很基础逐行读文本的软体源码!


namespace Open_Url
{
    partial class Form1
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.button3 = new System.Windows.Forms.Button();
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.linkLabel1 = new System.Windows.Forms.LinkLabel();
            this.SuspendLayout();
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.ForeColor = System.Drawing.Color.White;
            this.label1.Location = new System.Drawing.Point(135, 9);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(77, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "批量打开网址";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.ForeColor = System.Drawing.Color.White;
            this.label2.Location = new System.Drawing.Point(15, 49);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(65, 12);
            this.label2.TabIndex = 1;
            this.label2.Text = "使用方法:";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.ForeColor = System.Drawing.Color.White;
            this.label3.Location = new System.Drawing.Point(15, 80);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(155, 12);
            this.label3.TabIndex = 2;
            this.label3.Text = "1.选择记录网址的txt文件。";
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.ForeColor = System.Drawing.Color.White;
            this.label4.Location = new System.Drawing.Point(15, 109);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(269, 12);
            this.label4.TabIndex = 3;
            this.label4.Text = "2.点击开始,程序执行过程中你可以控制其暂停。";
            //
            // label5
            //
            this.label5.AutoSize = true;
            this.label5.ForeColor = System.Drawing.Color.White;
            this.label5.Location = new System.Drawing.Point(15, 138);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(257, 12);
            this.label5.TabIndex = 4;
            this.label5.Text = "注:网址格式为:<a href="http://www.xx.com" target="_blank">http://www.xx.com</a>,一行一个。";
            //
            // button1
            //
            this.button1.BackColor = System.Drawing.Color.Black;
            this.button1.ForeColor = System.Drawing.Color.White;
            this.button1.Location = new System.Drawing.Point(17, 253);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 5;
            this.button1.Text = "开始";
            this.button1.UseVisualStyleBackColor = false;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // button2
            //
            this.button2.BackColor = System.Drawing.Color.Black;
            this.button2.ForeColor = System.Drawing.Color.White;
            this.button2.Location = new System.Drawing.Point(137, 253);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(75, 23);
            this.button2.TabIndex = 6;
            this.button2.Text = "选择...";
            this.button2.UseVisualStyleBackColor = false;
            this.button2.Click += new System.EventHandler(this.button2_Click);
            //
            // textBox1
            //
            this.textBox1.ForeColor = System.Drawing.Color.White;
            this.textBox1.Location = new System.Drawing.Point(17, 311);
            this.textBox1.Name = "textBox1";
            this.textBox1.ReadOnly = true;
            this.textBox1.Size = new System.Drawing.Size(304, 21);
            this.textBox1.TabIndex = 7;
            //
            // button3
            //
            this.button3.BackColor = System.Drawing.Color.Black;
            this.button3.ForeColor = System.Drawing.Color.White;
            this.button3.Location = new System.Drawing.Point(246, 253);
            this.button3.Name = "button3";
            this.button3.Size = new System.Drawing.Size(75, 23);
            this.button3.TabIndex = 8;
            this.button3.Text = "暂停";
            this.button3.UseVisualStyleBackColor = false;
            this.button3.Click += new System.EventHandler(this.button3_Click);
            //
            // openFileDialog1
            //
            this.openFileDialog1.FileName = "openFileDialog1";
            //
            // linkLabel1
            //
            this.linkLabel1.AutoSize = true;
            this.linkLabel1.LinkColor = System.Drawing.Color.White;
            this.linkLabel1.Location = new System.Drawing.Point(238, 372);
            this.linkLabel1.Name = "linkLabel1";
            this.linkLabel1.Size = new System.Drawing.Size(83, 12);
            this.linkLabel1.TabIndex = 9;
            this.linkLabel1.TabStop = true;
            this.linkLabel1.Text = "www.ppcqq.com";
            this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Black;
            this.ClientSize = new System.Drawing.Size(331, 393);
            this.Controls.Add(this.linkLabel1);
            this.Controls.Add(this.button3);
            this.Controls.Add(this.textBox1);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.ForeColor = System.Drawing.Color.Black;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "Form1";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Open Url Ver1.0";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.Button button3;
        private System.Windows.Forms.OpenFileDialog openFileDialog1;
        private System.Windows.Forms.LinkLabel linkLabel1;
    }
}



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using System.Windows.Forms;

namespace Open_Url
{
    public partial class Form1 : Form
    {
        String FileName = "";
        String str = "";
        StreamReader sr = null;
        FileStream fs1 = null;
        ThreadStart myThreadStart1 = null;
        Thread thread = null;
        int isPause = 0;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("请选择txt文件", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                myThreadStart1 = new ThreadStart(openurl);
                thread = new Thread(myThreadStart1);
                thread.Start();

            }
        }
        public void openurl()
        {
            fs1 = new FileStream(FileName, FileMode.Open);
            sr = new StreamReader(fs1);
            while (!sr.EndOfStream)
            {
                Thread.Sleep(1000);
                str = sr.ReadLine();
                // Console.WriteLine(str);
                System.Diagnostics.Process.Start("IEXPLORE.EXE", str);
            }
            MessageBox.Show("网页已全部打开!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            sr.Close();
            fs1.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.openFileDialog1.Filter = ".txt|*.*";
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                FileName = this.openFileDialog1.FileName;
                textBox1.Text = FileName;
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (isPause == 0)
            {
                if (thread.IsAlive == true)
                {
                    thread.Suspend();
                    isPause = 1;
                    button3.Text = "继续";
                }

            }
            else
            {
                if (thread.IsAlive == true)
                {
                    thread.Resume();
                    isPause = 0;
                    button3.Text = "暂停";
                }

            }
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("IEXPLORE.EXE", "http://www.ppcqq.com");
        }
    }
}

 
Tags: , ,
简介:
一款来自微软的Microsoft Office Mobile 2010 简体中文正式版本,使用了 Microsoft Office Mobile 2010之后,无论您的员工是使用 PC、智能手机,还是 Web 浏览器工作,该产品都能为他们提供大量强大的新功能来帮助他们更好地完成工作。Microsoft Office Mobile 2010 对 Excel、PowerPoint、Word、Outlook 以及可让每个人都能更轻松地跟踪、报告和共享重要信息的新服务器集成功能进行了重大更新,通过用户熟悉的、直观的工具提供了所有程序包。

包含: Word Mobile 2010、Excel Mobile 2010
剔除:PowerPoint Mobile 2010、SharePoint Workspace Mobile 2010、OneNote Mobile 2010



下载文件 (已下载 331 次)
这个文件只能在登入之后下载。请先 注册登入
Tags:
使用说明
使用前请确认:
1.安装了CeleCmd(自行刷的ROM一般都整合了,如果你的机器上没有,可将附件中的CeleCmd.exe复制到\Windows目录后运行,选中关联.ccs脚本即可)
2.安装了CallerLoc,并且开启所有来电归属显示
3.安装了SpbPhoneSuite,并且打开了来电过滤功能。
建议:打开SpbPhoneSuite今日插件的来电过滤模式显示。

安装方法:
1.将CallFilter.ccs和CallFilterConfig.ccs复制到CallerLoc的Plugin目录下
2.运行CallFilterConfig.ccs进行设置

使用方法:
在SpbPhoneSuite中任意选择你需要的来电过滤模式(在今日插件上长按当前来电过滤模式可快速切换),在来电过滤模式为“黑名单”模式时,除了你定义的黑名单号码会被过滤外,你在CallFilterConfig.ccs选择的归属地的来电也会被过滤。当不需要按归属地过滤来电时,自由选择其他模式即可。
建议:可在情景模式管理中定义每个情景模式的来电过滤模式,并定义好情景定时切换列表,实现情景模式和来电过滤的整合。

注意事项:
如果需要过滤本省除你住地以外的其他电话,可在CallFilterConfig.ccs设置里“不过滤此地来电”一项中设置成你所在的市名,注意要前面要加上省名,例如:“安徽合肥”



CallFilter.ccs

REGX HKLM\Software\Spb Software House\Spb Phone Suite\CallFilter\#Enabled
IFEX %x==0,ENDP
REGX HKLM\Software\Spb Software House\Spb Phone Suite\CallFilter\#ignoringtype
IFEX %x==1,SEND 115
 



CallFilterConfig.ccs

EVAL 8=%C\cl_-a_CallFilter.txt
EVAL 5=<1>启用归属地过滤 (选中条目将被过滤),<0>禁用归属地过滤            &copy; funnyPC,[1]未知 *,[1]北京,[1]天津,[1]上海,[1]重庆,[1]河北,[1]山西,[1]辽宁,[1]吉林,[1]黑龙江
DLGX 归属过滤设置,%5
IFEX %x==-1,ENDP
IFEX %x&0x0002,BATC FILE %8;ENDP
EVAL 1=%x
EVAL 6=[1]江苏,[1]浙江,[1]安徽,[1]福建,[1]山东,[1]河南,[1]湖北,[1]湖南,[1]广东,[1]海南,[1]四川,[1]贵州
DLGX 归属过滤设置,%6
IFEX %x==-1,ENDP
EVAL 2=%x
EVAL 7=[1]云南,[1]陕西,[1]甘肃,[1]青海,[1]新疆,[1]广西,[1]内蒙,[1]西藏,[1]宁夏,[1]香港|澳门|台湾
DLGX 归属过滤设置,%7,$不过滤此地来电:,特服%0
IFEX %x==-1,ENDP
EVAL 3=%x
FILE %8<-[Link]%RCallFilter.ccs%R%R[Rules]%R
FILE %8<=!%0%R
EVAL 9=未知
IFEX %1&0x0004,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=北京
IFEX %1&0x0008,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=天津
IFEX %1&0x0010,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=上海
IFEX %1&0x0020,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=重庆
IFEX %1&0x0040,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=河北
IFEX %1&0x0080,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=山西
IFEX %1&0x0100,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=辽宁
IFEX %1&0x0200,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=吉林
IFEX %1&0x0400,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=黑龙江
IFEX %1&0x0800,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=江苏
IFEX %2&0x0001,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=浙江
IFEX %2&0x0002,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=安徽
IFEX %2&0x0004,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=福建
IFEX %2&0x0008,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=山东
IFEX %2&0x0010,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=河南
IFEX %2&0x0020,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=湖北
IFEX %2&0x0040,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=湖南
IFEX %2&0x0080,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=广东
IFEX %2&0x0100,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=海南
IFEX %2&0x0200,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=四川
IFEX %2&0x0400,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=贵州
IFEX %2&0x0800,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=云南
IFEX %3&0x0001,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=陕西
IFEX %3&0x0002,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=甘肃
IFEX %3&0x0004,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=青海
IFEX %3&0x0008,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=新疆
IFEX %3&0x0010,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=广西
IFEX %3&0x0020,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=内蒙
IFEX %3&0x0040,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=西藏
IFEX %3&0x0080,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=宁夏
IFEX %3&0x0100,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=香港
IFEX %3&0x0200,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=澳门
IFEX %3&0x0200,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
EVAL 9=台湾
IFEX %3&0x0200,FILE %8<=%9%R
ELSE FILE %8<=!%9%R
FILE %8<=!%R
 



cl_-a_CallFilter.txt 内容样本

[Link]
CallFilter.ccs

[Rules]
!特服
未知
北京
天津
上海
重庆
河北
山西
辽宁
吉林
黑龙江
江苏
浙江
安徽
福建
山东
河南
湖北
湖南
广东
海南
四川
贵州
云南
陕西
甘肃
青海
新疆
广西
内蒙
西藏
宁夏
香港
澳门
台湾
!
 
Tags:
一、删除msim.dll
二、删除对应注册表

[HKEY_CLASSES_ROOT\CLSID\{42429691-ae04-11d0-a4f8-00aa00a749b9}]
  "Desc"="With Block Recognizer you can enter characters using single strokes, a technique   you may be familiar with."  "Accents"=dword:0  
  @="Block Recognizer"
[HKEY_CLASSES_ROOT\CLSID\{42429691-ae04-11d0-a4f8-00aa00a749b9}\DefaultIcon]
  @="msim.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{42429691-ae04-11d0-a4f8-00aa00a749b9}\IsSIPInputMethod]
  @="1"
[HKEY_CLASSES_ROOT\CLSID\{42429691-ae04-11d0-a4f8-00aa00a749b9}\InprocServer32]
  @="msim.dll"

[HKEY_CLASSES_ROOT\CLSID\{42429690-ae04-11d0-a4f8-00aa00a749b9}]
  "ShiftLock"=dword:0  "Desc"="With Letter Recognizer you can enter characters using natural character strokes and gestures you may be familiar with."  "Accents"=dword:0  @="Letter Recognizer"
[HKEY_CLASSES_ROOT\CLSID\{42429690-ae04-11d0-a4f8-00aa00a749b9}\DefaultIcon]
  @="msim.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{42429690-ae04-11d0-a4f8-00aa00a749b9}\IsSIPInputMethod]
  @="1"
[HKEY_CLASSES_ROOT\CLSID\{42429690-ae04-11d0-a4f8-00aa00a749b9}\InprocServer32]
  @="msim.dll"

[HKEY_CLASSES_ROOT\CLSID\{42429667-ae04-11d0-a4f8-00aa00a749b9}]
  "ShiftLock"=dword:0  "KBMode"=dword:5  
@="Keyboard"
[HKEY_CLASSES_ROOT\CLSID\{42429667-ae04-11d0-a4f8-00aa00a749b9}\DefaultIcon]
  @="msim.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{42429667-ae04-11d0-a4f8-00aa00a749b9}\IsSIPInputMethod]
  @="1"
[HKEY_CLASSES_ROOT\CLSID\{42429667-ae04-11d0-a4f8-00aa00a749b9}\InprocServer32]
  @="msim.dll"
 
Tags: ,
分页: 1/85 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]