各位高手和斑竹进来帮忙看看什么问题怎样解决啊,谢谢了~
function table_vir(in OBJ,in Env,in row,in col,in sr,in sc){auto H,W,X,Y;
set_window(Env,1);
obj_get_info(OBJ,"x",X);
obj_get_info(OBJ,"y",Y);
obj_get_info(OBJ,"height",H);
obj_get_info(OBJ,"width",W);
tbl_activate_cell("{class: table,virtual: TRUE,x: "X",y: "Y",width: "W",height: "H",rows: "row",columns: "col"}",sr,sc);
}
我想对识别出的OBJ对象动态的虚拟为TABLE控件,但是报错了:
Window: "FMP"
Object: "{class: table,virtual: TRUE,x: 166,y: 214,width: 730,height: 466,rows: 30,columns: 4}"
Error: Operation currently not valid for the object. function table_click(in OBJ,in X,in Y){
auto i,j;
Obj_Mid_Click (OBJ, LEFT);
obj_type (OBJ,"<kCtrl_L-kHome_E>");
for(i=0;i<X;i++){
obj_type (OBJ,"<kDown_E>");
}
for(j=0;j<Y;j++){
obj_type (OBJ,"<kRight_E>");
}
}
这个是用模拟操作的方法实现的,不过实在太龌龊了,而且慢.所以想问个对非标准TABLE的处理方法 突然解决了,不好意思
页:
[1]