1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
IfWinNotExist, COM5 - PuTTY
{
Run "C:\PuTTY\putty.exe" -load MKS
sleep,3000
}
; Format Time Stamp
FormatTime, TimeString,,yyyy-MM-dd HH-mm-ss
ControlSend, , %TimeString%, COM5 - PuTTY
FormatTime, TimeString,,HH-mm-ss
loop, 100
{
; Record Oasis Values
ControlSend, , {enter}, COM5 - PuTTY
ControlSend, , @253PR3?;FF, COM5 - PuTTY
ControlSend, , {enter}, COM5 - PuTTY
sleep,1000
ControlSend, , /, COM5 - PuTTY
ControlSend, , %TimeString%, COM5 - PuTTY
sleep,1000
} |
Partager