.:: MENU ::.
 

Home page

Download
BUY NOW
Check registration

Hardware
Addendum
Contests
DigiFest
F A Q
History of MixW
About authors
Feedback
Gallery
Reviews & articles
Links
Forum

 

Join us!


.:: Scripts in MixW ::.

Script-related macros

<SCRIPT:filename
   
- run script from a file

<ASSCRIPT
    - treat the rest of this macro as script

<TNCSCRIPT:filename
    - run script on the 2nd TNC

<TELNETSCRIPT:filename>
     - run script files in Telnet window

Script commands summary

The comment line starts with a semicolon at the first column. 
All invalid commands are simply skipped.

General use commands:

send "string to send"
    - send a string (to send, for example, Control-M code, type "^M". "^^" stays for "^")

timeout n
    - the following waitfor commands will timeout in n seconds

waitfor "string to wait for"
    - wait for this string  ("^M" etc. are allowed)

sleep n
    - sleep n seconds

pause
    - pause executing the script and wait until you press "Continue" button

close
    - end the script and close script window

runmacro "macroname" 
   
- run this macro (example: runmacro "FQ:14071")

sendmacro "macroname" 
   
- insert macro as a text (example: sendmacro "MYCALL")

Telnet commands (run in the telnet window):

command "connect address port" 
   
- connects to the specified address and port

command "disconnect" 
   
- telnet disconnect command

Packet mode commands (run in the main window):

command "mode.connect callsign"
   
- connect to the specified callsign

command "mode.disconnect"
   
- disconnect   
 

Script examples

A script which connects to the ISP using a telephone modem installed as the 2nd TNC:

---- file isp.scr ----

; This is how I connect to my ISP
; <- the semicolon at the first position is a comment

; Press Continue key to dial...

pause

; Init modem

sleep 1
send "AT^M"
sleep 1
send "ATZ^M"
timeout 5
waitfor "OK"
sleep 1

; Dial

send "ATDPxxxxxxx^M"

timeout 60
waitfor "CONNECT"

; Enter login and password

waitfor "ogin"
send "uu9jdr^M"

waitfor "assword"
send "xxx^M"

; Close Script window

sleep 1
close

--- end of file ---

A script which connects (in PACKET mode) to UR7IWZ chat server via KIEV, UT5UG-2, and UR7IWZ-2 nodes:

---- file chat_ur7iwz_kiev.scr ----

timeout 60

command "mode.connect kiev"

waitfor "Cmd:"

send "c ip0 ut5ug-2^M"

waitfor "Cmd:"

send "c ip0 ur7iwz-2^M"

waitfor "Connected"

send "c ur7iwz^M"

waitfor "=>"

send "c^M"

waitfor "channel?"

send "0^M"

close

--- end of file ---

A telnet script which connects to EA7URC  DX Cluster:

--- file EA7URC_DXC.scr ---

; This script connects to EA7URC DX cluster
timeout 60
command "connect 195.57.18.13 41112"
waitfor "login:"
sendmacro "MYMAINCALL"
send "^J"
close

--- end of file ---

To automatically run this script when the Telnet window opens, redefine the 
OnOpenTelnetWindow macro:

Macro: OnOpenTelnetWindow
Label: - doesn't matter -
Text: <TELNETSCRIPT:EA7URC_DXC.scr>


MixW Team © 2007-2017