bunny112 发表于 2006-6-20 16:42:14

password_edit_set(),提示error:illegal parameter

脚本如下:


table = "default.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
        pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
        ddt_set_row(table,table_Row);
       
       
        # Login
                win_activate ("Login");
                set_window ("Login", 4);
                edit_set ("Agent Name:", "bunny112");
                password_edit_set("Password:", ddt_val(table,"Password"));
                button_press ("OK");
       
        # Flight Reservation
                set_window ("Flight Reservation", 11);
                obj_mouse_drag ("#32770", 271, 137, 249, 184, LEFT);
                win_close ("Flight Reservation");
       
}
ddt_close(table);


整了一个下午了还没有搞出来,请大家多多援助

msky1025 发表于 2006-6-21 14:39:45

需要先把密码转为密文password_encrypt(ddt_val(table,"Password"))
password_edit_set("Password:", password_encrypt(ddt_val(table,"Password")));
页: [1]
查看完整版本: password_edit_set(),提示error:illegal parameter