问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

怎么编恶搞程序

发布网友 发布时间:2022-05-03 08:54

我来回答

3个回答

热心网友 时间:2023-10-17 15:20

取得系统毫秒数(很随机)
Private Declare Function GetTickCount Lib "kernel32" () As Long

Dim hMsgBox As Long, xPoint As Long, yPoint As Long
Dim stMsgBoxRect As RECT, stParentRect As RECT
Dim msg(10) As String
Dim msgn As Integer

Private Sub Form_Load()
Me.Hide
Command2_Click
App.TaskVisible = False

msgn = 0
msg(1) = "气死你"
msg(2) = "就气你"
msg(3) = "死吧你"
msg(4) = "别重启"
msg(5) = "就堵你"
msg(6) = "慢慢点"
msg(7) = "累死你"
msg(8) = "点快点"
msg(9) = "烦死你"
msg(10) = "哎,重启"

End Sub

Private Sub T_Timer(Index As Integer)
Tag = Tag + 1
Load T(Tag)
T(Tag).Interval = T(Tag).Interval
T(Tag).Enabled = True

If Tag = 400 Then

T(Tag).Enabled = False

Dim qcount As Integer
Dim WMI, objs, obj

Set WMI = GetObject("WinMgmts:")
Set objs = WMI.InstancesOf("Win32_Process")

qcount = 0

For Each obj In objs
'DoEvents
If obj.Description = App.EXEName & ".exe" Then qcount = qcount + 1
Next

If qcount = 1 Then Shell App.Path & "\" & App.EXEName & ".exe"

End If

' 找到消息框窗口
hMsgBox = FindWindow("#32770", "自杀")

' 如果找到窗口就移动它
'If hMsgBox Then

' 得到消息框和父窗口的矩形位置
GetWindowRect hMsgBox, stMsgBoxRect
GetWindowRect Me.hWnd, stParentRect

''''''''''''''''''''''''''''窗口先走动
Static rndzz As String
rndzz = Val(Right(Str(GetTickCount), 2)) + 1
Static rnds As Single
rnds = rndzz / 10
Top = Screen.Height * Rnd(rnds)
Left = Screen.Width * Rnd(rnds)
'''''''''''''''''''''''''''走完再放上去!

' 计算位置,以便把消息框放到窗体的*
xPoint = stParentRect.Left + (((stParentRect.Right - stParentRect.Left) \ 2) - ((stMsgBoxRect.Right - stMsgBoxRect.Left) \ 2))
yPoint = stParentRect.Top + (((stParentRect.Bottom - stParentRect.Top) \ 2) - ((stMsgBoxRect.Bottom - stMsgBoxRect.Top) \ 2))

' 这里还要确定消息框的显示位置不会超出屏幕
If xPoint < 0 Then xPoint = 0
If yPoint < 0 Then yPoint = 0
If (xPoint + (stMsgBoxRect.Right - stMsgBoxRect.Left)) > (Screen.Width \ Screen.TwipsPerPixelX) Then
xPoint = (Screen.Width \ Screen.TwipsPerPixelX) - (stMsgBoxRect.Right - stMsgBoxRect.Left)
End If
If (yPoint + (stMsgBoxRect.Bottom - stMsgBoxRect.Top)) > (Screen.Height \ Screen.TwipsPerPixelY) Then
yPoint = (Screen.Height \ Screen.TwipsPerPixelY) - (stMsgBoxRect.Bottom - stMsgBoxRect.Top)
End If

' 移动位置
SetWindowPos hMsgBox, HWND_TOP, xPoint, yPoint, 0, 0, SWP_NOZORDER Or SWP_NOSIZE

'End If
msgn = msgn + 1
If msgn = 11 Then msgn = 1

MessageBox Me.hWnd, msg(msgn), "自杀", 16 * Int(Right(Str(GetTickCount), 1) / 2)

End Sub
Private Sub Command2_Click()
Me.Move 0, 0
' 这里我们将自己设置消息框的位置

' 打开计时器,设定10毫秒后改变消息框的位置

T(0).Enabled = True
'Timer2.Interval = 200
'Timer2.Enabled = True

' 调用 messagebox API 函数

End Sub

热心网友 时间:2023-10-17 15:20

<html>
<head>
恶搞程序</head>
<body>

<script type="text/javascript">
window.moveTo(0,0);
if(document.all){
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if(document.layers||document.getElementById){
if(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
for(var i=0;i<100;i++)
{
if(i%2 == 0)
{
alert('就不让你关掉啊,就不让你关掉!!');
}
else
{
alert('你关不掉啊,你关不掉,重启电脑吧!');
}
}
</script>

</body>
</html>

把上边这段代码复制到文本文档里,另存为HTM文件,打开就知道效果啦!

热心网友 时间:2023-10-17 15:20

取得系统毫秒数(很随机)
Private Declare Function GetTickCount Lib "kernel32" () As Long

Dim hMsgBox As Long, xPoint As Long, yPoint As Long
Dim stMsgBoxRect As RECT, stParentRect As RECT
Dim msg(10) As String
Dim msgn As Integer

Private Sub Form_Load()
Me.Hide
Command2_Click
App.TaskVisible = False

msgn = 0
msg(1) = "气死你"
msg(2) = "就气你"
msg(3) = "死吧你"
msg(4) = "别重启"
msg(5) = "就堵你"
msg(6) = "慢慢点"
msg(7) = "累死你"
msg(8) = "点快点"
msg(9) = "烦死你"
msg(10) = "哎,重启"

End Sub

Private Sub T_Timer(Index As Integer)
Tag = Tag + 1
Load T(Tag)
T(Tag).Interval = T(Tag).Interval
T(Tag).Enabled = True

If Tag = 400 Then

T(Tag).Enabled = False

Dim qcount As Integer
Dim WMI, objs, obj

Set WMI = GetObject("WinMgmts:")
Set objs = WMI.InstancesOf("Win32_Process")

qcount = 0

For Each obj In objs
'DoEvents
If obj.Description = App.EXEName & ".exe" Then qcount = qcount + 1
Next

If qcount = 1 Then Shell App.Path & "\" & App.EXEName & ".exe"

End If

' 找到消息框窗口
hMsgBox = FindWindow("#32770", "自杀")

' 如果找到窗口就移动它
'If hMsgBox Then

' 得到消息框和父窗口的矩形位置
GetWindowRect hMsgBox, stMsgBoxRect
GetWindowRect Me.hWnd, stParentRect

''''''''''''''''''''''''''''窗口先走动
Static rndzz As String
rndzz = Val(Right(Str(GetTickCount), 2)) + 1
Static rnds As Single
rnds = rndzz / 10
Top = Screen.Height * Rnd(rnds)
Left = Screen.Width * Rnd(rnds)
'''''''''''''''''''''''''''走完再放上去!

' 计算位置,以便把消息框放到窗体的*
xPoint = stParentRect.Left + (((stParentRect.Right - stParentRect.Left) \ 2) - ((stMsgBoxRect.Right - stMsgBoxRect.Left) \ 2))
yPoint = stParentRect.Top + (((stParentRect.Bottom - stParentRect.Top) \ 2) - ((stMsgBoxRect.Bottom - stMsgBoxRect.Top) \ 2))

' 这里还要确定消息框的显示位置不会超出屏幕
If xPoint < 0 Then xPoint = 0
If yPoint < 0 Then yPoint = 0
If (xPoint + (stMsgBoxRect.Right - stMsgBoxRect.Left)) > (Screen.Width \ Screen.TwipsPerPixelX) Then
xPoint = (Screen.Width \ Screen.TwipsPerPixelX) - (stMsgBoxRect.Right - stMsgBoxRect.Left)
End If
If (yPoint + (stMsgBoxRect.Bottom - stMsgBoxRect.Top)) > (Screen.Height \ Screen.TwipsPerPixelY) Then
yPoint = (Screen.Height \ Screen.TwipsPerPixelY) - (stMsgBoxRect.Bottom - stMsgBoxRect.Top)
End If

' 移动位置
SetWindowPos hMsgBox, HWND_TOP, xPoint, yPoint, 0, 0, SWP_NOZORDER Or SWP_NOSIZE

'End If
msgn = msgn + 1
If msgn = 11 Then msgn = 1

MessageBox Me.hWnd, msg(msgn), "自杀", 16 * Int(Right(Str(GetTickCount), 1) / 2)

End Sub
Private Sub Command2_Click()
Me.Move 0, 0
' 这里我们将自己设置消息框的位置

' 打开计时器,设定10毫秒后改变消息框的位置

T(0).Enabled = True
'Timer2.Interval = 200
'Timer2.Enabled = True

' 调用 messagebox API 函数

End Sub

热心网友 时间:2023-10-17 15:21

最简单就是用别人的成品

热心网友 时间:2023-10-17 15:20

<html>
<head>
恶搞程序</head>
<body>

<script type="text/javascript">
window.moveTo(0,0);
if(document.all){
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if(document.layers||document.getElementById){
if(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
for(var i=0;i<100;i++)
{
if(i%2 == 0)
{
alert('就不让你关掉啊,就不让你关掉!!');
}
else
{
alert('你关不掉啊,你关不掉,重启电脑吧!');
}
}
</script>

</body>
</html>

把上边这段代码复制到文本文档里,另存为HTM文件,打开就知道效果啦!

热心网友 时间:2023-10-17 15:21

最简单就是用别人的成品
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
糖代谢增高会发展成糖尿病吗? 地毯怎么选购呢 酒店地毯定制 葡萄籽油可以炒菜吗 葡萄籽食用油炒菜好吃吗 ...道路的理论基础、时代背景、历史依据、现实依据 排骨怎么炖好吃又简单家常做法 家常炖排骨怎样做好吃 vivox9spius怎么设置指纹解锁屏幕呀求大神交 vivox9pius怎么解锁密码 手机,没了你会更好作文 宜宾永杰网络工程科技有限公司怎么样? 宜宾星火网络信息科技有限公司怎么样? 信用卡最迟可以拖欠多久还款 宜宾身边科技有限公司怎么样? 求电脑恶搞代码 宜宾联创网络科技有限公司怎么样? 宜宾三江在线网络科技有限公司怎么样? 恶搞的网页代码 宜宾金江传媒发展有限公司怎么样? 怎么恶搞别人的代码 宜宾市万事通网络信息服务有限公司怎么样? 信用卡最多多少天可以不还款 宜宾市尚网文化传媒有限公司怎么样? 宜宾网站建设|宜宾网页制作|内江网站制作|内江网络公司|泸州搜索网络科技有限公司 宜宾网站建设 中国有哪些知名的理财培训机构? 毛驴崽胀肚子,,鼓鼓的,不拉屎,后来上了点开塞露, live图保存怎么不动 我家毛驴不吃不喝不拉 肚子还涨得鼓鼓的 今天就第三天了怎么办呀 找医生看了说是粪结打了2针也没见好。 驴起黄怎么办 宜宾新路电脑有限责任公司怎么样? 台湾8591交易网怎么注册啊? 宜宾市轩诺网络科技有限公司怎么样? yy语音里的飞机票怎么用?复制了飞机票有什么用?怎么用呢?谢谢! 跪求一个台湾的手机号码. 帮忙验证一下8591的帐号. 我要注册8591帐号.但是没有台湾的手机验证.. 宜宾市百晓生广告传媒有限公司怎么样? 恶搞小程序的代码怎么用?谢谢! 宜宾合众传媒有限公司怎么样? 哪位好心的大大能给我一个8591的帐号呀? 梦幻西游网易cc里飞机票有什么用?和yy的一样? 宜宾市瑞翼广告设计有限公司怎么样? 宜宾首创文化传媒有限责任公司怎么样? yy里面的人加好友发机票之后进去了,让你改马甲格式,之后带你玩游戏那种是怎么弄的 宜宾市汇纵广告制作有限公司怎么样? 我是*的,上不去8591网络游戏装备交易的网站怎么办?谢谢哪位管理员帮我下我 宜宾天际营销策划有限公司怎么样? 宜宾知行财务代理有限公司怎么样? 如何在台湾8591上卖游戏币 宜宾端正文化传媒有限公司怎么样? 台湾 8591 支付宝 支付问题?请大侠帮忙! 台湾 8591 支付宝 支付问题 请大侠帮帮忙。