Double-mapped network drive nut and cloud open source AHK

 

Double-mapped network drive nut and cloud open source AHK

 

# SingleInstance, force; When this script has been run automatically replace the old instance running again.
#Persistent; let the script run lasting (that is, until the user closes or experiencing ExitApp).
#NoEnv; does not check whether a variable is empty environment variables (recommended for all new scripts).
; ~ #NoTrayIcon; tray icon does not display.

InputBox, UserInput, Please the Enter your Password.,., Hide, 600,100
IF ErrorLevel
{
ExitApp
}
the else
{
IfEqual, UserInput, ""
{
MsgBox, wrong password, please re-enter your password!
ExitApp
}
ifnotequal, UserInput, 322
{
MsgBox, wrong password Please re-enter your password!
ExitApp
}
}
RunWait, "C: \ Program Files \ NetDrive2 \ nd2cmd.exe" DAV -u http://dav.jianguoyun.com/dav the -cm -t -a -p [email protected] 322 -dz -l office plate
the Run, the Z-: \
SetTimer, UnMountDriverTimer, 3000
return

UnMountDriverTimer:
; === system idle time checking user input (keyboard, mouse no action time), and determines whether to eject nut and lock the desktop cloud network disk ====
; user input system idle time (operation time without mouse and keyboard) greater than 1 minute the pop nuts cloud network disk and lock the desktop
IfGreater, A_TimeIdle, 60000
{
the Run, "C: \ Program Files \ NetDrive2 \ nd2cmd.exe" -cu -t DAV
at Sleep, 500
the Run, "C: \ Program Files \ NetDrive2 \ nd2cmd .exe "-Cu DZ
Sleep, 500
the Run the Rundll32.exe User32.dll the LockWorkStation
Sleep, 500
the Run the Rundll32.exe User32.dll the LockWorkStation
Sleep, 500
the SetTimer, UnMountDriverTimer, the Delete
Sleep, 500
ExitApp
}
return

 

 

Double-mapped network drive nut and cloud open source AHK

Guess you like

Origin www.cnblogs.com/delphixx/p/10962887.html