[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null Modem to IIgs -- PC Term Prog alternatives?



Hey phil,
I see Jeff Blakeney solved your wild card use of Hyperterm.
Jeff also pointed the problems you might have keeping track of failed
transfers.
My sessions with Hyperterm and ProTerm getting along fine are few.

If you have the autoit script engine (free)
http://www.hiddensoft.com/AutoIt/
You use notepad to create the scripts but this editor will make life much
easier for learning.
http://www.lkei.com/index.asp?downloads/index.asp&page=downloadsfreeware.asp
&num=2
Look for scriptwriter 2.61. download the free version.


I set up ProTerm in unattended mode with the password box empty.
Hit the answer button and launch my script on the windows box.

On the desktop is a folder named batch. I put >>>///  COPIES  \\\<<<
of the programs to send. These get deleted as they are sucessfully sent.
While it would be possible to restore them from the recycle bin, stick with
copies.
It also generates a log file of sent files.

unless there is some delay that causes ProTerm to hangup and return to the
answer mode
this will plug away until all files are sent. If there is a hangup
just restart both to complete the job.


Script :
-----------------------------------------------------------

Run, C:\\Program Files\\Accessories\\Hyper Terminal\\Hypertrm.exe,
c:\\windows\\desktop\\batch, Max
;-----> no new connection
WinWait, Connection
LeftClick, 279, 259

;---->Open the null modem profile
Send, !f+o
Send, c:\\program files\\accessories\\hyper terminal\\apple.ht{ENTER}

;---->create a log of sent files
FileAppend, Start of session\r\n, C:\\WINDOWS\\DESKTOP\\Batch_Log.txt
Run, notepad, C:\\WINDOWS\\DESKTOP
Sleep,500
Send, !fo
Send,c:\\windows\\desktop\\Batch_Log.txt!o
Sleep, 100
Send, {DOWN}
WinMinimize, Batch

;------> loop section for sending files
Nextfile:
;---->1 second delay so ProTerm doesn't choke
SetKeyDelay, 1000
;---->(L) for log a path
Send, {ENTER}l{ENTER}
SetKeyDelay, 10
;------>this tell ProTerm where to save files
Send, /hd2/download{ENTER}
SetKeyDelay, 1000
;------> tell ProTerm to recieve (r) Zmodem (z)
Send, {ENTER}r{ENTER}z{ENTER}
SetKeyDelay, 10
;---->tell hyperterm to send. Zmodem should be default from last session
Send, !ts!b
;------> go get a file from batch folder
WinWaitActive, Select
;-----> put the name onto clipboard for Batch_Log
LeftClick, 19, 63
LeftClick, 95, 212
LeftClick, 95, 212
RightClick, 95, 212
Send, c
;----> double click for hyperterm
LeftClick, 19, 63
LeftClick, 19, 63
WinWaitActive, Send, , 10
;----->make sure we have another file
IfNotEqual, %ERRORLEVEL%, 0, Goto, finished
;----> yes hyperterm send this one
Send, !s
;------> wait till that file finished or crashed
WinWaitClose, Zmodem
Sleep, 1000
;----> did we have some problem?
IfWinExist, Sending Files, , Goto, Badxfer
;----> it went Wally! log it in Batch
WinRestore, Batch
WinWaitActive, Batch
Send, ^v{ENTER}
WinMinimize, Batch
;-->let's delete that file so a new name bubbles to the top of the select
window
Send, !ts!b
RightClick, 19, 63
Send, d!y{ESC 2}
;----> that was fun let's do it again
Goto, Nextfile


Badxfer:
WinActivate, Sending
Send, !o
;---->try again
Goto, Nextfile



finished:
WinRestore, Batch
WinClose, Batch

Send, {ESC 2}!fx
Exit

[ADLIB]
Notepad,,Send, !y
[ADLIB]
Hyper,,Send, !y