现在的位置: 首页 > 综合 > 正文

QQ游戏自动登录器,源代码(仅供参考)

2013年12月01日 ⁄ 综合 ⁄ 共 7219字 ⁄ 字号 评论关闭

新的游戏大厅已经Fix了这个BUG

现将代码公布,抛转引玉!

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices;
using System.Threading;//Thread;
using System.Management;
//using CustomUIControls;
//using System.Net;
using System.IO;
//using System.Xml;
//using Sloppycode.net;


namespace QQ自动登录器
{
    
/// <summary>
    
/// Form1 的摘要说明。
    
/// </summary>

    public class Form1 : System.Windows.Forms.Form
    
{

        [DllImport(
"user32.dll")]
        
static extern bool SetCursorPos(int X, int Y); 
        
//模拟鼠标
        private readonly int MOUSEEVENTF_LEFTDOWN = 0x2;
        
private System.Windows.Forms.TextBox textBox1;
        
private System.Windows.Forms.Label label1;
        
private System.Windows.Forms.TextBox textBox2;
        
private System.Windows.Forms.Label label2;
        
private System.Windows.Forms.ListBox listBox1;
        
private System.Windows.Forms.Button button1;
        
private System.Windows.Forms.TextBox textBox3;
        
private System.Windows.Forms.Button button2;
        
private System.Windows.Forms.Label label3;
        
int NUM=9999;
        
int N=0;
        
string MP1="",MP2="";
        
public string Url="";
        
private System.Windows.Forms.Label label4;
        
private System.Windows.Forms.Timer waittimer;
        
private System.Windows.Forms.Button button3;
        
private readonly int MOUSEEVENTF_LEFTUP = 0x4;
        [DllImport(
"user32")]
        
public static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo);
        
//--------
        [DllImport("user32.dll")]
        
static extern void keybd_event(
            
byte bVk, 
            
byte bScan, 
            
uint dwFlags, 
            
uint dwExtraInfo
            );


        
private System.Windows.Forms.Button autologinbutton;
        
private System.ComponentModel.IContainer components;

        
public Form1()
        
{
            
//
            
// Windows 窗体设计器支持所必需的
            
//
            InitializeComponent();

            
//
            
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            
//
        }


        
/// <summary>
        
/// 清理所有正在使用的资源。
        
/// </summary>

        protected override void Dispose( bool disposing )
        
{
            
if( disposing )
            
{
                
if (components != null
                
{
                    components.Dispose();
                }

            }

            
base.Dispose( disposing );
        }


        
Windows 窗体设计器生成的代码

抱歉!评论已关闭.