Code: Select all
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
run C:\Putty\putty.exe -telnet 10.48.128.112
Sleep, 5000
Send sybase{Return}
Sleep, 2000
Send ahjgn13#{Return}
Sleep, 2000
Send isql -Usa -w300 -Dims -P`cat /etc/.sapassword`{Return}
Sleep 2000
Send select data_ckey into #b from examination where data_item='[b]CLIPBOARD[/b]'{Return}
Send go{Return}
Sleep, 1000
Send delete from data_item where data_ckey in(select data_ckey from #b){Return}
Send go{Return}
Sleep, 1000
Send exit{Return}
Send exit{Return}