开源:某些人的屏幕扭曲软件达成~
asdw_159512012/07/31软件综合 IP:福建
所谓屏幕扭曲只是使得屏幕的某一个点的X、Y位移而已,这就是原理~
原帖请见; 谁能破解这个用VB编的程序!!?-科创论坛
效果如图:
QQ浏览器截屏未命名(3).jpg

VBP就不上了,直接上Form
attachment icon 帅气的屏幕扭曲-整人.rar 1.27KB RAR 15次下载
咳咳,不多说上代码~首先建立一个Timer1,Interval=1-10(任写一个值)
然后复制代码:
'the program basically uses a temporary buffer to randomly copy a portion of'screen(32x32'in this case) an then paste it back shifting it slightly from'the original position in the processOption ExplicitPrivate Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As LongPrivate Declare Function GetDesktopWindow Lib "user32" () As LongPrivate Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As LongPrivate Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As LongPrivate Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As LongPrivate Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As LongPrivate Const SRCCOPY = &HCC0020 ' (DWORD) dest = source
Dim x As Integer, y As IntegerDim Buffer As Long, hBitmap As Long, Desktop As Long, hScreen As Long, ScreenBuffer As Long
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)If KeyCode = vbKeyEscape ThenUnload MeEnd IfEnd Sub
Private Sub Form_Load()'To get the device context for the desktop(whole screen)Desktop = GetWindowDC(GetDesktopWindow())
'to create a device context compatible with a known device context'and assign it to a long variablehBitmap = CreateCompatibleDC(Desktop)hScreen = CreateCompatibleDC(Desktop)
'to create bitmaps in memory for temporary storage compatible with a known bitmapBuffer = CreateCompatibleBitmap(Desktop, 32, 32)ScreenBuffer = CreateCompatibleBitmap(Desktop, Screen.Width / 15, Screen.Height / 15)
'assign device contexts to the bitmapsSelectObject hBitmap, BufferSelectObject hScreen, ScreenBuffer
'save the screen for later restorationBitBlt hScreen, 0, 0, Screen.Width / 15, Screen.Height / 15, Desktop, 0, 0, SRCCOPYEnd Sub

Private Sub Form_Unload(Cancel As Integer)'restores the desktop to the saved picture when program ends'try to comment out following line and seeBitBlt Desktop, 0, 0, Screen.Width / 15, Screen.Height / 15, hScreen, 0, 0, SRCCOPY
End Sub
Private Sub tmr1_Timer()y = (Screen.Height / 15) * Rndx = (Screen.Width / 15) * Rnd
'copy 32x32 portion of screen into buffer at x,yBitBlt hBitmap, 0, 0, 32, 32, Desktop, x, y, SRCCOPY
'paste back slightly shifting the values for x and yBitBlt Desktop, x + (3 - 6 * Rnd), y + (2 - 4 * Rnd), 32, 32, hBitmap, 0, 0, SRCCOPY
End Sub
Private Sub Timer1_Timer()y = (Screen.Height / 15) * Rndx = (Screen.Width / 15) * Rnd
'copy 32x32 portion of screen into buffer at x,yBitBlt hBitmap, 0, 0, 32, 32, Desktop, x, y, SRCCOPY
'paste back slightly shifting the values for x and yBitBlt Desktop, x + (3 - 6 * Rnd), y + (2 - 4 * Rnd), 32, 32, hBitmap, 0, 0, SRCCOPYEnd Sub
来自:计算机科学 / 软件综合
3
已屏蔽 原因:{{ notice.reason }}已屏蔽
{{notice.noticeContent}}
~~空空如也
phpskycn
11年10个月前 IP:未同步
430601
回 楼主(asdw_15951) 的帖子
未安装VB。。。求编译好的版本
引用
评论
加载评论中,请稍候...
200字以内,仅用于支线交流,主线讨论请采用回复功能。
折叠评论
asdw_15951作者
11年10个月前 IP:未同步
430608
回 1楼(phpskycn) 的帖子
上软件:
attachment icon 屏幕扭曲.rar 3.96KB RAR 10次下载
不要吝啬KCB啦~
引用
评论
加载评论中,请稍候...
200字以内,仅用于支线交流,主线讨论请采用回复功能。
折叠评论

想参与大家的讨论?现在就 登录 或者 注册

所属专业
上级专业
同级专业
asdw_15951
机友 笔友
文章
55
回复
292
学术分
0
2012/01/17注册,1年6个月前活动
暂无简介
主体类型:个人
所属领域:无
认证方式:手机号
IP归属地:未同步
文件下载
加载中...
{{errorInfo}}
{{downloadWarning}}
你在 {{downloadTime}} 下载过当前文件。
文件名称:{{resource.defaultFile.name}}
下载次数:{{resource.hits}}
上传用户:{{uploader.username}}
所需积分:{{costScores}},{{holdScores}}下载当前附件免费{{description}}
积分不足,去充值
文件已丢失

当前账号的附件下载数量限制如下:
时段 个数
{{f.startingTime}}点 - {{f.endTime}}点 {{f.fileCount}}
视频暂不能访问,请登录试试
仅供内部学术交流或培训使用,请先保存到本地。本内容不代表科创观点,未经原作者同意,请勿转载。
音频暂不能访问,请登录试试
支持的图片格式:jpg, jpeg, png
插入公式
评论控制
加载中...
文号:{{pid}}
投诉或举报
加载中...
{{tip}}
请选择违规类型:
{{reason.type}}

空空如也

加载中...
详情
详情
推送到专栏从专栏移除
设为匿名取消匿名
查看作者
回复
只看作者
加入收藏取消收藏
收藏
取消收藏
折叠回复
置顶取消置顶
评学术分
鼓励
设为精选取消精选
管理提醒
编辑
通过审核
评论控制
退修或删除
历史版本
违规记录
投诉或举报
加入黑名单移除黑名单
查看IP
{{format('YYYY/MM/DD HH:mm:ss', toc)}}