找回密码
 加入
搜索
查看: 1382|回复: 3

dll函数高手请进

[复制链接]
发表于 2008-12-4 13:43:54 | 显示全部楼层 |阅读模式
Set Star= CreateObject("Wscript.Shell")  
Star.Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation"

这是VBS,怎么改写成 autoit

还有,autoit怎么判断 桌面处于锁定状态?

[ 本帖最后由 xsw123 于 2008-12-4 19:46 编辑 ]
发表于 2008-12-4 15:06:09 | 显示全部楼层

dllcall("user32.dll","none","LockWorkStation")
发表于 2008-12-4 15:33:19 | 显示全部楼层
Local $Dll
$Dll = DllOpen(@WindowsDir & "\user32.dll")
DllCall($Dll, "none", "LockWorkStation")
DllClose($Dll)
 楼主| 发表于 2008-12-4 19:45:09 | 显示全部楼层
原帖由 skyfree 于 2008-12-4 15:33 发表
Local $Dll
$Dll = DllOpen(@WindowsDir & "\user32.dll")
DllCall($Dll, "none", "LockWorkStation")
DllClose($Dll)


内存错误
2楼的行
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-17 16:23 , Processed in 0.073687 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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