吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 3718|回复: 3
收起左侧

[其他转载] 很久没编程了,发发感慨,顺便发点东西,嘿嘿。

 关闭 [复制链接]
pjcs 发表于 2010-8-9 23:03
Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function CreateDCA& Lib "gdi32" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, lpInitData As Long)





Private Sub form_load()
Dim a As String
a = CreateDCA("DISPLAY", vbNullString, vbNullString, 0)
Do While GetPixel(a, 24, 54) <> 421400000#
SendKeys "F"
Loop
End Sub

Private Sub form_KeyPress(KeyAscii As Integer)

If KeyAscii = 122 Then unload me

End Sub
用VB写的一段判断颜色的代码,用于外挂编程,很有用。以前编写的外挂到现在都能用,从来没被封过。

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

qq20048888 发表于 2010-8-9 23:08
看不懂..哎..!!
nnw 发表于 2010-8-9 23:37
qq20036 发表于 2010-8-9 23:54
看不懂,E语言会一点。这个我就能看天书![s:235]
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-17 02:44

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表