xsw123 发表于 2008-12-4 13:43:54

dll函数高手请进

Set Star= CreateObject("Wscript.Shell")
Star.Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation"

这是VBS,怎么改写成 autoit

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

[ 本帖最后由 xsw123 于 2008-12-4 19:46 编辑 ]

sanhen 发表于 2008-12-4 15:06:09


dllcall("user32.dll","none","LockWorkStation")

skyfree 发表于 2008-12-4 15:33:19

Local $Dll
$Dll = DllOpen(@WindowsDir & "\user32.dll")
DllCall($Dll, "none", "LockWorkStation")
DllClose($Dll)

xsw123 发表于 2008-12-4 19:45:09

原帖由 skyfree 于 2008-12-4 15:33 发表 http://www.autoitx.com/images/common/back.gif
Local $Dll
$Dll = DllOpen(@WindowsDir & "\user32.dll")
DllCall($Dll, "none", "LockWorkStation")
DllClose($Dll)

内存错误
2楼的行
页: [1]
查看完整版本: dll函数高手请进