资源描述:
《qq记牌器2014.5.12》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;usingSystem.Net;usingSystem.Net.Sockets;usingSystem.Threading;namespace双?扣?记
2、?牌?器¡Â网ª?络?版ã?{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}[DllImport("kernel32.dll")]staticexternboolReadProcessMemory(inthProcess,intlpBaseAddress,outintlpBuffer,intnSize,outintlpNumberOfBytesRead);//进?程¨¬句?柄À¨²读¨¢出?数ºy据Y的Ì?地Ì?址¡¤存ä?放¤?读¨¢取¨?数ºy据Y的Ì?地Ì?址¡¤
3、读¨¢出?的Ì?数ºy据Y大䨮小?数ºy据Y的Ì?实º¦Ì际¨º大䨮小?[DllImport("kernel32.dll")]publicstaticexternintOpenProcess(intdwDesiredAccess,boolbInheritHandle,intdwProcessId);//访¤?问¨º权¨¡§限T继¨¬承D标À¨º志?进?程¨¬ID。¡ê[DllImport("user32.dll",EntryPoint="FindWindow")]privateexternstaticIntPtrFindWindow(string
4、lpClassName,stringlpWindowName);//[DllImport("User32.dll",CharSet=CharSet.Auto)]publicstaticexternintGetWindowThreadProcessId(IntPtrhwnd,outintID);intPlay_Card_ID;intPlay_Card_Process;intPlay_Card_readByte;string[]output=newstring[]{"","A","2","3","4","5","6","7","8","9","0","J",
5、"Q","K","w","W"};intRemain_Card_Num_Adress_E=0x46b130;//东?地Ì?址¡¤intRemain_Card_Num_Adress_S=0x46b6dc;//南?intRemain_Card_Num_Adress_W=0x46bc88;//西¡ÂintRemain_Card_Num_Adress_N=0x46c234;//北À¡Àint[]E_data=newint[55];//内¨²存ä?数ºy据Yint[]S_data=newint[55];int[]W_data=newint[55];int[]N_d
6、ata=newint[55];intE_Former_NUM=27;intS_Former_NUM=27;intW_Former_NUM=27;intN_Former_NUM=27;//初?始º?牌?数ºyintupdataNUM_E;intupdataNUM_S;intupdataNUM_W;intupdataNUM_N;intmysite;int[]remain=newint[15]{8,8,8,8,8,8,8,8,8,8,8,8,8,2,2};boolinterrupt;//////voidqingling()
7、{label9.Text="";label10.Text="";label11.Text="";label12.Text="";label13.Text="";label14.Text="";label15.Text="";label16.Text="";label17.Text="";label18.Text="";label19.Text="";label20.Text="";label21.Text="";label22.Text="";label23.Text="";for(inti=0;i8、utput[0+1]+label9.Text;for(inti=0;i