本文介绍了[帮助]将.js转换为.vbs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在imacro中使用它,但我需要一些帮助



非常感谢

_______________________________________________________________________________________________





var ret;



for(var i = 1; i< = 999999; i ++) {

iimPlay(macro1)



ret = iimPlay('CODE:SEARCH SOURCE = TXT:dogIGNORE_CASE = YES' );



if(ret == 1){//发现文字

ret = iimPlay(macro2);

}



else if(ret!= -101){

ret = iimPlay(macro1);

}



if(ret == -101){

break;

}

i use it in imacro, but i need some assistence

Thanks a lot
_______________________________________________________________________________________________


var ret;

for (var i = 1; i <= 999999; i++) {
iimPlay("macro1")

ret = iimPlay('CODE:SEARCH SOURCE=TXT:"dog" IGNORE_CASE=YES');

if (ret == 1) { // Text was found
ret = iimPlay("macro2");
}

else if (ret != -101) {
ret = iimPlay("macro1");
}

if (ret == -101) {
break;
}

推荐答案

dim ret, i;

for (i = 1; i <= 999999; i++) 
     iimPlay("macro1")

     ret = iimPlay("CODE:SEARCH SOURCE=TXT:"dog" IGNORE_CASE=YES")

     if ret == 1 then // Text was found
         ret = iimPlay("macro2")
     else if (ret != -101) then
          ret = iimPlay("macro1")
     end for

     if (ret == -101) then break

next





我建议将其粘贴到您的开发工具中,然后更正它突出显示的任何语法错误。我不知道VBSCript,但这应该让你开始。



I suggest pasting this in to your dev tools, then correcting any syntax errors it highlights. I don't know VBSCript, but this should get you started.


这篇关于[帮助]将.js转换为.vbs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 06:40