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

[系统综合] win7无法执行开机运行代码

[复制链接]
发表于 2011-3-4 20:46:15 | 显示全部楼层 |阅读模式
#include <IE.au3>
#include <Date.au3>

$chack=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","daka")
If $chack="" Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","daka","REG_SZ",@ScriptDir&"daka.exe")
EndIf

If @HOUR>18          Then
xiaban()
Else
shangban()
EndIf

Func xiaban()
$oIE = _IECreate ("http://192.168.1.132:101/")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
_IEFormElementSetValue ($oQuery, "lixiang")
$oQuery = _IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($oQuery, "111111li")
Send("{ENTER}")
$oIE = _IECreate ("http://192.168.1.132:101/general/attendance/personal/duty/submit.php?REGISTER_TYPE=2")

EndFunc

Func shangban()
$oIE = _IECreate ("http://192.168.1.132:101/")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
_IEFormElementSetValue ($oQuery, "lixiang")
$oQuery = _IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($oQuery, "111111li")
Send("{ENTER}")
$oIE = _IECreate ("http://192.168.1.132:101/general/attendance/personal/duty/submit.php?REGISTER_TYPE=1")
EndFunc
 楼主| 发表于 2011-3-4 20:46:35 | 显示全部楼层
注册表中始终插入不进去
 楼主| 发表于 2011-3-4 20:46:37 | 显示全部楼层
注册表中始终插入不进去
发表于 2011-3-5 16:59:28 | 显示全部楼层
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","daka","REG_SZ",@ScriptDir&"\daka.exe")
或者:
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","daka","REG_SZ",@AutoItExe)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-15 13:56 , Processed in 0.086515 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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