 
 sleep_minute(minute)
 {
-    Sleep, %minute% * 60 * 1000
+    Sleep % minute * 60 * 1000
 }
 
 
-configs := [["30u", ".5Hz", "u", 18]
-                 , ["10u", ".5Hz", "d", 18]
-                 , ["3u",   "1Hz", "u", 9]
-                 , ["1u",   "1Hz", "d", 9]
-                 , ["300n", "1Hz", "u", 9]]
-
-;~ for size, rate, u_or_d, run_minute in config
-;~ for config in configs
-;~ {
-    ;~ msgbox % config[0]
-    ;~ config(%size%, %rate%, 1000)
-    ;~ capture(%u_or_d%)
-    ;~ sleep_minute(run_minute)
-;~ }


execute()
{
    AFM.export_jpg(1, "d:\ashihara\img", 178, 207)
}



{
    export_jpg(height_range_nm, export_dir, al3_begin, al3_end)
    {
        SetKeyDelay -1
        
        ; Be sure: in off-line menu, activate top file
        
        for i in range(al3_begin, al3_end+1)
        {
            WinActivate, NanoScope Control
            Send, {Enter}  ; open the activated file
            Send, !n  ; If a dialog of "Save" confirmation appears, reply "No".
            Send, !iL  ; Image -> Left
