WIN锁屏+鼠标移动事件
2024-10-19 02:27:03
winexec('rundll32.exe user32.dll, LockWorkStation', sw_hide);
1.shutdown.bat(关机)
rundll32.Exe shell32.dll SHExitWindowsEx 1
2.logoff.bat(注销)
rundll32.Exe shell32.dll SHExitWindowsEx 0
3.reboot.bat(重启)
rundll32.Exe shell32.dll SHExitWindowsEx 2
4.lock.bat(锁定桌面)
rundll32.Exe user32.dll LockWorkStation
procedure TForm1.WndProc(var nMsg: TMessage);
var s:string;
procedure setShow(AShow: Integer);
begin
case AShow of
: Memo1.Lines.Add('无');
: Memo1.Lines.Add('右');
: Memo1.Lines.Add('左');
: Memo1.Lines.Add('下');
: Memo1.Lines.Add('上');
end;
end;
begin
inherited;
if (nMsg.Msg = WM_MOUSEMOVE) then
begin
if (nX < nMsg.LParamLo) then
setShow()
else if (nX > nMsg.LParamLo) then
setShow()
else if (nY < nMsg.LParamHi) then
setShow()
else if (nY > nMsg.LParamHi) then
setShow()
else
setShow();
nX := nMsg.LParamLo;
nY := nMsg.LParamHi;
Label1.Caption := '...';
end;
end;
最新文章
- Python多线程爬虫爬取电影天堂资源
- REDHAT一总复习1 NTP更改时区,并验证时区设置是否正确
- JavaScript随笔1
- [日常训练]article
- mouse scrollings and zooming operations in linux &; windows are opposite
- Linux下配置SVN
- Mysql-简单安装
- [芯片][MPU6050] MPU60X0的DMP相关链接
- BZOJ 2820 YY的GCD(莫比乌斯函数)
- Microsoft office word关闭英文输入首字母大写设置
- The end of other
- 《think in python》学习-1
- ZF-关于海南的增删改需求
- python静态属性的理解
- dubbo集群容错解决方案
- 树和二叉树->;存储结构
- div 光标处插入内容
- laravel记录笔记Laravel 连接数据库、操作数据库的三种方式
- 给本地服务器配置py文件的下载功能
- linux达人养成计划学习笔记(二)—— 文件查找命令