免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開(kāi)通VIP
用AutoHotkey寫電腦屏幕監(jiān)控軟件
#Persistent

#include ../../
#include ./inc/inifile.aik
#include ./inc/capture.aik
#include ./inc/ftp.aik
g_inifile = 屏幕監(jiān)控.ini ;; 配置文件
ifnotexist %g_inifile%
{
write_ini(g_inifile, "setting", "CaptureTime", "5000") ; 截屏間隔時(shí)間
write_ini(g_inifile, "setting", "FTPTime", "60000") ; 上傳間隔時(shí)間
write_ini(g_inifile, "setting", "PicDir", a_scriptdir) ; 臨時(shí)存放截屏圖像的目錄
write_ini(g_inifile, "setting", "DelAfterFTP", "0") ; 指定將上傳之后的圖像刪除(或移動(dòng)到其他目錄)
write_ini(g_inifile, "FTP", "server", "") ; FTP服務(wù)器
write_ini(g_inifile, "FTP", "port", "21") ; 端口
write_ini(g_inifile, "FTP", "name", "") ; 用戶名 ( 如果用戶名和密碼為空, 將會(huì)彈出登錄窗口 )
write_ini(g_inifile, "FTP", "password", "") ; 密碼
write_ini(g_inifile, "FTP", "remotePath", "") ; 遠(yuǎn)程目錄
msgbox 請(qǐng)先設(shè)置配置文件,再運(yùn)行本程序!
run %g_inifile%
exitapp
}
; 創(chuàng)建保存截圖的文件夾
IfNotExist, PrintScreen
{
FileCreateDir, PrintScreen
}
; 創(chuàng)建FTP目標(biāo)
IfNotExist, FTP
{
FileCreateDir, FTP
}
; 按日期命名的FTP的子目錄, 將FTPd的日志和上傳完畢的圖片移動(dòng)到此目錄
g_ftpLog = FTP/%a_yyyy%-%a_mm%-%a_dd%
IfNotExist, %g_ftpLog%
{
FileCreateDir, %g_ftpLog%
}
; 從配置文件中讀取配置
g_captureTime := read_ini(g_inifile, "setting", "CaptureTime", "5000")
g_ftpTime := read_ini(g_inifile, "setting", "FTPTime", "60000")
g_bDelAfterFTP := read_ini(g_inifile, "setting", "DelAfterFTP", "0")
g_Server := read_ini(g_inifile, "FTP", "server", "")
g_Port := read_ini(g_inifile, "FTP", "port", "21")
g_remotePath := read_ini(g_inifile, "FTP", "remotePath", "")
uName := read_ini(g_inifile, "FTP", "name", "")
pWord := read_ini(g_inifile, "FTP", "password", "")
;; 如果密碼或賬號(hào)有一項(xiàng)為空,那么彈出對(duì)話框要求輸入賬號(hào)和密碼
;  這里會(huì)彈出兩次輸入框, 在實(shí)際項(xiàng)目中, 最好寫個(gè)登陸框, 給用戶更好的體驗(yàn)
if ( uName == "" || pWord == "" )
{
InputBox, uName, Please input your username, Please input your username
if(ErrorLevel) ; 用戶點(diǎn)擊取消則退出
{
   ExitApp
}
InputBox, pWord, Please input your password, Please input your password, HIDE
if(ErrorLevel) ; 用戶點(diǎn)擊取消則退出程序
{
   ExitApp
}
}
; 其實(shí)還需要檢查一下其他配置是否正確, 這個(gè)只是演示程序, 故而假設(shè)其他配置都正確.
; 設(shè)置定時(shí)器
SetTimer 【定時(shí)截屏】, %g_captureTime%
SetTimer 【定時(shí)上傳FTP】, %g_ftpTime%
; 定時(shí)截屏的定時(shí)器, 每隔一段時(shí)間(鼠標(biāo)/鍵盤空閑時(shí)), 截屏一次, 保存到PrintScreen目錄
【定時(shí)截屏】:
if ( A_TimeIdlePhysical > g_captureTime )
{
capfile = PrintScreen/%a_yyyy%%a_mm%%a_dd%%A_Hour%%A_Min%%A_Sec%.jpg
CaptureScreen(0, False, capfile, 100) ; 截圖函數(shù)
}
return
; 定時(shí)將截屏的圖像上傳到FTP服務(wù)器
【定時(shí)上傳FTP】:
if ( A_TimeIdlePhysical > g_ftpTime )
{
FileList =
Loop, PrintScreen/*.jpg
    FileList = %FileList%%A_LoopFileName%`n
Sort, FileList  ; Sort by date.
Loop, parse, FileList, `n
{
    if A_LoopField =  ; 無(wú)效的文件名則跳過(guò)
        continue
        
    ; 上傳一張圖像
    file_to_upload = PrintScreen/%A_LoopField%
hConnect:=FTP_Open( g_Server, g_Port, Username, Password )
FTP_PutFile( hConnect, file_to_upload, g_remotePath )
FTP_CloseSocket( hConnect )
FTP_Close( )
; 刪除或移動(dòng)已經(jīng)上傳的圖像文件
if g_bDelAfterFTP = 1
    FileDelete %file_to_upload%
    else 
    FileMove, %file_to_upload%, %g_ftpLog%/%A_LoopField% , 1
}
}
return

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
用C#一步步寫串口通信
安卓讀寫INI文件
AIX系統(tǒng)日志
超簡(jiǎn)單的電腦截屏方法
【新提醒】連續(xù)截圖腳本,絕對(duì)比PrintScreen好用,源碼奉上
用ASP讀INI配置文件的函數(shù)
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服