• 大小: 1.24MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-04-02
  • 语言: C#
  • 标签: seo源码  

资源简介

浏览器外部操作。模拟人工自动点击 非找图

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace WebClick_Tool
{
    class IESetting
    {

        public enum ShowCommands : int
        {
            SW_HIDE = 0
            SW_SHOWNORMAL = 1
            SW_NORMAL = 1
            SW_SHOWMINIMIZED = 2
            SW_SHOWMAXIMIZED = 3
            SW_MAXIMIZE = 3
            SW_SHOWNOACTIVATE = 4
            SW_SHOW = 5
            SW_MINIMIZE = 6
            SW_SHOWMINNOACTIVE = 7
            SW_SHOWNA = 8
            SW_RESTORE = 9
            SW_SHOWDEFAULT = 10
            SW_FORCEMINIMIZE = 11
            SW_MAX = 11
        }

        [DllImport(“shell32.dll“)]
        static extern IntPtr ShellExecute(IntPtr hwnd string lpOperation string lpFile string lpParameters string lpDirectory ShowCommands nShowCmd);
        
 
        static void RunCmd(string cmd)
        {
            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo.FileName = “cmd.exe“;
            // 关闭Shell的使用
            p.StartInfo.UseShellExecute = false;
            // 重定向标准输入
            p.StartInfo.RedirectStandardInput = true;
            // 重定向标准输出
            p.StartInfo.RedirectStandardOutput = true;
            //重定向错误输出
            p.StartInfo.RedirectStandardError = true;
            p.StartInfo.CreateNoWindow = true;
            p.Start();
            p.StandardInput.WriteLine(cmd);
            p.StandardInput.WriteLine(“exit“);

            p.WaitForExit();
        }
        /// 
        /// 清除cookie
        /// 

        /// 
        public static bool CleanCookie()
        {
            try
            {
                ShellExecute(IntPtr.Zero “open“ “rundll32.exe“ “ InetCpl.cplClearMyTracksByProcess 255“ ““ ShowCommands.SW_HIDE);
                //RunCmd(“RunDll32.exe InetCpl.cplClearMyTracksByProcess 255“);
                //RunDll32.exe InetCpl.cplClearMyTracksByProcess 2
                //RunDll32.exe InetCpl.cplClearMyTracksByProcess 1
                return true;
            }
            catch { return false; }
        }

    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    2238444  2012-12-24 12:41  WebClick_Tool\WebClick_Tool\bin\Debug\BrowserEnvironment.txt

     文件        195  2012-12-21 10:02  WebClick_Tool\WebClick_Tool\bin\Debug\Config - 副本.txt

     文件        252  2012-12-24 17:02  WebClick_Tool\WebClick_Tool\bin\Debug\Config.txt

     文件     139264  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\bin\Debug\Interop.SHDocVw.dll

     文件    8013664  2010-03-19 03:11  WebClick_Tool\WebClick_Tool\bin\Debug\Microsoft.mshtml.dll

     文件     303104  2009-07-13 15:48  WebClick_Tool\WebClick_Tool\bin\Debug\MySql.Data.dll

     文件     946448  1999-06-02 13:19  WebClick_Tool\WebClick_Tool\bin\Debug\SHDOCVW.DLL

     文件      37888  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\bin\Debug\WebClick_Tool.exe

     文件      65024  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\bin\Debug\WebClick_Tool.pdb

     文件      21464  2013-03-23 15:49  WebClick_Tool\WebClick_Tool\bin\Debug\WebClick_Tool.vshost.exe

     文件        490  2012-06-06 02:06  WebClick_Tool\WebClick_Tool\bin\Debug\WebClick_Tool.vshost.exe.manifest

     文件         46  2012-12-20 17:21  WebClick_Tool\WebClick_Tool\bin\Debug\待点击关键词.txt

     文件       2338  2012-12-25 17:19  WebClick_Tool\WebClick_Tool\IESetting.cs

     文件      11202  2012-12-25 16:53  WebClick_Tool\WebClick_Tool\IETool.cs

     文件       3669  2012-12-26 12:12  WebClick_Tool\WebClick_Tool\KeyPress.cs

     文件      11057  2013-03-23 15:49  WebClick_Tool\WebClick_Tool\MainForm.cs

     文件       3840  2013-03-23 15:49  WebClick_Tool\WebClick_Tool\MainForm.Designer.cs

     文件       6011  2013-03-23 15:49  WebClick_Tool\WebClick_Tool\MainForm.resx

     文件       5643  2012-12-25 14:57  WebClick_Tool\WebClick_Tool\Mysql.cs

     文件       1229  2013-03-23 15:49  WebClick_Tool\WebClick_Tool\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6267  2013-03-23 15:49  WebClick_Tool\WebClick_Tool\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件     139264  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\Interop.SHDocVw.dll

     文件       2105  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.csproj.FileListAbsolute.txt

     文件        850  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.csproj.GenerateResource.Cache

     文件        689  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.csproj.ResolveComReference.cache

     文件      18055  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.csprojResolveAssemblyReference.cache

     文件      37888  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.exe

     文件        180  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.MainForm.resources

     文件      65024  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.pdb

     文件        180  2013-03-23 15:50  WebClick_Tool\WebClick_Tool\obj\Debug\WebClick_Tool.Properties.Resources.resources

............此处省略23个文件信息

评论

共有 条评论

相关资源